content
stringlengths
1
103k
path
stringlengths
8
216
filename
stringlengths
2
179
language
stringclasses
15 values
size_bytes
int64
2
189k
quality_score
float64
0.5
0.95
complexity
float64
0
1
documentation_ratio
float64
0
1
repository
stringclasses
5 values
stars
int64
0
1k
created_date
stringdate
2023-07-10 19:21:08
2025-07-09 19:11:45
license
stringclasses
4 values
is_test
bool
2 classes
file_hash
stringlengths
32
32
\n\n
.venv\Lib\site-packages\plotly\graph_objs\indicator\title\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,880
0.8
0.048583
0
python-kit
492
2024-01-03T02:11:21.974414
BSD-3-Clause
false
f583ae561dea5b05239987cacfbb3b99
\n\n
.venv\Lib\site-packages\plotly\graph_objs\indicator\title\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
501
0.85
0
0
node-utils
597
2025-04-04T23:56:49.389324
BSD-3-Clause
false
be35d76106b2b628a5846e3abf94af74
\n\n
.venv\Lib\site-packages\plotly\graph_objs\indicator\__pycache__\_delta.cpython-313.pyc
_delta.cpython-313.pyc
Other
9,828
0.8
0.042453
0
python-kit
699
2025-03-15T20:40:08.164628
Apache-2.0
false
a523ce1e4acb98d554c71bdceaa251d6
\n\n
.venv\Lib\site-packages\plotly\graph_objs\indicator\__pycache__\_domain.cpython-313.pyc
_domain.cpython-313.pyc
Other
6,037
0.8
0.097222
0.015267
react-lib
278
2025-04-13T12:41:09.925245
Apache-2.0
false
2845bb58c3773dd4cdb630daee07adb2
\n\n
.venv\Lib\site-packages\plotly\graph_objs\indicator\__pycache__\_gauge.cpython-313.pyc
_gauge.cpython-313.pyc
Other
10,497
0.8
0.075221
0
vue-tools
783
2023-10-31T02:47:59.382457
BSD-3-Clause
false
7fe13fc3555f84886fb8c17eddc988ec
\n\n
.venv\Lib\site-packages\plotly\graph_objs\indicator\__pycache__\_legendgrouptitle.cpython-313.pyc
_legendgrouptitle.cpython-313.pyc
Other
3,870
0.8
0.04
0
vue-tools
77
2023-09-29T08:33:32.418743
BSD-3-Clause
false
135b8e379f1c3222edc85505a885a2f2
\n\n
.venv\Lib\site-packages\plotly\graph_objs\indicator\__pycache__\_number.cpython-313.pyc
_number.cpython-313.pyc
Other
5,660
0.8
0.022556
0
node-utils
72
2023-08-19T16:28:04.431535
GPL-3.0
false
1ff157515e263d43b0cdf3026acceb7d
\n\n
.venv\Lib\site-packages\plotly\graph_objs\indicator\__pycache__\_stream.cpython-313.pyc
_stream.cpython-313.pyc
Other
4,318
0.8
0.054348
0
awesome-app
169
2023-12-13T12:16:22.970661
GPL-3.0
false
a6ebbd938bbe332fc5fc7cfdf8db5917
\n\n
.venv\Lib\site-packages\plotly\graph_objs\indicator\__pycache__\_title.cpython-313.pyc
_title.cpython-313.pyc
Other
4,706
0.8
0.082569
0
python-kit
757
2025-01-24T15:05:51.343495
Apache-2.0
false
eb5a30b503d39c285bf7b399636c6005
\n\n
.venv\Lib\site-packages\plotly\graph_objs\indicator\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
1,093
0.95
0
0
python-kit
836
2023-08-01T18:15:41.015116
BSD-3-Clause
false
4f5c1929ffe32de9fee095e20fcd5b35
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Caps(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.caps"\n _valid_props = {"x", "y", "z"}\n\n @property\n def x(self):\n """\n The 'x' property is an instance of X\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.caps.X`\n - A dict of string/value properties that will be passed\n to the X constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.caps.X\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def y(self):\n """\n The 'y' property is an instance of Y\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.caps.Y`\n - A dict of string/value properties that will be passed\n to the Y constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.caps.Y\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def z(self):\n """\n The 'z' property is an instance of Z\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.caps.Z`\n - A dict of string/value properties that will be passed\n to the Z constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.caps.Z\n """\n return self["z"]\n\n @z.setter\n def z(self, val):\n self["z"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n x\n :class:`plotly.graph_objects.isosurface.caps.X`\n instance or dict with compatible properties\n y\n :class:`plotly.graph_objects.isosurface.caps.Y`\n instance or dict with compatible properties\n z\n :class:`plotly.graph_objects.isosurface.caps.Z`\n instance or dict with compatible properties\n """\n\n def __init__(self, arg=None, x=None, y=None, z=None, **kwargs):\n """\n Construct a new Caps object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.Caps`\n x\n :class:`plotly.graph_objects.isosurface.caps.X`\n instance or dict with compatible properties\n y\n :class:`plotly.graph_objects.isosurface.caps.Y`\n instance or dict with compatible properties\n z\n :class:`plotly.graph_objects.isosurface.caps.Z`\n instance or dict with compatible properties\n\n Returns\n -------\n Caps\n """\n super().__init__("caps")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.Caps\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.Caps`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("x", arg, x)\n self._set_property("y", arg, y)\n self._set_property("z", arg, z)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_caps.py
_caps.py
Python
3,851
0.95
0.166667
0.017699
node-utils
10
2023-07-30T08:22:30.895787
Apache-2.0
false
2af1ea144995fb4cece0b4f03585e043
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass ColorBar(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.colorbar"\n _valid_props = {\n "bgcolor",\n "bordercolor",\n "borderwidth",\n "dtick",\n "exponentformat",\n "labelalias",\n "len",\n "lenmode",\n "minexponent",\n "nticks",\n "orientation",\n "outlinecolor",\n "outlinewidth",\n "separatethousands",\n "showexponent",\n "showticklabels",\n "showtickprefix",\n "showticksuffix",\n "thickness",\n "thicknessmode",\n "tick0",\n "tickangle",\n "tickcolor",\n "tickfont",\n "tickformat",\n "tickformatstopdefaults",\n "tickformatstops",\n "ticklabeloverflow",\n "ticklabelposition",\n "ticklabelstep",\n "ticklen",\n "tickmode",\n "tickprefix",\n "ticks",\n "ticksuffix",\n "ticktext",\n "ticktextsrc",\n "tickvals",\n "tickvalssrc",\n "tickwidth",\n "title",\n "x",\n "xanchor",\n "xpad",\n "xref",\n "y",\n "yanchor",\n "ypad",\n "yref",\n }\n\n @property\n def bgcolor(self):\n """\n Sets the color of padded area.\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the axis line color.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def borderwidth(self):\n """\n Sets the width (in px) or the border enclosing this color bar.\n\n The 'borderwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["borderwidth"]\n\n @borderwidth.setter\n def borderwidth(self, val):\n self["borderwidth"] = val\n\n @property\n def dtick(self):\n """\n Sets the step in-between ticks on this axis. Use with `tick0`.\n Must be a positive number, or special strings available to\n "log" and "date" axes. If the axis `type` is "log", then ticks\n are set every 10^(n*dtick) where n is the tick number. For\n example, to set a tick mark at 1, 10, 100, 1000, ... set dtick\n to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2.\n To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to\n log_10(5), or 0.69897000433. "log" has several special values;\n "L<f>", where `f` is a positive number, gives ticks linearly\n spaced in value (but not position). For example `tick0` = 0.1,\n `dtick` = "L0.5" will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To\n show powers of 10 plus small digits between, use "D1" (all\n digits) or "D2" (only 2 and 5). `tick0` is ignored for "D1" and\n "D2". If the axis `type` is "date", then you must convert the\n time to milliseconds. For example, to set the interval between\n ticks to one day, set `dtick` to 86400000.0. "date" also has\n special values "M<n>" gives ticks spaced by a number of months.\n `n` must be a positive integer. To set ticks on the 15th of\n every third month, set `tick0` to "2000-01-15" and `dtick` to\n "M3". To set ticks every 4 years, set `dtick` to "M48"\n\n The 'dtick' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["dtick"]\n\n @dtick.setter\n def dtick(self, val):\n self["dtick"] = val\n\n @property\n def exponentformat(self):\n """\n Determines a formatting rule for the tick exponents. For\n example, consider the number 1,000,000,000. If "none", it\n appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If\n "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If\n "B", 1B.\n\n The 'exponentformat' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['none', 'e', 'E', 'power', 'SI', 'B']\n\n Returns\n -------\n Any\n """\n return self["exponentformat"]\n\n @exponentformat.setter\n def exponentformat(self, val):\n self["exponentformat"] = val\n\n @property\n def labelalias(self):\n """\n Replacement text for specific tick or hover labels. For example\n using {US: 'USA', CA: 'Canada'} changes US to USA and CA to\n Canada. The labels we would have shown must match the keys\n exactly, after adding any tickprefix or ticksuffix. For\n negative numbers the minus sign symbol used (U+2212) is wider\n than the regular ascii dash. That means you need to use −1\n instead of -1. labelalias can be used with any axis type, and\n both keys (if needed) and values (if desired) can include html-\n like tags or MathJax.\n\n The 'labelalias' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["labelalias"]\n\n @labelalias.setter\n def labelalias(self, val):\n self["labelalias"] = val\n\n @property\n def len(self):\n """\n Sets the length of the color bar This measure excludes the\n padding of both ends. That is, the color bar length is this\n length minus the padding on both ends.\n\n The 'len' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["len"]\n\n @len.setter\n def len(self, val):\n self["len"] = val\n\n @property\n def lenmode(self):\n """\n Determines whether this color bar's length (i.e. the measure in\n the color variation direction) is set in units of plot\n "fraction" or in *pixels. Use `len` to set the value.\n\n The 'lenmode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['fraction', 'pixels']\n\n Returns\n -------\n Any\n """\n return self["lenmode"]\n\n @lenmode.setter\n def lenmode(self, val):\n self["lenmode"] = val\n\n @property\n def minexponent(self):\n """\n Hide SI prefix for 10^n if |n| is below this number. This only\n has an effect when `tickformat` is "SI" or "B".\n\n The 'minexponent' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["minexponent"]\n\n @minexponent.setter\n def minexponent(self, val):\n self["minexponent"] = val\n\n @property\n def nticks(self):\n """\n Specifies the maximum number of ticks for the particular axis.\n The actual number of ticks will be chosen automatically to be\n less than or equal to `nticks`. Has an effect only if\n `tickmode` is set to "auto".\n\n The 'nticks' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [0, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["nticks"]\n\n @nticks.setter\n def nticks(self, val):\n self["nticks"] = val\n\n @property\n def orientation(self):\n """\n Sets the orientation of the colorbar.\n\n The 'orientation' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['h', 'v']\n\n Returns\n -------\n Any\n """\n return self["orientation"]\n\n @orientation.setter\n def orientation(self, val):\n self["orientation"] = val\n\n @property\n def outlinecolor(self):\n """\n Sets the axis line color.\n\n The 'outlinecolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["outlinecolor"]\n\n @outlinecolor.setter\n def outlinecolor(self, val):\n self["outlinecolor"] = val\n\n @property\n def outlinewidth(self):\n """\n Sets the width (in px) of the axis line.\n\n The 'outlinewidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["outlinewidth"]\n\n @outlinewidth.setter\n def outlinewidth(self, val):\n self["outlinewidth"] = val\n\n @property\n def separatethousands(self):\n """\n If "true", even 4-digit integers are separated\n\n The 'separatethousands' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["separatethousands"]\n\n @separatethousands.setter\n def separatethousands(self, val):\n self["separatethousands"] = val\n\n @property\n def showexponent(self):\n """\n If "all", all exponents are shown besides their significands.\n If "first", only the exponent of the first tick is shown. If\n "last", only the exponent of the last tick is shown. If "none",\n no exponents appear.\n\n The 'showexponent' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['all', 'first', 'last', 'none']\n\n Returns\n -------\n Any\n """\n return self["showexponent"]\n\n @showexponent.setter\n def showexponent(self, val):\n self["showexponent"] = val\n\n @property\n def showticklabels(self):\n """\n Determines whether or not the tick labels are drawn.\n\n The 'showticklabels' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showticklabels"]\n\n @showticklabels.setter\n def showticklabels(self, val):\n self["showticklabels"] = val\n\n @property\n def showtickprefix(self):\n """\n If "all", all tick labels are displayed with a prefix. If\n "first", only the first tick is displayed with a prefix. If\n "last", only the last tick is displayed with a suffix. If\n "none", tick prefixes are hidden.\n\n The 'showtickprefix' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['all', 'first', 'last', 'none']\n\n Returns\n -------\n Any\n """\n return self["showtickprefix"]\n\n @showtickprefix.setter\n def showtickprefix(self, val):\n self["showtickprefix"] = val\n\n @property\n def showticksuffix(self):\n """\n Same as `showtickprefix` but for tick suffixes.\n\n The 'showticksuffix' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['all', 'first', 'last', 'none']\n\n Returns\n -------\n Any\n """\n return self["showticksuffix"]\n\n @showticksuffix.setter\n def showticksuffix(self, val):\n self["showticksuffix"] = val\n\n @property\n def thickness(self):\n """\n Sets the thickness of the color bar This measure excludes the\n size of the padding, ticks and labels.\n\n The 'thickness' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["thickness"]\n\n @thickness.setter\n def thickness(self, val):\n self["thickness"] = val\n\n @property\n def thicknessmode(self):\n """\n Determines whether this color bar's thickness (i.e. the measure\n in the constant color direction) is set in units of plot\n "fraction" or in "pixels". Use `thickness` to set the value.\n\n The 'thicknessmode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['fraction', 'pixels']\n\n Returns\n -------\n Any\n """\n return self["thicknessmode"]\n\n @thicknessmode.setter\n def thicknessmode(self, val):\n self["thicknessmode"] = val\n\n @property\n def tick0(self):\n """\n Sets the placement of the first tick on this axis. Use with\n `dtick`. If the axis `type` is "log", then you must take the\n log of your starting tick (e.g. to set the starting tick to\n 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see\n `dtick` for more info). If the axis `type` is "date", it should\n be a date string, like date data. If the axis `type` is\n "category", it should be a number, using the scale where each\n category is assigned a serial number from zero in the order it\n appears.\n\n The 'tick0' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["tick0"]\n\n @tick0.setter\n def tick0(self, val):\n self["tick0"] = val\n\n @property\n def tickangle(self):\n """\n Sets the angle of the tick labels with respect to the\n horizontal. For example, a `tickangle` of -90 draws the tick\n labels vertically.\n\n The 'tickangle' property is a angle (in degrees) that may be\n specified as a number between -180 and 180.\n Numeric values outside this range are converted to the equivalent value\n (e.g. 270 is converted to -90).\n\n Returns\n -------\n int|float\n """\n return self["tickangle"]\n\n @tickangle.setter\n def tickangle(self, val):\n self["tickangle"] = val\n\n @property\n def tickcolor(self):\n """\n Sets the tick color.\n\n The 'tickcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["tickcolor"]\n\n @tickcolor.setter\n def tickcolor(self, val):\n self["tickcolor"] = val\n\n @property\n def tickfont(self):\n """\n Sets the color bar's tick label font\n\n The 'tickfont' property is an instance of Tickfont\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.colorbar.Tickfont`\n - A dict of string/value properties that will be passed\n to the Tickfont constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.colorbar.Tickfont\n """\n return self["tickfont"]\n\n @tickfont.setter\n def tickfont(self, val):\n self["tickfont"] = val\n\n @property\n def tickformat(self):\n """\n Sets the tick label formatting rule using d3 formatting mini-\n languages which are very similar to those in Python. For\n numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for\n dates see: https://github.com/d3/d3-time-\n format/tree/v2.2.3#locale_format. We add two items to d3's date\n formatter: "%h" for half of the year as a decimal number as\n well as "%{n}f" for fractional seconds with n digits. For\n example, *2016-10-13 09:15:23.456* with tickformat\n "%H~%M~%S.%2f" would display "09~15~23.46"\n\n The 'tickformat' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["tickformat"]\n\n @tickformat.setter\n def tickformat(self, val):\n self["tickformat"] = val\n\n @property\n def tickformatstops(self):\n """\n The 'tickformatstops' property is a tuple of instances of\n Tickformatstop that may be specified as:\n - A list or tuple of instances of plotly.graph_objs.isosurface.colorbar.Tickformatstop\n - A list or tuple of dicts of string/value properties that\n will be passed to the Tickformatstop constructor\n\n Returns\n -------\n tuple[plotly.graph_objs.isosurface.colorbar.Tickformatstop]\n """\n return self["tickformatstops"]\n\n @tickformatstops.setter\n def tickformatstops(self, val):\n self["tickformatstops"] = val\n\n @property\n def tickformatstopdefaults(self):\n """\n When used in a template (as layout.template.data.isosurface.col\n orbar.tickformatstopdefaults), sets the default property values\n to use for elements of isosurface.colorbar.tickformatstops\n\n The 'tickformatstopdefaults' property is an instance of Tickformatstop\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.colorbar.Tickformatstop`\n - A dict of string/value properties that will be passed\n to the Tickformatstop constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.colorbar.Tickformatstop\n """\n return self["tickformatstopdefaults"]\n\n @tickformatstopdefaults.setter\n def tickformatstopdefaults(self, val):\n self["tickformatstopdefaults"] = val\n\n @property\n def ticklabeloverflow(self):\n """\n Determines how we handle tick labels that would overflow either\n the graph div or the domain of the axis. The default value for\n inside tick labels is *hide past domain*. In other cases the\n default is *hide past div*.\n\n The 'ticklabeloverflow' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['allow', 'hide past div', 'hide past domain']\n\n Returns\n -------\n Any\n """\n return self["ticklabeloverflow"]\n\n @ticklabeloverflow.setter\n def ticklabeloverflow(self, val):\n self["ticklabeloverflow"] = val\n\n @property\n def ticklabelposition(self):\n """\n Determines where tick labels are drawn relative to the ticks.\n Left and right options are used when `orientation` is "h", top\n and bottom when `orientation` is "v".\n\n The 'ticklabelposition' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['outside', 'inside', 'outside top', 'inside top',\n 'outside left', 'inside left', 'outside right', 'inside\n right', 'outside bottom', 'inside bottom']\n\n Returns\n -------\n Any\n """\n return self["ticklabelposition"]\n\n @ticklabelposition.setter\n def ticklabelposition(self, val):\n self["ticklabelposition"] = val\n\n @property\n def ticklabelstep(self):\n """\n Sets the spacing between tick labels as compared to the spacing\n between ticks. A value of 1 (default) means each tick gets a\n label. A value of 2 means shows every 2nd label. A larger value\n n means only every nth tick is labeled. `tick0` determines\n which labels are shown. Not implemented for axes with `type`\n "log" or "multicategory", or when `tickmode` is "array".\n\n The 'ticklabelstep' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["ticklabelstep"]\n\n @ticklabelstep.setter\n def ticklabelstep(self, val):\n self["ticklabelstep"] = val\n\n @property\n def ticklen(self):\n """\n Sets the tick length (in px).\n\n The 'ticklen' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["ticklen"]\n\n @ticklen.setter\n def ticklen(self, val):\n self["ticklen"] = val\n\n @property\n def tickmode(self):\n """\n Sets the tick mode for this axis. If "auto", the number of\n ticks is set via `nticks`. If "linear", the placement of the\n ticks is determined by a starting position `tick0` and a tick\n step `dtick` ("linear" is the default value if `tick0` and\n `dtick` are provided). If "array", the placement of the ticks\n is set via `tickvals` and the tick text is `ticktext`. ("array"\n is the default value if `tickvals` is provided).\n\n The 'tickmode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'linear', 'array']\n\n Returns\n -------\n Any\n """\n return self["tickmode"]\n\n @tickmode.setter\n def tickmode(self, val):\n self["tickmode"] = val\n\n @property\n def tickprefix(self):\n """\n Sets a tick label prefix.\n\n The 'tickprefix' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["tickprefix"]\n\n @tickprefix.setter\n def tickprefix(self, val):\n self["tickprefix"] = val\n\n @property\n def ticks(self):\n """\n Determines whether ticks are drawn or not. If "", this axis'\n ticks are not drawn. If "outside" ("inside"), this axis' are\n drawn outside (inside) the axis lines.\n\n The 'ticks' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['outside', 'inside', '']\n\n Returns\n -------\n Any\n """\n return self["ticks"]\n\n @ticks.setter\n def ticks(self, val):\n self["ticks"] = val\n\n @property\n def ticksuffix(self):\n """\n Sets a tick label suffix.\n\n The 'ticksuffix' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["ticksuffix"]\n\n @ticksuffix.setter\n def ticksuffix(self, val):\n self["ticksuffix"] = val\n\n @property\n def ticktext(self):\n """\n Sets the text displayed at the ticks position via `tickvals`.\n Only has an effect if `tickmode` is set to "array". Used with\n `tickvals`.\n\n The 'ticktext' property is an array that may be specified as a tuple,\n list, numpy array, or pandas Series\n\n Returns\n -------\n numpy.ndarray\n """\n return self["ticktext"]\n\n @ticktext.setter\n def ticktext(self, val):\n self["ticktext"] = val\n\n @property\n def ticktextsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `ticktext`.\n\n The 'ticktextsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["ticktextsrc"]\n\n @ticktextsrc.setter\n def ticktextsrc(self, val):\n self["ticktextsrc"] = val\n\n @property\n def tickvals(self):\n """\n Sets the values at which ticks on this axis appear. Only has an\n effect if `tickmode` is set to "array". Used with `ticktext`.\n\n The 'tickvals' property is an array that may be specified as a tuple,\n list, numpy array, or pandas Series\n\n Returns\n -------\n numpy.ndarray\n """\n return self["tickvals"]\n\n @tickvals.setter\n def tickvals(self, val):\n self["tickvals"] = val\n\n @property\n def tickvalssrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `tickvals`.\n\n The 'tickvalssrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["tickvalssrc"]\n\n @tickvalssrc.setter\n def tickvalssrc(self, val):\n self["tickvalssrc"] = val\n\n @property\n def tickwidth(self):\n """\n Sets the tick width (in px).\n\n The 'tickwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["tickwidth"]\n\n @tickwidth.setter\n def tickwidth(self, val):\n self["tickwidth"] = val\n\n @property\n def title(self):\n """\n The 'title' property is an instance of Title\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.colorbar.Title`\n - A dict of string/value properties that will be passed\n to the Title constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.colorbar.Title\n """\n return self["title"]\n\n @title.setter\n def title(self, val):\n self["title"] = val\n\n @property\n def x(self):\n """\n Sets the x position with respect to `xref` of the color bar (in\n plot fraction). When `xref` is "paper", defaults to 1.02 when\n `orientation` is "v" and 0.5 when `orientation` is "h". When\n `xref` is "container", defaults to 1 when `orientation` is "v"\n and 0.5 when `orientation` is "h". Must be between 0 and 1 if\n `xref` is "container" and between "-2" and 3 if `xref` is\n "paper".\n\n The 'x' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def xanchor(self):\n """\n Sets this color bar's horizontal position anchor. This anchor\n binds the `x` position to the "left", "center" or "right" of\n the color bar. Defaults to "left" when `orientation` is "v" and\n "center" when `orientation` is "h".\n\n The 'xanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'center', 'right']\n\n Returns\n -------\n Any\n """\n return self["xanchor"]\n\n @xanchor.setter\n def xanchor(self, val):\n self["xanchor"] = val\n\n @property\n def xpad(self):\n """\n Sets the amount of padding (in px) along the x direction.\n\n The 'xpad' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["xpad"]\n\n @xpad.setter\n def xpad(self, val):\n self["xpad"] = val\n\n @property\n def xref(self):\n """\n Sets the container `x` refers to. "container" spans the entire\n `width` of the plot. "paper" refers to the width of the\n plotting area only.\n\n The 'xref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['container', 'paper']\n\n Returns\n -------\n Any\n """\n return self["xref"]\n\n @xref.setter\n def xref(self, val):\n self["xref"] = val\n\n @property\n def y(self):\n """\n Sets the y position with respect to `yref` of the color bar (in\n plot fraction). When `yref` is "paper", defaults to 0.5 when\n `orientation` is "v" and 1.02 when `orientation` is "h". When\n `yref` is "container", defaults to 0.5 when `orientation` is\n "v" and 1 when `orientation` is "h". Must be between 0 and 1 if\n `yref` is "container" and between "-2" and 3 if `yref` is\n "paper".\n\n The 'y' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def yanchor(self):\n """\n Sets this color bar's vertical position anchor This anchor\n binds the `y` position to the "top", "middle" or "bottom" of\n the color bar. Defaults to "middle" when `orientation` is "v"\n and "bottom" when `orientation` is "h".\n\n The 'yanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['top', 'middle', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["yanchor"]\n\n @yanchor.setter\n def yanchor(self, val):\n self["yanchor"] = val\n\n @property\n def ypad(self):\n """\n Sets the amount of padding (in px) along the y direction.\n\n The 'ypad' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["ypad"]\n\n @ypad.setter\n def ypad(self, val):\n self["ypad"] = val\n\n @property\n def yref(self):\n """\n Sets the container `y` refers to. "container" spans the entire\n `height` of the plot. "paper" refers to the height of the\n plotting area only.\n\n The 'yref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['container', 'paper']\n\n Returns\n -------\n Any\n """\n return self["yref"]\n\n @yref.setter\n def yref(self, val):\n self["yref"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n bgcolor\n Sets the color of padded area.\n bordercolor\n Sets the axis line color.\n borderwidth\n Sets the width (in px) or the border enclosing this\n color bar.\n dtick\n Sets the step in-between ticks on this axis. Use with\n `tick0`. Must be a positive number, or special strings\n available to "log" and "date" axes. If the axis `type`\n is "log", then ticks are set every 10^(n*dtick) where n\n is the tick number. For example, to set a tick mark at\n 1, 10, 100, 1000, ... set dtick to 1. To set tick marks\n at 1, 100, 10000, ... set dtick to 2. To set tick marks\n at 1, 5, 25, 125, 625, 3125, ... set dtick to\n log_10(5), or 0.69897000433. "log" has several special\n values; "L<f>", where `f` is a positive number, gives\n ticks linearly spaced in value (but not position). For\n example `tick0` = 0.1, `dtick` = "L0.5" will put ticks\n at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus\n small digits between, use "D1" (all digits) or "D2"\n (only 2 and 5). `tick0` is ignored for "D1" and "D2".\n If the axis `type` is "date", then you must convert the\n time to milliseconds. For example, to set the interval\n between ticks to one day, set `dtick` to 86400000.0.\n "date" also has special values "M<n>" gives ticks\n spaced by a number of months. `n` must be a positive\n integer. To set ticks on the 15th of every third month,\n set `tick0` to "2000-01-15" and `dtick` to "M3". To set\n ticks every 4 years, set `dtick` to "M48"\n exponentformat\n Determines a formatting rule for the tick exponents.\n For example, consider the number 1,000,000,000. If\n "none", it appears as 1,000,000,000. If "e", 1e+9. If\n "E", 1E+9. If "power", 1x10^9 (with 9 in a super\n script). If "SI", 1G. If "B", 1B.\n labelalias\n Replacement text for specific tick or hover labels. For\n example using {US: 'USA', CA: 'Canada'} changes US to\n USA and CA to Canada. The labels we would have shown\n must match the keys exactly, after adding any\n tickprefix or ticksuffix. For negative numbers the\n minus sign symbol used (U+2212) is wider than the\n regular ascii dash. That means you need to use −1\n instead of -1. labelalias can be used with any axis\n type, and both keys (if needed) and values (if desired)\n can include html-like tags or MathJax.\n len\n Sets the length of the color bar This measure excludes\n the padding of both ends. That is, the color bar length\n is this length minus the padding on both ends.\n lenmode\n Determines whether this color bar's length (i.e. the\n measure in the color variation direction) is set in\n units of plot "fraction" or in *pixels. Use `len` to\n set the value.\n minexponent\n Hide SI prefix for 10^n if |n| is below this number.\n This only has an effect when `tickformat` is "SI" or\n "B".\n nticks\n Specifies the maximum number of ticks for the\n particular axis. The actual number of ticks will be\n chosen automatically to be less than or equal to\n `nticks`. Has an effect only if `tickmode` is set to\n "auto".\n orientation\n Sets the orientation of the colorbar.\n outlinecolor\n Sets the axis line color.\n outlinewidth\n Sets the width (in px) of the axis line.\n separatethousands\n If "true", even 4-digit integers are separated\n showexponent\n If "all", all exponents are shown besides their\n significands. If "first", only the exponent of the\n first tick is shown. If "last", only the exponent of\n the last tick is shown. If "none", no exponents appear.\n showticklabels\n Determines whether or not the tick labels are drawn.\n showtickprefix\n If "all", all tick labels are displayed with a prefix.\n If "first", only the first tick is displayed with a\n prefix. If "last", only the last tick is displayed with\n a suffix. If "none", tick prefixes are hidden.\n showticksuffix\n Same as `showtickprefix` but for tick suffixes.\n thickness\n Sets the thickness of the color bar This measure\n excludes the size of the padding, ticks and labels.\n thicknessmode\n Determines whether this color bar's thickness (i.e. the\n measure in the constant color direction) is set in\n units of plot "fraction" or in "pixels". Use\n `thickness` to set the value.\n tick0\n Sets the placement of the first tick on this axis. Use\n with `dtick`. If the axis `type` is "log", then you\n must take the log of your starting tick (e.g. to set\n the starting tick to 100, set the `tick0` to 2) except\n when `dtick`=*L<f>* (see `dtick` for more info). If the\n axis `type` is "date", it should be a date string, like\n date data. If the axis `type` is "category", it should\n be a number, using the scale where each category is\n assigned a serial number from zero in the order it\n appears.\n tickangle\n Sets the angle of the tick labels with respect to the\n horizontal. For example, a `tickangle` of -90 draws the\n tick labels vertically.\n tickcolor\n Sets the tick color.\n tickfont\n Sets the color bar's tick label font\n tickformat\n Sets the tick label formatting rule using d3 formatting\n mini-languages which are very similar to those in\n Python. For numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format.\n And for dates see: https://github.com/d3/d3-time-\n format/tree/v2.2.3#locale_format. We add two items to\n d3's date formatter: "%h" for half of the year as a\n decimal number as well as "%{n}f" for fractional\n seconds with n digits. For example, *2016-10-13\n 09:15:23.456* with tickformat "%H~%M~%S.%2f" would\n display "09~15~23.46"\n tickformatstops\n A tuple of :class:`plotly.graph_objects.isosurface.colo\n rbar.Tickformatstop` instances or dicts with compatible\n properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.isosur\n face.colorbar.tickformatstopdefaults), sets the default\n property values to use for elements of\n isosurface.colorbar.tickformatstops\n ticklabeloverflow\n Determines how we handle tick labels that would\n overflow either the graph div or the domain of the\n axis. The default value for inside tick labels is *hide\n past domain*. In other cases the default is *hide past\n div*.\n ticklabelposition\n Determines where tick labels are drawn relative to the\n ticks. Left and right options are used when\n `orientation` is "h", top and bottom when `orientation`\n is "v".\n ticklabelstep\n Sets the spacing between tick labels as compared to the\n spacing between ticks. A value of 1 (default) means\n each tick gets a label. A value of 2 means shows every\n 2nd label. A larger value n means only every nth tick\n is labeled. `tick0` determines which labels are shown.\n Not implemented for axes with `type` "log" or\n "multicategory", or when `tickmode` is "array".\n ticklen\n Sets the tick length (in px).\n tickmode\n Sets the tick mode for this axis. If "auto", the number\n of ticks is set via `nticks`. If "linear", the\n placement of the ticks is determined by a starting\n position `tick0` and a tick step `dtick` ("linear" is\n the default value if `tick0` and `dtick` are provided).\n If "array", the placement of the ticks is set via\n `tickvals` and the tick text is `ticktext`. ("array" is\n the default value if `tickvals` is provided).\n tickprefix\n Sets a tick label prefix.\n ticks\n Determines whether ticks are drawn or not. If "", this\n axis' ticks are not drawn. If "outside" ("inside"),\n this axis' are drawn outside (inside) the axis lines.\n ticksuffix\n Sets a tick label suffix.\n ticktext\n Sets the text displayed at the ticks position via\n `tickvals`. Only has an effect if `tickmode` is set to\n "array". Used with `tickvals`.\n ticktextsrc\n Sets the source reference on Chart Studio Cloud for\n `ticktext`.\n tickvals\n Sets the values at which ticks on this axis appear.\n Only has an effect if `tickmode` is set to "array".\n Used with `ticktext`.\n tickvalssrc\n Sets the source reference on Chart Studio Cloud for\n `tickvals`.\n tickwidth\n Sets the tick width (in px).\n title\n :class:`plotly.graph_objects.isosurface.colorbar.Title`\n instance or dict with compatible properties\n x\n Sets the x position with respect to `xref` of the color\n bar (in plot fraction). When `xref` is "paper",\n defaults to 1.02 when `orientation` is "v" and 0.5 when\n `orientation` is "h". When `xref` is "container",\n defaults to 1 when `orientation` is "v" and 0.5 when\n `orientation` is "h". Must be between 0 and 1 if `xref`\n is "container" and between "-2" and 3 if `xref` is\n "paper".\n xanchor\n Sets this color bar's horizontal position anchor. This\n anchor binds the `x` position to the "left", "center"\n or "right" of the color bar. Defaults to "left" when\n `orientation` is "v" and "center" when `orientation` is\n "h".\n xpad\n Sets the amount of padding (in px) along the x\n direction.\n xref\n Sets the container `x` refers to. "container" spans the\n entire `width` of the plot. "paper" refers to the width\n of the plotting area only.\n y\n Sets the y position with respect to `yref` of the color\n bar (in plot fraction). When `yref` is "paper",\n defaults to 0.5 when `orientation` is "v" and 1.02 when\n `orientation` is "h". When `yref` is "container",\n defaults to 0.5 when `orientation` is "v" and 1 when\n `orientation` is "h". Must be between 0 and 1 if `yref`\n is "container" and between "-2" and 3 if `yref` is\n "paper".\n yanchor\n Sets this color bar's vertical position anchor This\n anchor binds the `y` position to the "top", "middle" or\n "bottom" of the color bar. Defaults to "middle" when\n `orientation` is "v" and "bottom" when `orientation` is\n "h".\n ypad\n Sets the amount of padding (in px) along the y\n direction.\n yref\n Sets the container `y` refers to. "container" spans the\n entire `height` of the plot. "paper" refers to the\n height of the plotting area only.\n """\n\n def __init__(\n self,\n arg=None,\n bgcolor=None,\n bordercolor=None,\n borderwidth=None,\n dtick=None,\n exponentformat=None,\n labelalias=None,\n len=None,\n lenmode=None,\n minexponent=None,\n nticks=None,\n orientation=None,\n outlinecolor=None,\n outlinewidth=None,\n separatethousands=None,\n showexponent=None,\n showticklabels=None,\n showtickprefix=None,\n showticksuffix=None,\n thickness=None,\n thicknessmode=None,\n tick0=None,\n tickangle=None,\n tickcolor=None,\n tickfont=None,\n tickformat=None,\n tickformatstops=None,\n tickformatstopdefaults=None,\n ticklabeloverflow=None,\n ticklabelposition=None,\n ticklabelstep=None,\n ticklen=None,\n tickmode=None,\n tickprefix=None,\n ticks=None,\n ticksuffix=None,\n ticktext=None,\n ticktextsrc=None,\n tickvals=None,\n tickvalssrc=None,\n tickwidth=None,\n title=None,\n x=None,\n xanchor=None,\n xpad=None,\n xref=None,\n y=None,\n yanchor=None,\n ypad=None,\n yref=None,\n **kwargs,\n ):\n """\n Construct a new ColorBar object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.ColorBar`\n bgcolor\n Sets the color of padded area.\n bordercolor\n Sets the axis line color.\n borderwidth\n Sets the width (in px) or the border enclosing this\n color bar.\n dtick\n Sets the step in-between ticks on this axis. Use with\n `tick0`. Must be a positive number, or special strings\n available to "log" and "date" axes. If the axis `type`\n is "log", then ticks are set every 10^(n*dtick) where n\n is the tick number. For example, to set a tick mark at\n 1, 10, 100, 1000, ... set dtick to 1. To set tick marks\n at 1, 100, 10000, ... set dtick to 2. To set tick marks\n at 1, 5, 25, 125, 625, 3125, ... set dtick to\n log_10(5), or 0.69897000433. "log" has several special\n values; "L<f>", where `f` is a positive number, gives\n ticks linearly spaced in value (but not position). For\n example `tick0` = 0.1, `dtick` = "L0.5" will put ticks\n at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus\n small digits between, use "D1" (all digits) or "D2"\n (only 2 and 5). `tick0` is ignored for "D1" and "D2".\n If the axis `type` is "date", then you must convert the\n time to milliseconds. For example, to set the interval\n between ticks to one day, set `dtick` to 86400000.0.\n "date" also has special values "M<n>" gives ticks\n spaced by a number of months. `n` must be a positive\n integer. To set ticks on the 15th of every third month,\n set `tick0` to "2000-01-15" and `dtick` to "M3". To set\n ticks every 4 years, set `dtick` to "M48"\n exponentformat\n Determines a formatting rule for the tick exponents.\n For example, consider the number 1,000,000,000. If\n "none", it appears as 1,000,000,000. If "e", 1e+9. If\n "E", 1E+9. If "power", 1x10^9 (with 9 in a super\n script). If "SI", 1G. If "B", 1B.\n labelalias\n Replacement text for specific tick or hover labels. For\n example using {US: 'USA', CA: 'Canada'} changes US to\n USA and CA to Canada. The labels we would have shown\n must match the keys exactly, after adding any\n tickprefix or ticksuffix. For negative numbers the\n minus sign symbol used (U+2212) is wider than the\n regular ascii dash. That means you need to use −1\n instead of -1. labelalias can be used with any axis\n type, and both keys (if needed) and values (if desired)\n can include html-like tags or MathJax.\n len\n Sets the length of the color bar This measure excludes\n the padding of both ends. That is, the color bar length\n is this length minus the padding on both ends.\n lenmode\n Determines whether this color bar's length (i.e. the\n measure in the color variation direction) is set in\n units of plot "fraction" or in *pixels. Use `len` to\n set the value.\n minexponent\n Hide SI prefix for 10^n if |n| is below this number.\n This only has an effect when `tickformat` is "SI" or\n "B".\n nticks\n Specifies the maximum number of ticks for the\n particular axis. The actual number of ticks will be\n chosen automatically to be less than or equal to\n `nticks`. Has an effect only if `tickmode` is set to\n "auto".\n orientation\n Sets the orientation of the colorbar.\n outlinecolor\n Sets the axis line color.\n outlinewidth\n Sets the width (in px) of the axis line.\n separatethousands\n If "true", even 4-digit integers are separated\n showexponent\n If "all", all exponents are shown besides their\n significands. If "first", only the exponent of the\n first tick is shown. If "last", only the exponent of\n the last tick is shown. If "none", no exponents appear.\n showticklabels\n Determines whether or not the tick labels are drawn.\n showtickprefix\n If "all", all tick labels are displayed with a prefix.\n If "first", only the first tick is displayed with a\n prefix. If "last", only the last tick is displayed with\n a suffix. If "none", tick prefixes are hidden.\n showticksuffix\n Same as `showtickprefix` but for tick suffixes.\n thickness\n Sets the thickness of the color bar This measure\n excludes the size of the padding, ticks and labels.\n thicknessmode\n Determines whether this color bar's thickness (i.e. the\n measure in the constant color direction) is set in\n units of plot "fraction" or in "pixels". Use\n `thickness` to set the value.\n tick0\n Sets the placement of the first tick on this axis. Use\n with `dtick`. If the axis `type` is "log", then you\n must take the log of your starting tick (e.g. to set\n the starting tick to 100, set the `tick0` to 2) except\n when `dtick`=*L<f>* (see `dtick` for more info). If the\n axis `type` is "date", it should be a date string, like\n date data. If the axis `type` is "category", it should\n be a number, using the scale where each category is\n assigned a serial number from zero in the order it\n appears.\n tickangle\n Sets the angle of the tick labels with respect to the\n horizontal. For example, a `tickangle` of -90 draws the\n tick labels vertically.\n tickcolor\n Sets the tick color.\n tickfont\n Sets the color bar's tick label font\n tickformat\n Sets the tick label formatting rule using d3 formatting\n mini-languages which are very similar to those in\n Python. For numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format.\n And for dates see: https://github.com/d3/d3-time-\n format/tree/v2.2.3#locale_format. We add two items to\n d3's date formatter: "%h" for half of the year as a\n decimal number as well as "%{n}f" for fractional\n seconds with n digits. For example, *2016-10-13\n 09:15:23.456* with tickformat "%H~%M~%S.%2f" would\n display "09~15~23.46"\n tickformatstops\n A tuple of :class:`plotly.graph_objects.isosurface.colo\n rbar.Tickformatstop` instances or dicts with compatible\n properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.isosur\n face.colorbar.tickformatstopdefaults), sets the default\n property values to use for elements of\n isosurface.colorbar.tickformatstops\n ticklabeloverflow\n Determines how we handle tick labels that would\n overflow either the graph div or the domain of the\n axis. The default value for inside tick labels is *hide\n past domain*. In other cases the default is *hide past\n div*.\n ticklabelposition\n Determines where tick labels are drawn relative to the\n ticks. Left and right options are used when\n `orientation` is "h", top and bottom when `orientation`\n is "v".\n ticklabelstep\n Sets the spacing between tick labels as compared to the\n spacing between ticks. A value of 1 (default) means\n each tick gets a label. A value of 2 means shows every\n 2nd label. A larger value n means only every nth tick\n is labeled. `tick0` determines which labels are shown.\n Not implemented for axes with `type` "log" or\n "multicategory", or when `tickmode` is "array".\n ticklen\n Sets the tick length (in px).\n tickmode\n Sets the tick mode for this axis. If "auto", the number\n of ticks is set via `nticks`. If "linear", the\n placement of the ticks is determined by a starting\n position `tick0` and a tick step `dtick` ("linear" is\n the default value if `tick0` and `dtick` are provided).\n If "array", the placement of the ticks is set via\n `tickvals` and the tick text is `ticktext`. ("array" is\n the default value if `tickvals` is provided).\n tickprefix\n Sets a tick label prefix.\n ticks\n Determines whether ticks are drawn or not. If "", this\n axis' ticks are not drawn. If "outside" ("inside"),\n this axis' are drawn outside (inside) the axis lines.\n ticksuffix\n Sets a tick label suffix.\n ticktext\n Sets the text displayed at the ticks position via\n `tickvals`. Only has an effect if `tickmode` is set to\n "array". Used with `tickvals`.\n ticktextsrc\n Sets the source reference on Chart Studio Cloud for\n `ticktext`.\n tickvals\n Sets the values at which ticks on this axis appear.\n Only has an effect if `tickmode` is set to "array".\n Used with `ticktext`.\n tickvalssrc\n Sets the source reference on Chart Studio Cloud for\n `tickvals`.\n tickwidth\n Sets the tick width (in px).\n title\n :class:`plotly.graph_objects.isosurface.colorbar.Title`\n instance or dict with compatible properties\n x\n Sets the x position with respect to `xref` of the color\n bar (in plot fraction). When `xref` is "paper",\n defaults to 1.02 when `orientation` is "v" and 0.5 when\n `orientation` is "h". When `xref` is "container",\n defaults to 1 when `orientation` is "v" and 0.5 when\n `orientation` is "h". Must be between 0 and 1 if `xref`\n is "container" and between "-2" and 3 if `xref` is\n "paper".\n xanchor\n Sets this color bar's horizontal position anchor. This\n anchor binds the `x` position to the "left", "center"\n or "right" of the color bar. Defaults to "left" when\n `orientation` is "v" and "center" when `orientation` is\n "h".\n xpad\n Sets the amount of padding (in px) along the x\n direction.\n xref\n Sets the container `x` refers to. "container" spans the\n entire `width` of the plot. "paper" refers to the width\n of the plotting area only.\n y\n Sets the y position with respect to `yref` of the color\n bar (in plot fraction). When `yref` is "paper",\n defaults to 0.5 when `orientation` is "v" and 1.02 when\n `orientation` is "h". When `yref` is "container",\n defaults to 0.5 when `orientation` is "v" and 1 when\n `orientation` is "h". Must be between 0 and 1 if `yref`\n is "container" and between "-2" and 3 if `yref` is\n "paper".\n yanchor\n Sets this color bar's vertical position anchor This\n anchor binds the `y` position to the "top", "middle" or\n "bottom" of the color bar. Defaults to "middle" when\n `orientation` is "v" and "bottom" when `orientation` is\n "h".\n ypad\n Sets the amount of padding (in px) along the y\n direction.\n yref\n Sets the container `y` refers to. "container" spans the\n entire `height` of the plot. "paper" refers to the\n height of the plotting area only.\n\n Returns\n -------\n ColorBar\n """\n super().__init__("colorbar")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.ColorBar\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.ColorBar`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("borderwidth", arg, borderwidth)\n self._set_property("dtick", arg, dtick)\n self._set_property("exponentformat", arg, exponentformat)\n self._set_property("labelalias", arg, labelalias)\n self._set_property("len", arg, len)\n self._set_property("lenmode", arg, lenmode)\n self._set_property("minexponent", arg, minexponent)\n self._set_property("nticks", arg, nticks)\n self._set_property("orientation", arg, orientation)\n self._set_property("outlinecolor", arg, outlinecolor)\n self._set_property("outlinewidth", arg, outlinewidth)\n self._set_property("separatethousands", arg, separatethousands)\n self._set_property("showexponent", arg, showexponent)\n self._set_property("showticklabels", arg, showticklabels)\n self._set_property("showtickprefix", arg, showtickprefix)\n self._set_property("showticksuffix", arg, showticksuffix)\n self._set_property("thickness", arg, thickness)\n self._set_property("thicknessmode", arg, thicknessmode)\n self._set_property("tick0", arg, tick0)\n self._set_property("tickangle", arg, tickangle)\n self._set_property("tickcolor", arg, tickcolor)\n self._set_property("tickfont", arg, tickfont)\n self._set_property("tickformat", arg, tickformat)\n self._set_property("tickformatstops", arg, tickformatstops)\n self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults)\n self._set_property("ticklabeloverflow", arg, ticklabeloverflow)\n self._set_property("ticklabelposition", arg, ticklabelposition)\n self._set_property("ticklabelstep", arg, ticklabelstep)\n self._set_property("ticklen", arg, ticklen)\n self._set_property("tickmode", arg, tickmode)\n self._set_property("tickprefix", arg, tickprefix)\n self._set_property("ticks", arg, ticks)\n self._set_property("ticksuffix", arg, ticksuffix)\n self._set_property("ticktext", arg, ticktext)\n self._set_property("ticktextsrc", arg, ticktextsrc)\n self._set_property("tickvals", arg, tickvals)\n self._set_property("tickvalssrc", arg, tickvalssrc)\n self._set_property("tickwidth", arg, tickwidth)\n self._set_property("title", arg, title)\n self._set_property("x", arg, x)\n self._set_property("xanchor", arg, xanchor)\n self._set_property("xpad", arg, xpad)\n self._set_property("xref", arg, xref)\n self._set_property("y", arg, y)\n self._set_property("yanchor", arg, yanchor)\n self._set_property("ypad", arg, ypad)\n self._set_property("yref", arg, yref)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_colorbar.py
_colorbar.py
Python
60,406
0.75
0.116212
0.001978
awesome-app
446
2025-05-01T09:12:31.550959
BSD-3-Clause
false
3cac43dd1eb45dd883e16ddd62dda03b
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Contour(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.contour"\n _valid_props = {"color", "show", "width"}\n\n @property\n def color(self):\n """\n Sets the color of the contour lines.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def show(self):\n """\n Sets whether or not dynamic contours are shown on hover\n\n The 'show' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["show"]\n\n @show.setter\n def show(self, val):\n self["show"] = val\n\n @property\n def width(self):\n """\n Sets the width of the contour lines.\n\n The 'width' property is a number and may be specified as:\n - An int or float in the interval [1, 16]\n\n Returns\n -------\n int|float\n """\n return self["width"]\n\n @width.setter\n def width(self, val):\n self["width"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n Sets the color of the contour lines.\n show\n Sets whether or not dynamic contours are shown on hover\n width\n Sets the width of the contour lines.\n """\n\n def __init__(self, arg=None, color=None, show=None, width=None, **kwargs):\n """\n Construct a new Contour object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.Contour`\n color\n Sets the color of the contour lines.\n show\n Sets whether or not dynamic contours are shown on hover\n width\n Sets the width of the contour lines.\n\n Returns\n -------\n Contour\n """\n super().__init__("contour")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.Contour\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.Contour`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("show", arg, show)\n self._set_property("width", arg, width)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_contour.py
_contour.py
Python
3,513
0.95
0.110236
0.019048
react-lib
393
2024-08-16T09:07:52.313488
MIT
false
60667d53c79b7240cf7475eb353309f1
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Hoverlabel(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.hoverlabel"\n _valid_props = {\n "align",\n "alignsrc",\n "bgcolor",\n "bgcolorsrc",\n "bordercolor",\n "bordercolorsrc",\n "font",\n "namelength",\n "namelengthsrc",\n }\n\n @property\n def align(self):\n """\n Sets the horizontal alignment of the text content within hover\n label box. Has an effect only if the hover label text spans\n more two or more lines\n\n The 'align' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'right', 'auto']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["align"]\n\n @align.setter\n def align(self, val):\n self["align"] = val\n\n @property\n def alignsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `align`.\n\n The 'alignsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["alignsrc"]\n\n @alignsrc.setter\n def alignsrc(self, val):\n self["alignsrc"] = val\n\n @property\n def bgcolor(self):\n """\n Sets the background color of the hover labels for this trace\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bgcolorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `bgcolor`.\n\n The 'bgcolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["bgcolorsrc"]\n\n @bgcolorsrc.setter\n def bgcolorsrc(self, val):\n self["bgcolorsrc"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the border color of the hover labels for this trace.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def bordercolorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n\n The 'bordercolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["bordercolorsrc"]\n\n @bordercolorsrc.setter\n def bordercolorsrc(self, val):\n self["bordercolorsrc"] = val\n\n @property\n def font(self):\n """\n Sets the font used in hover labels.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.hoverlabel.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.hoverlabel.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def namelength(self):\n """\n Sets the default length (in number of characters) of the trace\n name in the hover labels for all traces. -1 shows the whole\n name regardless of length. 0-3 shows the first 0-3 characters,\n and an integer >3 will show the whole name if it is less than\n that many characters, but if it is longer, will truncate to\n `namelength - 3` characters and add an ellipsis.\n\n The 'namelength' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [-1, 9223372036854775807]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|numpy.ndarray\n """\n return self["namelength"]\n\n @namelength.setter\n def namelength(self, val):\n self["namelength"] = val\n\n @property\n def namelengthsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n\n The 'namelengthsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["namelengthsrc"]\n\n @namelengthsrc.setter\n def namelengthsrc(self, val):\n self["namelengthsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n align\n Sets the horizontal alignment of the text content\n within hover label box. Has an effect only if the hover\n label text spans more two or more lines\n alignsrc\n Sets the source reference on Chart Studio Cloud for\n `align`.\n bgcolor\n Sets the background color of the hover labels for this\n trace\n bgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bgcolor`.\n bordercolor\n Sets the border color of the hover labels for this\n trace.\n bordercolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n font\n Sets the font used in hover labels.\n namelength\n Sets the default length (in number of characters) of\n the trace name in the hover labels for all traces. -1\n shows the whole name regardless of length. 0-3 shows\n the first 0-3 characters, and an integer >3 will show\n the whole name if it is less than that many characters,\n but if it is longer, will truncate to `namelength - 3`\n characters and add an ellipsis.\n namelengthsrc\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n """\n\n def __init__(\n self,\n arg=None,\n align=None,\n alignsrc=None,\n bgcolor=None,\n bgcolorsrc=None,\n bordercolor=None,\n bordercolorsrc=None,\n font=None,\n namelength=None,\n namelengthsrc=None,\n **kwargs,\n ):\n """\n Construct a new Hoverlabel object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.Hoverlabel`\n align\n Sets the horizontal alignment of the text content\n within hover label box. Has an effect only if the hover\n label text spans more two or more lines\n alignsrc\n Sets the source reference on Chart Studio Cloud for\n `align`.\n bgcolor\n Sets the background color of the hover labels for this\n trace\n bgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bgcolor`.\n bordercolor\n Sets the border color of the hover labels for this\n trace.\n bordercolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n font\n Sets the font used in hover labels.\n namelength\n Sets the default length (in number of characters) of\n the trace name in the hover labels for all traces. -1\n shows the whole name regardless of length. 0-3 shows\n the first 0-3 characters, and an integer >3 will show\n the whole name if it is less than that many characters,\n but if it is longer, will truncate to `namelength - 3`\n characters and add an ellipsis.\n namelengthsrc\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n\n Returns\n -------\n Hoverlabel\n """\n super().__init__("hoverlabel")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.Hoverlabel\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.Hoverlabel`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("align", arg, align)\n self._set_property("alignsrc", arg, alignsrc)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bgcolorsrc", arg, bgcolorsrc)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("bordercolorsrc", arg, bordercolorsrc)\n self._set_property("font", arg, font)\n self._set_property("namelength", arg, namelength)\n self._set_property("namelengthsrc", arg, namelengthsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_hoverlabel.py
_hoverlabel.py
Python
10,478
0.95
0.171598
0.010274
react-lib
175
2024-09-12T17:46:45.229129
BSD-3-Clause
false
fba8d8d8686b013698612fab9c61762d
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Legendgrouptitle(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.legendgrouptitle"\n _valid_props = {"font", "text"}\n\n @property\n def font(self):\n """\n Sets this legend group's title font.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.legendgrouptitle.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.legendgrouptitle.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def text(self):\n """\n Sets the title of the legend group.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n """\n\n def __init__(self, arg=None, font=None, text=None, **kwargs):\n """\n Construct a new Legendgrouptitle object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.Legendgrouptitle`\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n\n Returns\n -------\n Legendgrouptitle\n """\n super().__init__("legendgrouptitle")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.Legendgrouptitle\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.Legendgrouptitle`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("font", arg, font)\n self._set_property("text", arg, text)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_legendgrouptitle.py
_legendgrouptitle.py
Python
2,960
0.95
0.115385
0.023256
node-utils
424
2025-06-14T19:24:22.049662
Apache-2.0
false
d46e7f9aa7cf6b044da7324ce6ddf62f
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Lighting(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.lighting"\n _valid_props = {\n "ambient",\n "diffuse",\n "facenormalsepsilon",\n "fresnel",\n "roughness",\n "specular",\n "vertexnormalsepsilon",\n }\n\n @property\n def ambient(self):\n """\n Ambient light increases overall color visibility but can wash\n out the image.\n\n The 'ambient' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["ambient"]\n\n @ambient.setter\n def ambient(self, val):\n self["ambient"] = val\n\n @property\n def diffuse(self):\n """\n Represents the extent that incident rays are reflected in a\n range of angles.\n\n The 'diffuse' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["diffuse"]\n\n @diffuse.setter\n def diffuse(self, val):\n self["diffuse"] = val\n\n @property\n def facenormalsepsilon(self):\n """\n Epsilon for face normals calculation avoids math issues arising\n from degenerate geometry.\n\n The 'facenormalsepsilon' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["facenormalsepsilon"]\n\n @facenormalsepsilon.setter\n def facenormalsepsilon(self, val):\n self["facenormalsepsilon"] = val\n\n @property\n def fresnel(self):\n """\n Represents the reflectance as a dependency of the viewing\n angle; e.g. paper is reflective when viewing it from the edge\n of the paper (almost 90 degrees), causing shine.\n\n The 'fresnel' property is a number and may be specified as:\n - An int or float in the interval [0, 5]\n\n Returns\n -------\n int|float\n """\n return self["fresnel"]\n\n @fresnel.setter\n def fresnel(self, val):\n self["fresnel"] = val\n\n @property\n def roughness(self):\n """\n Alters specular reflection; the rougher the surface, the wider\n and less contrasty the shine.\n\n The 'roughness' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["roughness"]\n\n @roughness.setter\n def roughness(self, val):\n self["roughness"] = val\n\n @property\n def specular(self):\n """\n Represents the level that incident rays are reflected in a\n single direction, causing shine.\n\n The 'specular' property is a number and may be specified as:\n - An int or float in the interval [0, 2]\n\n Returns\n -------\n int|float\n """\n return self["specular"]\n\n @specular.setter\n def specular(self, val):\n self["specular"] = val\n\n @property\n def vertexnormalsepsilon(self):\n """\n Epsilon for vertex normals calculation avoids math issues\n arising from degenerate geometry.\n\n The 'vertexnormalsepsilon' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["vertexnormalsepsilon"]\n\n @vertexnormalsepsilon.setter\n def vertexnormalsepsilon(self, val):\n self["vertexnormalsepsilon"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n ambient\n Ambient light increases overall color visibility but\n can wash out the image.\n diffuse\n Represents the extent that incident rays are reflected\n in a range of angles.\n facenormalsepsilon\n Epsilon for face normals calculation avoids math issues\n arising from degenerate geometry.\n fresnel\n Represents the reflectance as a dependency of the\n viewing angle; e.g. paper is reflective when viewing it\n from the edge of the paper (almost 90 degrees), causing\n shine.\n roughness\n Alters specular reflection; the rougher the surface,\n the wider and less contrasty the shine.\n specular\n Represents the level that incident rays are reflected\n in a single direction, causing shine.\n vertexnormalsepsilon\n Epsilon for vertex normals calculation avoids math\n issues arising from degenerate geometry.\n """\n\n def __init__(\n self,\n arg=None,\n ambient=None,\n diffuse=None,\n facenormalsepsilon=None,\n fresnel=None,\n roughness=None,\n specular=None,\n vertexnormalsepsilon=None,\n **kwargs,\n ):\n """\n Construct a new Lighting object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.Lighting`\n ambient\n Ambient light increases overall color visibility but\n can wash out the image.\n diffuse\n Represents the extent that incident rays are reflected\n in a range of angles.\n facenormalsepsilon\n Epsilon for face normals calculation avoids math issues\n arising from degenerate geometry.\n fresnel\n Represents the reflectance as a dependency of the\n viewing angle; e.g. paper is reflective when viewing it\n from the edge of the paper (almost 90 degrees), causing\n shine.\n roughness\n Alters specular reflection; the rougher the surface,\n the wider and less contrasty the shine.\n specular\n Represents the level that incident rays are reflected\n in a single direction, causing shine.\n vertexnormalsepsilon\n Epsilon for vertex normals calculation avoids math\n issues arising from degenerate geometry.\n\n Returns\n -------\n Lighting\n """\n super().__init__("lighting")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.Lighting\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.Lighting`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("ambient", arg, ambient)\n self._set_property("diffuse", arg, diffuse)\n self._set_property("facenormalsepsilon", arg, facenormalsepsilon)\n self._set_property("fresnel", arg, fresnel)\n self._set_property("roughness", arg, roughness)\n self._set_property("specular", arg, specular)\n self._set_property("vertexnormalsepsilon", arg, vertexnormalsepsilon)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_lighting.py
_lighting.py
Python
7,773
0.95
0.103846
0.013514
awesome-app
262
2024-01-31T04:44:31.999799
MIT
false
15924f98472920d8f1055976d777f463
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Lightposition(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.lightposition"\n _valid_props = {"x", "y", "z"}\n\n @property\n def x(self):\n """\n Numeric vector, representing the X coordinate for each vertex.\n\n The 'x' property is a number and may be specified as:\n - An int or float in the interval [-100000, 100000]\n\n Returns\n -------\n int|float\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def y(self):\n """\n Numeric vector, representing the Y coordinate for each vertex.\n\n The 'y' property is a number and may be specified as:\n - An int or float in the interval [-100000, 100000]\n\n Returns\n -------\n int|float\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def z(self):\n """\n Numeric vector, representing the Z coordinate for each vertex.\n\n The 'z' property is a number and may be specified as:\n - An int or float in the interval [-100000, 100000]\n\n Returns\n -------\n int|float\n """\n return self["z"]\n\n @z.setter\n def z(self, val):\n self["z"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n x\n Numeric vector, representing the X coordinate for each\n vertex.\n y\n Numeric vector, representing the Y coordinate for each\n vertex.\n z\n Numeric vector, representing the Z coordinate for each\n vertex.\n """\n\n def __init__(self, arg=None, x=None, y=None, z=None, **kwargs):\n """\n Construct a new Lightposition object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.Lightposition`\n x\n Numeric vector, representing the X coordinate for each\n vertex.\n y\n Numeric vector, representing the Y coordinate for each\n vertex.\n z\n Numeric vector, representing the Z coordinate for each\n vertex.\n\n Returns\n -------\n Lightposition\n """\n super().__init__("lightposition")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.Lightposition\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.Lightposition`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("x", arg, x)\n self._set_property("y", arg, y)\n self._set_property("z", arg, z)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_lightposition.py
_lightposition.py
Python
3,509
0.95
0.170543
0.018692
awesome-app
505
2024-05-03T00:30:30.879398
Apache-2.0
false
e78136b6e8f1a0d0fe7669be8aac8afa
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Slices(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.slices"\n _valid_props = {"x", "y", "z"}\n\n @property\n def x(self):\n """\n The 'x' property is an instance of X\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.slices.X`\n - A dict of string/value properties that will be passed\n to the X constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.slices.X\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def y(self):\n """\n The 'y' property is an instance of Y\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.slices.Y`\n - A dict of string/value properties that will be passed\n to the Y constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.slices.Y\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def z(self):\n """\n The 'z' property is an instance of Z\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.slices.Z`\n - A dict of string/value properties that will be passed\n to the Z constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.slices.Z\n """\n return self["z"]\n\n @z.setter\n def z(self, val):\n self["z"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n x\n :class:`plotly.graph_objects.isosurface.slices.X`\n instance or dict with compatible properties\n y\n :class:`plotly.graph_objects.isosurface.slices.Y`\n instance or dict with compatible properties\n z\n :class:`plotly.graph_objects.isosurface.slices.Z`\n instance or dict with compatible properties\n """\n\n def __init__(self, arg=None, x=None, y=None, z=None, **kwargs):\n """\n Construct a new Slices object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.Slices`\n x\n :class:`plotly.graph_objects.isosurface.slices.X`\n instance or dict with compatible properties\n y\n :class:`plotly.graph_objects.isosurface.slices.Y`\n instance or dict with compatible properties\n z\n :class:`plotly.graph_objects.isosurface.slices.Z`\n instance or dict with compatible properties\n\n Returns\n -------\n Slices\n """\n super().__init__("slices")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.Slices\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.Slices`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("x", arg, x)\n self._set_property("y", arg, y)\n self._set_property("z", arg, z)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_slices.py
_slices.py
Python
3,891
0.95
0.166667
0.017699
react-lib
618
2023-12-28T00:51:20.610264
BSD-3-Clause
false
9fedf701fb044f0692eb6433fb28fe5b
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Spaceframe(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.spaceframe"\n _valid_props = {"fill", "show"}\n\n @property\n def fill(self):\n """\n Sets the fill ratio of the `spaceframe` elements. The default\n fill value is 0.15 meaning that only 15% of the area of every\n faces of tetras would be shaded. Applying a greater `fill`\n ratio would allow the creation of stronger elements or could be\n sued to have entirely closed areas (in case of using 1).\n\n The 'fill' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["fill"]\n\n @fill.setter\n def fill(self, val):\n self["fill"] = val\n\n @property\n def show(self):\n """\n Displays/hides tetrahedron shapes between minimum and maximum\n iso-values. Often useful when either caps or surfaces are\n disabled or filled with values less than 1.\n\n The 'show' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["show"]\n\n @show.setter\n def show(self, val):\n self["show"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n fill\n Sets the fill ratio of the `spaceframe` elements. The\n default fill value is 0.15 meaning that only 15% of the\n area of every faces of tetras would be shaded. Applying\n a greater `fill` ratio would allow the creation of\n stronger elements or could be sued to have entirely\n closed areas (in case of using 1).\n show\n Displays/hides tetrahedron shapes between minimum and\n maximum iso-values. Often useful when either caps or\n surfaces are disabled or filled with values less than\n 1.\n """\n\n def __init__(self, arg=None, fill=None, show=None, **kwargs):\n """\n Construct a new Spaceframe object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.Spaceframe`\n fill\n Sets the fill ratio of the `spaceframe` elements. The\n default fill value is 0.15 meaning that only 15% of the\n area of every faces of tetras would be shaded. Applying\n a greater `fill` ratio would allow the creation of\n stronger elements or could be sued to have entirely\n closed areas (in case of using 1).\n show\n Displays/hides tetrahedron shapes between minimum and\n maximum iso-values. Often useful when either caps or\n surfaces are disabled or filled with values less than\n 1.\n\n Returns\n -------\n Spaceframe\n """\n super().__init__("spaceframe")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.Spaceframe\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.Spaceframe`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("fill", arg, fill)\n self._set_property("show", arg, show)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_spaceframe.py
_spaceframe.py
Python
4,084
0.95
0.090164
0.019231
node-utils
112
2024-04-25T01:49:10.902218
BSD-3-Clause
false
02934ed40d07ddae8396773d37616a90
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Stream(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.stream"\n _valid_props = {"maxpoints", "token"}\n\n @property\n def maxpoints(self):\n """\n Sets the maximum number of points to keep on the plots from an\n incoming stream. If `maxpoints` is set to 50, only the newest\n 50 points will be displayed on the plot.\n\n The 'maxpoints' property is a number and may be specified as:\n - An int or float in the interval [0, 10000]\n\n Returns\n -------\n int|float\n """\n return self["maxpoints"]\n\n @maxpoints.setter\n def maxpoints(self, val):\n self["maxpoints"] = val\n\n @property\n def token(self):\n """\n The stream id number links a data trace on a plot with a\n stream. See https://chart-studio.plotly.com/settings for more\n details.\n\n The 'token' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["token"]\n\n @token.setter\n def token(self, val):\n self["token"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n maxpoints\n Sets the maximum number of points to keep on the plots\n from an incoming stream. If `maxpoints` is set to 50,\n only the newest 50 points will be displayed on the\n plot.\n token\n The stream id number links a data trace on a plot with\n a stream. See https://chart-studio.plotly.com/settings\n for more details.\n """\n\n def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):\n """\n Construct a new Stream object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.Stream`\n maxpoints\n Sets the maximum number of points to keep on the plots\n from an incoming stream. If `maxpoints` is set to 50,\n only the newest 50 points will be displayed on the\n plot.\n token\n The stream id number links a data trace on a plot with\n a stream. See https://chart-studio.plotly.com/settings\n for more details.\n\n Returns\n -------\n Stream\n """\n super().__init__("stream")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.Stream\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.Stream`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("maxpoints", arg, maxpoints)\n self._set_property("token", arg, token)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_stream.py
_stream.py
Python
3,526
0.95
0.122807
0.020833
react-lib
628
2023-12-28T18:30:13.312427
GPL-3.0
false
d8a0e9b4befc85625856d966304ba159
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Surface(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface"\n _path_str = "isosurface.surface"\n _valid_props = {"count", "fill", "pattern", "show"}\n\n @property\n def count(self):\n """\n Sets the number of iso-surfaces between minimum and maximum\n iso-values. By default this value is 2 meaning that only\n minimum and maximum surfaces would be drawn.\n\n The 'count' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["count"]\n\n @count.setter\n def count(self, val):\n self["count"] = val\n\n @property\n def fill(self):\n """\n Sets the fill ratio of the iso-surface. The default fill value\n of the surface is 1 meaning that they are entirely shaded. On\n the other hand Applying a `fill` ratio less than one would\n allow the creation of openings parallel to the edges.\n\n The 'fill' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["fill"]\n\n @fill.setter\n def fill(self, val):\n self["fill"] = val\n\n @property\n def pattern(self):\n """\n Sets the surface pattern of the iso-surface 3-D sections. The\n default pattern of the surface is `all` meaning that the rest\n of surface elements would be shaded. The check options (either\n 1 or 2) could be used to draw half of the squares on the\n surface. Using various combinations of capital `A`, `B`, `C`,\n `D` and `E` may also be used to reduce the number of triangles\n on the iso-surfaces and creating other patterns of interest.\n\n The 'pattern' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['A', 'B', 'C', 'D', 'E'] joined with '+' characters\n (e.g. 'A+B')\n OR exactly one of ['all', 'odd', 'even'] (e.g. 'even')\n\n Returns\n -------\n Any\n """\n return self["pattern"]\n\n @pattern.setter\n def pattern(self, val):\n self["pattern"] = val\n\n @property\n def show(self):\n """\n Hides/displays surfaces between minimum and maximum iso-values.\n\n The 'show' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["show"]\n\n @show.setter\n def show(self, val):\n self["show"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n count\n Sets the number of iso-surfaces between minimum and\n maximum iso-values. By default this value is 2 meaning\n that only minimum and maximum surfaces would be drawn.\n fill\n Sets the fill ratio of the iso-surface. The default\n fill value of the surface is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n pattern\n Sets the surface pattern of the iso-surface 3-D\n sections. The default pattern of the surface is `all`\n meaning that the rest of surface elements would be\n shaded. The check options (either 1 or 2) could be used\n to draw half of the squares on the surface. Using\n various combinations of capital `A`, `B`, `C`, `D` and\n `E` may also be used to reduce the number of triangles\n on the iso-surfaces and creating other patterns of\n interest.\n show\n Hides/displays surfaces between minimum and maximum\n iso-values.\n """\n\n def __init__(\n self, arg=None, count=None, fill=None, pattern=None, show=None, **kwargs\n ):\n """\n Construct a new Surface object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.Surface`\n count\n Sets the number of iso-surfaces between minimum and\n maximum iso-values. By default this value is 2 meaning\n that only minimum and maximum surfaces would be drawn.\n fill\n Sets the fill ratio of the iso-surface. The default\n fill value of the surface is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n pattern\n Sets the surface pattern of the iso-surface 3-D\n sections. The default pattern of the surface is `all`\n meaning that the rest of surface elements would be\n shaded. The check options (either 1 or 2) could be used\n to draw half of the squares on the surface. Using\n various combinations of capital `A`, `B`, `C`, `D` and\n `E` may also be used to reduce the number of triangles\n on the iso-surfaces and creating other patterns of\n interest.\n show\n Hides/displays surfaces between minimum and maximum\n iso-values.\n\n Returns\n -------\n Surface\n """\n super().__init__("surface")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.Surface\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.Surface`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("count", arg, count)\n self._set_property("fill", arg, fill)\n self._set_property("pattern", arg, pattern)\n self._set_property("show", arg, show)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\_surface.py
_surface.py
Python
6,708
0.95
0.07772
0.011976
vue-tools
395
2024-12-01T11:49:48.509772
Apache-2.0
false
b7f72e7837bb9aa38f6171dc39f42fd5
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._caps import Caps\n from ._colorbar import ColorBar\n from ._contour import Contour\n from ._hoverlabel import Hoverlabel\n from ._legendgrouptitle import Legendgrouptitle\n from ._lighting import Lighting\n from ._lightposition import Lightposition\n from ._slices import Slices\n from ._spaceframe import Spaceframe\n from ._stream import Stream\n from ._surface import Surface\n from . import caps\n from . import colorbar\n from . import hoverlabel\n from . import legendgrouptitle\n from . import slices\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".caps", ".colorbar", ".hoverlabel", ".legendgrouptitle", ".slices"],\n [\n "._caps.Caps",\n "._colorbar.ColorBar",\n "._contour.Contour",\n "._hoverlabel.Hoverlabel",\n "._legendgrouptitle.Legendgrouptitle",\n "._lighting.Lighting",\n "._lightposition.Lightposition",\n "._slices.Slices",\n "._spaceframe.Spaceframe",\n "._stream.Stream",\n "._surface.Surface",\n ],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__init__.py
__init__.py
Python
1,251
0.85
0.025
0
vue-tools
61
2024-12-03T14:44:47.126579
MIT
false
6685540bcc8400b4af6bb1013fc668f2
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass X(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.caps"\n _path_str = "isosurface.caps.x"\n _valid_props = {"fill", "show"}\n\n @property\n def fill(self):\n """\n Sets the fill ratio of the `caps`. The default fill value of\n the `caps` is 1 meaning that they are entirely shaded. On the\n other hand Applying a `fill` ratio less than one would allow\n the creation of openings parallel to the edges.\n\n The 'fill' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["fill"]\n\n @fill.setter\n def fill(self, val):\n self["fill"] = val\n\n @property\n def show(self):\n """\n Sets the fill ratio of the `slices`. The default fill value of\n the x `slices` is 1 meaning that they are entirely shaded. On\n the other hand Applying a `fill` ratio less than one would\n allow the creation of openings parallel to the edges.\n\n The 'show' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["show"]\n\n @show.setter\n def show(self, val):\n self["show"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n fill\n Sets the fill ratio of the `caps`. The default fill\n value of the `caps` is 1 meaning that they are entirely\n shaded. On the other hand Applying a `fill` ratio less\n than one would allow the creation of openings parallel\n to the edges.\n show\n Sets the fill ratio of the `slices`. The default fill\n value of the x `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n """\n\n def __init__(self, arg=None, fill=None, show=None, **kwargs):\n """\n Construct a new X object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.caps.X`\n fill\n Sets the fill ratio of the `caps`. The default fill\n value of the `caps` is 1 meaning that they are entirely\n shaded. On the other hand Applying a `fill` ratio less\n than one would allow the creation of openings parallel\n to the edges.\n show\n Sets the fill ratio of the `slices`. The default fill\n value of the x `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n\n Returns\n -------\n X\n """\n super().__init__("x")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.caps.X\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.caps.X`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("fill", arg, fill)\n self._set_property("show", arg, show)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\caps\_x.py
_x.py
Python
4,043
0.95
0.090164
0.019231
node-utils
618
2024-10-30T08:57:50.634184
MIT
false
cbd7999618c38f8449191d105876a6da
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Y(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.caps"\n _path_str = "isosurface.caps.y"\n _valid_props = {"fill", "show"}\n\n @property\n def fill(self):\n """\n Sets the fill ratio of the `caps`. The default fill value of\n the `caps` is 1 meaning that they are entirely shaded. On the\n other hand Applying a `fill` ratio less than one would allow\n the creation of openings parallel to the edges.\n\n The 'fill' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["fill"]\n\n @fill.setter\n def fill(self, val):\n self["fill"] = val\n\n @property\n def show(self):\n """\n Sets the fill ratio of the `slices`. The default fill value of\n the y `slices` is 1 meaning that they are entirely shaded. On\n the other hand Applying a `fill` ratio less than one would\n allow the creation of openings parallel to the edges.\n\n The 'show' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["show"]\n\n @show.setter\n def show(self, val):\n self["show"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n fill\n Sets the fill ratio of the `caps`. The default fill\n value of the `caps` is 1 meaning that they are entirely\n shaded. On the other hand Applying a `fill` ratio less\n than one would allow the creation of openings parallel\n to the edges.\n show\n Sets the fill ratio of the `slices`. The default fill\n value of the y `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n """\n\n def __init__(self, arg=None, fill=None, show=None, **kwargs):\n """\n Construct a new Y object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.caps.Y`\n fill\n Sets the fill ratio of the `caps`. The default fill\n value of the `caps` is 1 meaning that they are entirely\n shaded. On the other hand Applying a `fill` ratio less\n than one would allow the creation of openings parallel\n to the edges.\n show\n Sets the fill ratio of the `slices`. The default fill\n value of the y `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n\n Returns\n -------\n Y\n """\n super().__init__("y")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.caps.Y\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.caps.Y`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("fill", arg, fill)\n self._set_property("show", arg, show)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\caps\_y.py
_y.py
Python
4,043
0.95
0.090164
0.019231
react-lib
29
2024-10-02T20:49:05.070629
GPL-3.0
false
3c94ad1efdb546af3c4997e68da1112f
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Z(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.caps"\n _path_str = "isosurface.caps.z"\n _valid_props = {"fill", "show"}\n\n @property\n def fill(self):\n """\n Sets the fill ratio of the `caps`. The default fill value of\n the `caps` is 1 meaning that they are entirely shaded. On the\n other hand Applying a `fill` ratio less than one would allow\n the creation of openings parallel to the edges.\n\n The 'fill' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["fill"]\n\n @fill.setter\n def fill(self, val):\n self["fill"] = val\n\n @property\n def show(self):\n """\n Sets the fill ratio of the `slices`. The default fill value of\n the z `slices` is 1 meaning that they are entirely shaded. On\n the other hand Applying a `fill` ratio less than one would\n allow the creation of openings parallel to the edges.\n\n The 'show' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["show"]\n\n @show.setter\n def show(self, val):\n self["show"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n fill\n Sets the fill ratio of the `caps`. The default fill\n value of the `caps` is 1 meaning that they are entirely\n shaded. On the other hand Applying a `fill` ratio less\n than one would allow the creation of openings parallel\n to the edges.\n show\n Sets the fill ratio of the `slices`. The default fill\n value of the z `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n """\n\n def __init__(self, arg=None, fill=None, show=None, **kwargs):\n """\n Construct a new Z object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.caps.Z`\n fill\n Sets the fill ratio of the `caps`. The default fill\n value of the `caps` is 1 meaning that they are entirely\n shaded. On the other hand Applying a `fill` ratio less\n than one would allow the creation of openings parallel\n to the edges.\n show\n Sets the fill ratio of the `slices`. The default fill\n value of the z `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n\n Returns\n -------\n Z\n """\n super().__init__("z")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.caps.Z\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.caps.Z`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("fill", arg, fill)\n self._set_property("show", arg, show)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\caps\_z.py
_z.py
Python
4,043
0.95
0.090164
0.019231
node-utils
675
2025-05-17T10:55:38.012922
GPL-3.0
false
0548abf0a6eee14737ddbf06e4d5b664
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._x import X\n from ._y import Y\n from ._z import Z\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [], ["._x.X", "._y.Y", "._z.Z"]\n )\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\caps\__init__.py
__init__.py
Python
301
0.85
0.076923
0
react-lib
982
2024-12-26T17:23:45.775312
BSD-3-Clause
false
4e71d77aad4370df9499226594c230ec
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\caps\__pycache__\_x.cpython-313.pyc
_x.cpython-313.pyc
Other
4,801
0.8
0.018868
0
awesome-app
285
2025-05-17T08:55:31.727443
BSD-3-Clause
false
951565b3dc8d6f1035f61d1b1b451bcf
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\caps\__pycache__\_y.cpython-313.pyc
_y.cpython-313.pyc
Other
4,801
0.8
0.018868
0
node-utils
942
2024-04-17T21:48:09.805430
BSD-3-Clause
false
415afd1516650c480024c23044458c67
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\caps\__pycache__\_z.cpython-313.pyc
_z.cpython-313.pyc
Other
4,801
0.8
0.018868
0
vue-tools
899
2025-02-04T05:46:51.543027
Apache-2.0
false
e0f54b84030411ab6f8da30966559b13
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\caps\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
567
0.85
0
0
vue-tools
975
2025-03-27T13:22:21.028115
BSD-3-Clause
false
0a6720fc71038dcb67e9b7b48bf373d0
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Tickfont(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.colorbar"\n _path_str = "isosurface.colorbar.tickfont"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Tickfont object\n\n Sets the color bar's tick label font\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.colorbar.Tickfont`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Tickfont\n """\n super().__init__("tickfont")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.colorbar.Tickfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.colorbar.Tickfont`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\_tickfont.py
_tickfont.py
Python
9,933
0.95
0.10479
0.010526
react-lib
106
2024-02-07T21:56:03.327269
BSD-3-Clause
false
373a883b03ddcb4fa2a99e6680303221
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Tickformatstop(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.colorbar"\n _path_str = "isosurface.colorbar.tickformatstop"\n _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"}\n\n @property\n def dtickrange(self):\n """\n range [*min*, *max*], where "min", "max" - dtick values which\n describe some zoom level, it is possible to omit "min" or "max"\n value by passing "null"\n\n The 'dtickrange' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'dtickrange[0]' property accepts values of any type\n (1) The 'dtickrange[1]' property accepts values of any type\n\n Returns\n -------\n list\n """\n return self["dtickrange"]\n\n @dtickrange.setter\n def dtickrange(self, val):\n self["dtickrange"] = val\n\n @property\n def enabled(self):\n """\n Determines whether or not this stop is used. If `false`, this\n stop is ignored even within its `dtickrange`.\n\n The 'enabled' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["enabled"]\n\n @enabled.setter\n def enabled(self, val):\n self["enabled"] = val\n\n @property\n def name(self):\n """\n When used in a template, named items are created in the output\n figure in addition to any items the figure already has in this\n array. You can modify these items in the output figure by\n making your own item with `templateitemname` matching this\n `name` alongside your modifications (including `visible: false`\n or `enabled: false` to hide it). Has no effect outside of a\n template.\n\n The 'name' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["name"]\n\n @name.setter\n def name(self, val):\n self["name"] = val\n\n @property\n def templateitemname(self):\n """\n Used to refer to a named item in this array in the template.\n Named items from the template will be created even without a\n matching item in the input figure, but you can modify one by\n making an item with `templateitemname` matching its `name`,\n alongside your modifications (including `visible: false` or\n `enabled: false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you explicitly\n show it with `visible: true`.\n\n The 'templateitemname' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["templateitemname"]\n\n @templateitemname.setter\n def templateitemname(self, val):\n self["templateitemname"] = val\n\n @property\n def value(self):\n """\n string - dtickformat for described zoom level, the same as\n "tickformat"\n\n The 'value' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["value"]\n\n @value.setter\n def value(self, val):\n self["value"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n dtickrange\n range [*min*, *max*], where "min", "max" - dtick values\n which describe some zoom level, it is possible to omit\n "min" or "max" value by passing "null"\n enabled\n Determines whether or not this stop is used. If\n `false`, this stop is ignored even within its\n `dtickrange`.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n value\n string - dtickformat for described zoom level, the same\n as "tickformat"\n """\n\n def __init__(\n self,\n arg=None,\n dtickrange=None,\n enabled=None,\n name=None,\n templateitemname=None,\n value=None,\n **kwargs,\n ):\n """\n Construct a new Tickformatstop object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.isosurface.col\n orbar.Tickformatstop`\n dtickrange\n range [*min*, *max*], where "min", "max" - dtick values\n which describe some zoom level, it is possible to omit\n "min" or "max" value by passing "null"\n enabled\n Determines whether or not this stop is used. If\n `false`, this stop is ignored even within its\n `dtickrange`.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n value\n string - dtickformat for described zoom level, the same\n as "tickformat"\n\n Returns\n -------\n Tickformatstop\n """\n super().__init__("tickformatstops")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.colorbar.Tickformatstop\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.colorbar.Tickformatstop`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("dtickrange", arg, dtickrange)\n self._set_property("enabled", arg, enabled)\n self._set_property("name", arg, name)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("value", arg, value)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\_tickformatstop.py
_tickformatstop.py
Python
8,529
0.95
0.082988
0.019048
react-lib
597
2023-11-08T17:06:44.588788
GPL-3.0
false
cf29e6bca9f08bc8b8fb61fccd1df64d
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Title(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.colorbar"\n _path_str = "isosurface.colorbar.title"\n _valid_props = {"font", "side", "text"}\n\n @property\n def font(self):\n """\n Sets this color bar's title font.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.isosurface.colorbar.title.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.isosurface.colorbar.title.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def side(self):\n """\n Determines the location of color bar's title with respect to\n the color bar. Defaults to "top" when `orientation` if "v" and\n defaults to "right" when `orientation` if "h".\n\n The 'side' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['right', 'top', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["side"]\n\n @side.setter\n def side(self, val):\n self["side"] = val\n\n @property\n def text(self):\n """\n Sets the title of the color bar.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Sets this color bar's title font.\n side\n Determines the location of color bar's title with\n respect to the color bar. Defaults to "top" when\n `orientation` if "v" and defaults to "right" when\n `orientation` if "h".\n text\n Sets the title of the color bar.\n """\n\n def __init__(self, arg=None, font=None, side=None, text=None, **kwargs):\n """\n Construct a new Title object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.colorbar.Title`\n font\n Sets this color bar's title font.\n side\n Determines the location of color bar's title with\n respect to the color bar. Defaults to "top" when\n `orientation` if "v" and defaults to "right" when\n `orientation` if "h".\n text\n Sets the title of the color bar.\n\n Returns\n -------\n Title\n """\n super().__init__("title")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.colorbar.Title\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.colorbar.Title`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("font", arg, font)\n self._set_property("side", arg, side)\n self._set_property("text", arg, text)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\_title.py
_title.py
Python
3,992
0.95
0.147059
0.017544
awesome-app
657
2024-02-17T18:06:37.382092
GPL-3.0
false
1b0ff3ff13066e785ea973f34e084784
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._tickfont import Tickfont\n from ._tickformatstop import Tickformatstop\n from ._title import Title\n from . import title\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".title"],\n ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\__init__.py
__init__.py
Python
446
0.85
0.0625
0
python-kit
56
2023-11-14T03:07:08.184085
BSD-3-Clause
false
c1c51c7cdaa97ba16b501a938689f435
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.colorbar.title"\n _path_str = "isosurface.colorbar.title.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets this color bar's title font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.isosurface.col\n orbar.title.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.colorbar.title.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.colorbar.title.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\title\_font.py
_font.py
Python
9,929
0.95
0.10479
0.010526
vue-tools
338
2025-01-15T09:55:43.700480
Apache-2.0
false
6e55095baeb11a98e911901dd24f8e1b
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\title\__init__.py
__init__.py
Python
237
0.85
0.111111
0
vue-tools
137
2025-03-08T14:57:43.194609
GPL-3.0
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\title\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,936
0.8
0.048583
0
awesome-app
488
2023-10-24T23:26:20.213666
BSD-3-Clause
false
6489747492b5b9590e69d1e3b29e6c93
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\title\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
511
0.85
0
0
python-kit
479
2024-05-11T20:50:27.465623
MIT
false
ac84550e501cc8269a329bcc8b1f9b55
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\__pycache__\_tickfont.cpython-313.pyc
_tickfont.cpython-313.pyc
Other
10,982
0.8
0.04918
0
react-lib
871
2024-04-16T09:50:00.269636
GPL-3.0
false
8ac48a9583471c064e79df65c9bba3dd
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\__pycache__\_tickformatstop.cpython-313.pyc
_tickformatstop.cpython-313.pyc
Other
9,309
0.8
0.024876
0.005348
python-kit
726
2024-12-28T15:34:42.664114
GPL-3.0
false
ed89a35ae77c836b77f435c56530d0b7
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\__pycache__\_title.cpython-313.pyc
_title.cpython-313.pyc
Other
4,898
0.8
0.087379
0
react-lib
829
2024-06-26T08:56:24.878150
GPL-3.0
false
b2d9f627cc3ee7148bafe8ead66f0768
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\colorbar\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
711
0.95
0
0
awesome-app
641
2025-06-26T21:10:40.801881
MIT
false
4af69039e8c3c2f3c46d07b8722ff33a
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.hoverlabel"\n _path_str = "isosurface.hoverlabel.font"\n _valid_props = {\n "color",\n "colorsrc",\n "family",\n "familysrc",\n "lineposition",\n "linepositionsrc",\n "shadow",\n "shadowsrc",\n "size",\n "sizesrc",\n "style",\n "stylesrc",\n "textcase",\n "textcasesrc",\n "variant",\n "variantsrc",\n "weight",\n "weightsrc",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def colorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `color`.\n\n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["colorsrc"]\n\n @colorsrc.setter\n def colorsrc(self, val):\n self["colorsrc"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def familysrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `family`.\n\n The 'familysrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["familysrc"]\n\n @familysrc.setter\n def familysrc(self, val):\n self["familysrc"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n - A list or array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def linepositionsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n\n The 'linepositionsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["linepositionsrc"]\n\n @linepositionsrc.setter\n def linepositionsrc(self, val):\n self["linepositionsrc"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def shadowsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `shadow`.\n\n The 'shadowsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["shadowsrc"]\n\n @shadowsrc.setter\n def shadowsrc(self, val):\n self["shadowsrc"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def sizesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `size`.\n\n The 'sizesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["sizesrc"]\n\n @sizesrc.setter\n def sizesrc(self, val):\n self["sizesrc"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def stylesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `style`.\n\n The 'stylesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["stylesrc"]\n\n @stylesrc.setter\n def stylesrc(self, val):\n self["stylesrc"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def textcasesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `textcase`.\n\n The 'textcasesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["textcasesrc"]\n\n @textcasesrc.setter\n def textcasesrc(self, val):\n self["textcasesrc"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def variantsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `variant`.\n\n The 'variantsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["variantsrc"]\n\n @variantsrc.setter\n def variantsrc(self, val):\n self["variantsrc"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|numpy.ndarray\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def weightsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `weight`.\n\n The 'weightsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["weightsrc"]\n\n @weightsrc.setter\n def weightsrc(self, val):\n self["weightsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n familysrc\n Sets the source reference on Chart Studio Cloud for\n `family`.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n linepositionsrc\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n shadowsrc\n Sets the source reference on Chart Studio Cloud for\n `shadow`.\n size\n\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n stylesrc\n Sets the source reference on Chart Studio Cloud for\n `style`.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n textcasesrc\n Sets the source reference on Chart Studio Cloud for\n `textcase`.\n variant\n Sets the variant of the font.\n variantsrc\n Sets the source reference on Chart Studio Cloud for\n `variant`.\n weight\n Sets the weight (or boldness) of the font.\n weightsrc\n Sets the source reference on Chart Studio Cloud for\n `weight`.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n colorsrc=None,\n family=None,\n familysrc=None,\n lineposition=None,\n linepositionsrc=None,\n shadow=None,\n shadowsrc=None,\n size=None,\n sizesrc=None,\n style=None,\n stylesrc=None,\n textcase=None,\n textcasesrc=None,\n variant=None,\n variantsrc=None,\n weight=None,\n weightsrc=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets the font used in hover labels.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.hoverlabel.Font`\n color\n\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n familysrc\n Sets the source reference on Chart Studio Cloud for\n `family`.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n linepositionsrc\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n shadowsrc\n Sets the source reference on Chart Studio Cloud for\n `shadow`.\n size\n\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n stylesrc\n Sets the source reference on Chart Studio Cloud for\n `style`.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n textcasesrc\n Sets the source reference on Chart Studio Cloud for\n `textcase`.\n variant\n Sets the variant of the font.\n variantsrc\n Sets the source reference on Chart Studio Cloud for\n `variant`.\n weight\n Sets the weight (or boldness) of the font.\n weightsrc\n Sets the source reference on Chart Studio Cloud for\n `weight`.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.hoverlabel.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.hoverlabel.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("colorsrc", arg, colorsrc)\n self._set_property("family", arg, family)\n self._set_property("familysrc", arg, familysrc)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("linepositionsrc", arg, linepositionsrc)\n self._set_property("shadow", arg, shadow)\n self._set_property("shadowsrc", arg, shadowsrc)\n self._set_property("size", arg, size)\n self._set_property("sizesrc", arg, sizesrc)\n self._set_property("style", arg, style)\n self._set_property("stylesrc", arg, stylesrc)\n self._set_property("textcase", arg, textcase)\n self._set_property("textcasesrc", arg, textcasesrc)\n self._set_property("variant", arg, variant)\n self._set_property("variantsrc", arg, variantsrc)\n self._set_property("weight", arg, weight)\n self._set_property("weightsrc", arg, weightsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\hoverlabel\_font.py
_font.py
Python
17,158
0.95
0.136286
0.005976
react-lib
662
2024-06-02T22:02:23.809277
Apache-2.0
false
708a1f90cd24c5fbe5cb1c487c7d9d78
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\hoverlabel\__init__.py
__init__.py
Python
237
0.85
0.111111
0
awesome-app
145
2023-09-09T01:54:32.313945
Apache-2.0
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\hoverlabel\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
18,407
0.8
0.1
0
python-kit
604
2024-03-30T13:46:13.401010
MIT
false
43938c57fe0fe695ee3b91158200a6be
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\hoverlabel\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
507
0.85
0
0
node-utils
238
2024-02-09T11:53:54.070921
BSD-3-Clause
false
21f3a93f4abc571354f83352eb87f392
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.legendgrouptitle"\n _path_str = "isosurface.legendgrouptitle.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets this legend group's title font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.isosurface.leg\n endgrouptitle.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.legendgrouptitle.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.legendgrouptitle.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\legendgrouptitle\_font.py
_font.py
Python
9,942
0.95
0.10479
0.010526
react-lib
41
2023-07-11T20:43:05.328624
Apache-2.0
false
e42d81239b7dc29da4e8bb87a67ee4b7
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\legendgrouptitle\__init__.py
__init__.py
Python
237
0.85
0.111111
0
react-lib
17
2024-06-28T07:25:46.408252
Apache-2.0
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\legendgrouptitle\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,951
0.8
0.048583
0
awesome-app
927
2024-06-15T16:59:53.562288
GPL-3.0
false
fd78fb7066ccfcee863357b61ce0d388
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\legendgrouptitle\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
513
0.85
0
0
react-lib
452
2024-04-21T05:08:01.100834
Apache-2.0
false
b106a879fe2f23619c2347a5b256645d
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass X(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.slices"\n _path_str = "isosurface.slices.x"\n _valid_props = {"fill", "locations", "locationssrc", "show"}\n\n @property\n def fill(self):\n """\n Sets the fill ratio of the `slices`. The default fill value of\n the `slices` is 1 meaning that they are entirely shaded. On the\n other hand Applying a `fill` ratio less than one would allow\n the creation of openings parallel to the edges.\n\n The 'fill' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["fill"]\n\n @fill.setter\n def fill(self, val):\n self["fill"] = val\n\n @property\n def locations(self):\n """\n Specifies the location(s) of slices on the axis. When not\n specified slices would be created for all points of the axis x\n except start and end.\n\n The 'locations' property is an array that may be specified as a tuple,\n list, numpy array, or pandas Series\n\n Returns\n -------\n numpy.ndarray\n """\n return self["locations"]\n\n @locations.setter\n def locations(self, val):\n self["locations"] = val\n\n @property\n def locationssrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `locations`.\n\n The 'locationssrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["locationssrc"]\n\n @locationssrc.setter\n def locationssrc(self, val):\n self["locationssrc"] = val\n\n @property\n def show(self):\n """\n Determines whether or not slice planes about the x dimension\n are drawn.\n\n The 'show' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["show"]\n\n @show.setter\n def show(self, val):\n self["show"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n fill\n Sets the fill ratio of the `slices`. The default fill\n value of the `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n locations\n Specifies the location(s) of slices on the axis. When\n not specified slices would be created for all points of\n the axis x except start and end.\n locationssrc\n Sets the source reference on Chart Studio Cloud for\n `locations`.\n show\n Determines whether or not slice planes about the x\n dimension are drawn.\n """\n\n def __init__(\n self,\n arg=None,\n fill=None,\n locations=None,\n locationssrc=None,\n show=None,\n **kwargs,\n ):\n """\n Construct a new X object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.slices.X`\n fill\n Sets the fill ratio of the `slices`. The default fill\n value of the `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n locations\n Specifies the location(s) of slices on the axis. When\n not specified slices would be created for all points of\n the axis x except start and end.\n locationssrc\n Sets the source reference on Chart Studio Cloud for\n `locations`.\n show\n Determines whether or not slice planes about the x\n dimension are drawn.\n\n Returns\n -------\n X\n """\n super().__init__("x")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.slices.X\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.slices.X`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("fill", arg, fill)\n self._set_property("locations", arg, locations)\n self._set_property("locationssrc", arg, locationssrc)\n self._set_property("show", arg, show)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\slices\_x.py
_x.py
Python
5,303
0.95
0.118644
0.019868
python-kit
202
2024-08-19T17:12:26.749138
GPL-3.0
false
6a1f48f127bed77059a1299c863b8f46
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Y(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.slices"\n _path_str = "isosurface.slices.y"\n _valid_props = {"fill", "locations", "locationssrc", "show"}\n\n @property\n def fill(self):\n """\n Sets the fill ratio of the `slices`. The default fill value of\n the `slices` is 1 meaning that they are entirely shaded. On the\n other hand Applying a `fill` ratio less than one would allow\n the creation of openings parallel to the edges.\n\n The 'fill' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["fill"]\n\n @fill.setter\n def fill(self, val):\n self["fill"] = val\n\n @property\n def locations(self):\n """\n Specifies the location(s) of slices on the axis. When not\n specified slices would be created for all points of the axis y\n except start and end.\n\n The 'locations' property is an array that may be specified as a tuple,\n list, numpy array, or pandas Series\n\n Returns\n -------\n numpy.ndarray\n """\n return self["locations"]\n\n @locations.setter\n def locations(self, val):\n self["locations"] = val\n\n @property\n def locationssrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `locations`.\n\n The 'locationssrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["locationssrc"]\n\n @locationssrc.setter\n def locationssrc(self, val):\n self["locationssrc"] = val\n\n @property\n def show(self):\n """\n Determines whether or not slice planes about the y dimension\n are drawn.\n\n The 'show' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["show"]\n\n @show.setter\n def show(self, val):\n self["show"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n fill\n Sets the fill ratio of the `slices`. The default fill\n value of the `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n locations\n Specifies the location(s) of slices on the axis. When\n not specified slices would be created for all points of\n the axis y except start and end.\n locationssrc\n Sets the source reference on Chart Studio Cloud for\n `locations`.\n show\n Determines whether or not slice planes about the y\n dimension are drawn.\n """\n\n def __init__(\n self,\n arg=None,\n fill=None,\n locations=None,\n locationssrc=None,\n show=None,\n **kwargs,\n ):\n """\n Construct a new Y object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.slices.Y`\n fill\n Sets the fill ratio of the `slices`. The default fill\n value of the `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n locations\n Specifies the location(s) of slices on the axis. When\n not specified slices would be created for all points of\n the axis y except start and end.\n locationssrc\n Sets the source reference on Chart Studio Cloud for\n `locations`.\n show\n Determines whether or not slice planes about the y\n dimension are drawn.\n\n Returns\n -------\n Y\n """\n super().__init__("y")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.slices.Y\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.slices.Y`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("fill", arg, fill)\n self._set_property("locations", arg, locations)\n self._set_property("locationssrc", arg, locationssrc)\n self._set_property("show", arg, show)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\slices\_y.py
_y.py
Python
5,303
0.95
0.118644
0.019868
awesome-app
368
2024-10-02T14:02:56.040628
BSD-3-Clause
false
e348c708e944619f30aae9b44dfd1690
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Z(_BaseTraceHierarchyType):\n _parent_path_str = "isosurface.slices"\n _path_str = "isosurface.slices.z"\n _valid_props = {"fill", "locations", "locationssrc", "show"}\n\n @property\n def fill(self):\n """\n Sets the fill ratio of the `slices`. The default fill value of\n the `slices` is 1 meaning that they are entirely shaded. On the\n other hand Applying a `fill` ratio less than one would allow\n the creation of openings parallel to the edges.\n\n The 'fill' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["fill"]\n\n @fill.setter\n def fill(self, val):\n self["fill"] = val\n\n @property\n def locations(self):\n """\n Specifies the location(s) of slices on the axis. When not\n specified slices would be created for all points of the axis z\n except start and end.\n\n The 'locations' property is an array that may be specified as a tuple,\n list, numpy array, or pandas Series\n\n Returns\n -------\n numpy.ndarray\n """\n return self["locations"]\n\n @locations.setter\n def locations(self, val):\n self["locations"] = val\n\n @property\n def locationssrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `locations`.\n\n The 'locationssrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["locationssrc"]\n\n @locationssrc.setter\n def locationssrc(self, val):\n self["locationssrc"] = val\n\n @property\n def show(self):\n """\n Determines whether or not slice planes about the z dimension\n are drawn.\n\n The 'show' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["show"]\n\n @show.setter\n def show(self, val):\n self["show"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n fill\n Sets the fill ratio of the `slices`. The default fill\n value of the `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n locations\n Specifies the location(s) of slices on the axis. When\n not specified slices would be created for all points of\n the axis z except start and end.\n locationssrc\n Sets the source reference on Chart Studio Cloud for\n `locations`.\n show\n Determines whether or not slice planes about the z\n dimension are drawn.\n """\n\n def __init__(\n self,\n arg=None,\n fill=None,\n locations=None,\n locationssrc=None,\n show=None,\n **kwargs,\n ):\n """\n Construct a new Z object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.isosurface.slices.Z`\n fill\n Sets the fill ratio of the `slices`. The default fill\n value of the `slices` is 1 meaning that they are\n entirely shaded. On the other hand Applying a `fill`\n ratio less than one would allow the creation of\n openings parallel to the edges.\n locations\n Specifies the location(s) of slices on the axis. When\n not specified slices would be created for all points of\n the axis z except start and end.\n locationssrc\n Sets the source reference on Chart Studio Cloud for\n `locations`.\n show\n Determines whether or not slice planes about the z\n dimension are drawn.\n\n Returns\n -------\n Z\n """\n super().__init__("z")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.isosurface.slices.Z\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.isosurface.slices.Z`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("fill", arg, fill)\n self._set_property("locations", arg, locations)\n self._set_property("locationssrc", arg, locationssrc)\n self._set_property("show", arg, show)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\slices\_z.py
_z.py
Python
5,303
0.95
0.118644
0.019868
react-lib
416
2024-03-12T01:37:07.600518
GPL-3.0
false
0b56a1fa0ed10f8ad639b18a3bf64381
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._x import X\n from ._y import Y\n from ._z import Z\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [], ["._x.X", "._y.Y", "._z.Z"]\n )\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\slices\__init__.py
__init__.py
Python
301
0.85
0.076923
0
node-utils
471
2023-11-07T02:58:53.405889
GPL-3.0
false
4e71d77aad4370df9499226594c230ec
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\slices\__pycache__\_x.cpython-313.pyc
_x.cpython-313.pyc
Other
6,146
0.8
0.057143
0
vue-tools
885
2023-08-20T11:53:27.712431
GPL-3.0
false
48ece2cce5ed50e17ae96ebb754b5dea
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\slices\__pycache__\_y.cpython-313.pyc
_y.cpython-313.pyc
Other
6,146
0.8
0.057143
0
node-utils
84
2024-03-14T15:48:49.151577
BSD-3-Clause
false
568b41a388ca0b21b2732aeccad539b9
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\slices\__pycache__\_z.cpython-313.pyc
_z.cpython-313.pyc
Other
6,146
0.8
0.057143
0
react-lib
24
2025-04-11T19:50:17.595060
MIT
false
48bc57febb0f3b52fadcdaa7f98c663b
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\slices\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
569
0.85
0
0
vue-tools
731
2024-06-06T20:26:46.972493
BSD-3-Clause
false
9e58008434e968ea60e62965674e741a
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_caps.cpython-313.pyc
_caps.cpython-313.pyc
Other
4,799
0.8
0.106796
0
awesome-app
152
2025-05-19T15:55:39.121634
Apache-2.0
false
e96a0e004dfe1d539a29b1b5996090c9
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_colorbar.cpython-313.pyc
_colorbar.cpython-313.pyc
Other
61,259
0.6
0.082343
0
react-lib
255
2024-07-05T19:31:34.133535
MIT
false
ce59d228c2f18d7f17baab35ffd7bc8e
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_contour.cpython-313.pyc
_contour.cpython-313.pyc
Other
4,473
0.8
0.029703
0
python-kit
51
2023-08-08T04:43:42.016160
BSD-3-Clause
false
de9da8aeba962c4dabb1e3e90131e2f0
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_hoverlabel.cpython-313.pyc
_hoverlabel.cpython-313.pyc
Other
11,407
0.8
0.1417
0
vue-tools
240
2023-07-31T12:58:27.317837
BSD-3-Clause
false
57e2c16beb7cbdb52f6363458a9713fe
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_legendgrouptitle.cpython-313.pyc
_legendgrouptitle.cpython-313.pyc
Other
3,878
0.8
0.039474
0
node-utils
347
2025-03-21T11:03:32.267487
MIT
false
5982c3f08a917c9de9c7892f46b3c939
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_lighting.cpython-313.pyc
_lighting.cpython-313.pyc
Other
8,624
0.8
0.043243
0.005952
awesome-app
487
2024-10-14T18:06:08.728581
BSD-3-Clause
false
ffb81fb3dd0ac56a125b46ae25fa2639
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_lightposition.cpython-313.pyc
_lightposition.cpython-313.pyc
Other
4,553
0.8
0.107843
0
react-lib
816
2024-05-07T06:30:35.879010
GPL-3.0
false
f9373a9f039e51fa57327286f589e110
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_slices.cpython-313.pyc
_slices.cpython-313.pyc
Other
4,853
0.8
0.106796
0
vue-tools
703
2025-03-29T15:59:47.280936
MIT
false
fc7168f3cd3a98908aa3e4460aca6529
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_spaceframe.cpython-313.pyc
_spaceframe.cpython-313.pyc
Other
4,897
0.8
0.020202
0
node-utils
725
2024-09-28T08:46:14.217391
MIT
false
3dded599d415a714bdb883ce77441633
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_stream.cpython-313.pyc
_stream.cpython-313.pyc
Other
4,326
0.8
0.053763
0
python-kit
540
2025-05-01T16:00:54.524052
MIT
false
e421a056030d69a543609779f65fa64d
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\_surface.cpython-313.pyc
_surface.cpython-313.pyc
Other
7,555
0.8
0.01227
0
python-kit
317
2025-05-09T16:20:20.874515
GPL-3.0
false
dc2b3eb564a8a7e0351feac0f4e9d427
\n\n
.venv\Lib\site-packages\plotly\graph_objs\isosurface\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
1,420
0.95
0
0
vue-tools
73
2023-10-12T05:36:17.537032
Apache-2.0
false
848a73379a481e36f8b0f1d5de3a691e
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Activeselection(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.activeselection"\n _valid_props = {"fillcolor", "opacity"}\n\n @property\n def fillcolor(self):\n """\n Sets the color filling the active selection' interior.\n\n The 'fillcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["fillcolor"]\n\n @fillcolor.setter\n def fillcolor(self, val):\n self["fillcolor"] = val\n\n @property\n def opacity(self):\n """\n Sets the opacity of the active selection.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n fillcolor\n Sets the color filling the active selection' interior.\n opacity\n Sets the opacity of the active selection.\n """\n\n def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs):\n """\n Construct a new Activeselection object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Activeselection`\n fillcolor\n Sets the color filling the active selection' interior.\n opacity\n Sets the opacity of the active selection.\n\n Returns\n -------\n Activeselection\n """\n super().__init__("activeselection")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Activeselection\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Activeselection`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("fillcolor", arg, fillcolor)\n self._set_property("opacity", arg, opacity)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_activeselection.py
_activeselection.py
Python
3,117
0.95
0.115385
0.023256
awesome-app
456
2024-01-06T04:01:06.923424
Apache-2.0
false
359b2f4f3483e3fa41af1fd9c1c75c39
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Activeshape(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.activeshape"\n _valid_props = {"fillcolor", "opacity"}\n\n @property\n def fillcolor(self):\n """\n Sets the color filling the active shape' interior.\n\n The 'fillcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["fillcolor"]\n\n @fillcolor.setter\n def fillcolor(self, val):\n self["fillcolor"] = val\n\n @property\n def opacity(self):\n """\n Sets the opacity of the active shape.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n fillcolor\n Sets the color filling the active shape' interior.\n opacity\n Sets the opacity of the active shape.\n """\n\n def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs):\n """\n Construct a new Activeshape object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Activeshape`\n fillcolor\n Sets the color filling the active shape' interior.\n opacity\n Sets the opacity of the active shape.\n\n Returns\n -------\n Activeshape\n """\n super().__init__("activeshape")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Activeshape\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Activeshape`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("fillcolor", arg, fillcolor)\n self._set_property("opacity", arg, opacity)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_activeshape.py
_activeshape.py
Python
3,061
0.95
0.115385
0.023256
vue-tools
506
2024-12-21T02:28:43.703443
BSD-3-Clause
false
48dfd36014cab152ceeb53930eb21df8
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Annotation(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.annotation"\n _valid_props = {\n "align",\n "arrowcolor",\n "arrowhead",\n "arrowside",\n "arrowsize",\n "arrowwidth",\n "ax",\n "axref",\n "ay",\n "ayref",\n "bgcolor",\n "bordercolor",\n "borderpad",\n "borderwidth",\n "captureevents",\n "clicktoshow",\n "font",\n "height",\n "hoverlabel",\n "hovertext",\n "name",\n "opacity",\n "showarrow",\n "standoff",\n "startarrowhead",\n "startarrowsize",\n "startstandoff",\n "templateitemname",\n "text",\n "textangle",\n "valign",\n "visible",\n "width",\n "x",\n "xanchor",\n "xclick",\n "xref",\n "xshift",\n "y",\n "yanchor",\n "yclick",\n "yref",\n "yshift",\n }\n\n @property\n def align(self):\n """\n Sets the horizontal alignment of the `text` within the box. Has\n an effect only if `text` spans two or more lines (i.e. `text`\n contains one or more <br> HTML tags) or if an explicit width is\n set to override the text width.\n\n The 'align' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'center', 'right']\n\n Returns\n -------\n Any\n """\n return self["align"]\n\n @align.setter\n def align(self, val):\n self["align"] = val\n\n @property\n def arrowcolor(self):\n """\n Sets the color of the annotation arrow.\n\n The 'arrowcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["arrowcolor"]\n\n @arrowcolor.setter\n def arrowcolor(self, val):\n self["arrowcolor"] = val\n\n @property\n def arrowhead(self):\n """\n Sets the end annotation arrow head style.\n\n The 'arrowhead' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [0, 8]\n\n Returns\n -------\n int\n """\n return self["arrowhead"]\n\n @arrowhead.setter\n def arrowhead(self, val):\n self["arrowhead"] = val\n\n @property\n def arrowside(self):\n """\n Sets the annotation arrow head position.\n\n The 'arrowside' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['end', 'start'] joined with '+' characters\n (e.g. 'end+start')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["arrowside"]\n\n @arrowside.setter\n def arrowside(self, val):\n self["arrowside"] = val\n\n @property\n def arrowsize(self):\n """\n Sets the size of the end annotation arrow head, relative to\n `arrowwidth`. A value of 1 (default) gives a head about 3x as\n wide as the line.\n\n The 'arrowsize' property is a number and may be specified as:\n - An int or float in the interval [0.3, inf]\n\n Returns\n -------\n int|float\n """\n return self["arrowsize"]\n\n @arrowsize.setter\n def arrowsize(self, val):\n self["arrowsize"] = val\n\n @property\n def arrowwidth(self):\n """\n Sets the width (in px) of annotation arrow line.\n\n The 'arrowwidth' property is a number and may be specified as:\n - An int or float in the interval [0.1, inf]\n\n Returns\n -------\n int|float\n """\n return self["arrowwidth"]\n\n @arrowwidth.setter\n def arrowwidth(self, val):\n self["arrowwidth"] = val\n\n @property\n def ax(self):\n """\n Sets the x component of the arrow tail about the arrow head. If\n `axref` is `pixel`, a positive (negative) component corresponds\n to an arrow pointing from right to left (left to right). If\n `axref` is not `pixel` and is exactly the same as `xref`, this\n is an absolute value on that axis, like `x`, specified in the\n same coordinates as `xref`.\n\n The 'ax' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["ax"]\n\n @ax.setter\n def ax(self, val):\n self["ax"] = val\n\n @property\n def axref(self):\n """\n Indicates in what coordinates the tail of the annotation\n (ax,ay) is specified. If set to a x axis id (e.g. "x" or "x2"),\n the `x` position refers to a x coordinate. If set to "paper",\n the `x` position refers to the distance from the left of the\n plotting area in normalized coordinates where 0 (1) corresponds\n to the left (right). If set to a x axis ID followed by "domain"\n (separated by a space), the position behaves like for "paper",\n but refers to the distance in fractions of the domain length\n from the left of the domain of that axis: e.g., *x2 domain*\n refers to the domain of the second x axis and a x position of\n 0.5 refers to the point between the left and the right of the\n domain of the second x axis. In order for absolute positioning\n of the arrow to work, "axref" must be exactly the same as\n "xref", otherwise "axref" will revert to "pixel" (explained\n next). For relative positioning, "axref" can be set to "pixel",\n in which case the "ax" value is specified in pixels relative to\n "x". Absolute positioning is useful for trendline annotations\n which should continue to indicate the correct trend when\n zoomed. Relative positioning is useful for specifying the text\n offset for an annotated point.\n\n The 'axref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['pixel']\n - A string that matches one of the following regular expressions:\n ['^x([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n Any\n """\n return self["axref"]\n\n @axref.setter\n def axref(self, val):\n self["axref"] = val\n\n @property\n def ay(self):\n """\n Sets the y component of the arrow tail about the arrow head. If\n `ayref` is `pixel`, a positive (negative) component corresponds\n to an arrow pointing from bottom to top (top to bottom). If\n `ayref` is not `pixel` and is exactly the same as `yref`, this\n is an absolute value on that axis, like `y`, specified in the\n same coordinates as `yref`.\n\n The 'ay' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["ay"]\n\n @ay.setter\n def ay(self, val):\n self["ay"] = val\n\n @property\n def ayref(self):\n """\n Indicates in what coordinates the tail of the annotation\n (ax,ay) is specified. If set to a y axis id (e.g. "y" or "y2"),\n the `y` position refers to a y coordinate. If set to "paper",\n the `y` position refers to the distance from the bottom of the\n plotting area in normalized coordinates where 0 (1) corresponds\n to the bottom (top). If set to a y axis ID followed by "domain"\n (separated by a space), the position behaves like for "paper",\n but refers to the distance in fractions of the domain length\n from the bottom of the domain of that axis: e.g., *y2 domain*\n refers to the domain of the second y axis and a y position of\n 0.5 refers to the point between the bottom and the top of the\n domain of the second y axis. In order for absolute positioning\n of the arrow to work, "ayref" must be exactly the same as\n "yref", otherwise "ayref" will revert to "pixel" (explained\n next). For relative positioning, "ayref" can be set to "pixel",\n in which case the "ay" value is specified in pixels relative to\n "y". Absolute positioning is useful for trendline annotations\n which should continue to indicate the correct trend when\n zoomed. Relative positioning is useful for specifying the text\n offset for an annotated point.\n\n The 'ayref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['pixel']\n - A string that matches one of the following regular expressions:\n ['^y([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n Any\n """\n return self["ayref"]\n\n @ayref.setter\n def ayref(self, val):\n self["ayref"] = val\n\n @property\n def bgcolor(self):\n """\n Sets the background color of the annotation.\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the color of the border enclosing the annotation `text`.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def borderpad(self):\n """\n Sets the padding (in px) between the `text` and the enclosing\n border.\n\n The 'borderpad' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["borderpad"]\n\n @borderpad.setter\n def borderpad(self, val):\n self["borderpad"] = val\n\n @property\n def borderwidth(self):\n """\n Sets the width (in px) of the border enclosing the annotation\n `text`.\n\n The 'borderwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["borderwidth"]\n\n @borderwidth.setter\n def borderwidth(self, val):\n self["borderwidth"] = val\n\n @property\n def captureevents(self):\n """\n Determines whether the annotation text box captures mouse move\n and click events, or allows those events to pass through to\n data points in the plot that may be behind the annotation. By\n default `captureevents` is False unless `hovertext` is\n provided. If you use the event `plotly_clickannotation` without\n `hovertext` you must explicitly enable `captureevents`.\n\n The 'captureevents' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["captureevents"]\n\n @captureevents.setter\n def captureevents(self, val):\n self["captureevents"] = val\n\n @property\n def clicktoshow(self):\n """\n Makes this annotation respond to clicks on the plot. If you\n click a data point that exactly matches the `x` and `y` values\n of this annotation, and it is hidden (visible: false), it will\n appear. In "onoff" mode, you must click the same point again to\n make it disappear, so if you click multiple points, you can\n show multiple annotations. In "onout" mode, a click anywhere\n else in the plot (on another data point or not) will hide this\n annotation. If you need to show/hide this annotation in\n response to different `x` or `y` values, you can set `xclick`\n and/or `yclick`. This is useful for example to label the side\n of a bar. To label markers though, `standoff` is preferred over\n `xclick` and `yclick`.\n\n The 'clicktoshow' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n [False, 'onoff', 'onout']\n\n Returns\n -------\n Any\n """\n return self["clicktoshow"]\n\n @clicktoshow.setter\n def clicktoshow(self, val):\n self["clicktoshow"] = val\n\n @property\n def font(self):\n """\n Sets the annotation text font.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.annotation.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.layout.annotation.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def height(self):\n """\n Sets an explicit height for the text box. null (default) lets\n the text set the box height. Taller text will be clipped.\n\n The 'height' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["height"]\n\n @height.setter\n def height(self, val):\n self["height"] = val\n\n @property\n def hoverlabel(self):\n """\n The 'hoverlabel' property is an instance of Hoverlabel\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.annotation.Hoverlabel`\n - A dict of string/value properties that will be passed\n to the Hoverlabel constructor\n\n Returns\n -------\n plotly.graph_objs.layout.annotation.Hoverlabel\n """\n return self["hoverlabel"]\n\n @hoverlabel.setter\n def hoverlabel(self, val):\n self["hoverlabel"] = val\n\n @property\n def hovertext(self):\n """\n Sets text to appear when hovering over this annotation. If\n omitted or blank, no hover label will appear.\n\n The 'hovertext' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["hovertext"]\n\n @hovertext.setter\n def hovertext(self, val):\n self["hovertext"] = val\n\n @property\n def name(self):\n """\n When used in a template, named items are created in the output\n figure in addition to any items the figure already has in this\n array. You can modify these items in the output figure by\n making your own item with `templateitemname` matching this\n `name` alongside your modifications (including `visible: false`\n or `enabled: false` to hide it). Has no effect outside of a\n template.\n\n The 'name' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["name"]\n\n @name.setter\n def name(self, val):\n self["name"] = val\n\n @property\n def opacity(self):\n """\n Sets the opacity of the annotation (text + arrow).\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def showarrow(self):\n """\n Determines whether or not the annotation is drawn with an\n arrow. If True, `text` is placed near the arrow's tail. If\n False, `text` lines up with the `x` and `y` provided.\n\n The 'showarrow' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showarrow"]\n\n @showarrow.setter\n def showarrow(self, val):\n self["showarrow"] = val\n\n @property\n def standoff(self):\n """\n Sets a distance, in pixels, to move the end arrowhead away from\n the position it is pointing at, for example to point at the\n edge of a marker independent of zoom. Note that this shortens\n the arrow from the `ax` / `ay` vector, in contrast to `xshift`\n / `yshift` which moves everything by this amount.\n\n The 'standoff' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["standoff"]\n\n @standoff.setter\n def standoff(self, val):\n self["standoff"] = val\n\n @property\n def startarrowhead(self):\n """\n Sets the start annotation arrow head style.\n\n The 'startarrowhead' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [0, 8]\n\n Returns\n -------\n int\n """\n return self["startarrowhead"]\n\n @startarrowhead.setter\n def startarrowhead(self, val):\n self["startarrowhead"] = val\n\n @property\n def startarrowsize(self):\n """\n Sets the size of the start annotation arrow head, relative to\n `arrowwidth`. A value of 1 (default) gives a head about 3x as\n wide as the line.\n\n The 'startarrowsize' property is a number and may be specified as:\n - An int or float in the interval [0.3, inf]\n\n Returns\n -------\n int|float\n """\n return self["startarrowsize"]\n\n @startarrowsize.setter\n def startarrowsize(self, val):\n self["startarrowsize"] = val\n\n @property\n def startstandoff(self):\n """\n Sets a distance, in pixels, to move the start arrowhead away\n from the position it is pointing at, for example to point at\n the edge of a marker independent of zoom. Note that this\n shortens the arrow from the `ax` / `ay` vector, in contrast to\n `xshift` / `yshift` which moves everything by this amount.\n\n The 'startstandoff' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["startstandoff"]\n\n @startstandoff.setter\n def startstandoff(self, val):\n self["startstandoff"] = val\n\n @property\n def templateitemname(self):\n """\n Used to refer to a named item in this array in the template.\n Named items from the template will be created even without a\n matching item in the input figure, but you can modify one by\n making an item with `templateitemname` matching its `name`,\n alongside your modifications (including `visible: false` or\n `enabled: false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you explicitly\n show it with `visible: true`.\n\n The 'templateitemname' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["templateitemname"]\n\n @templateitemname.setter\n def templateitemname(self, val):\n self["templateitemname"] = val\n\n @property\n def text(self):\n """\n Sets the text associated with this annotation. Plotly uses a\n subset of HTML tags to do things like newline (<br>), bold\n (<b></b>), italics (<i></i>), hyperlinks (<a href='...'></a>).\n Tags <em>, <sup>, <sub>, <s>, <u> <span> are also supported.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def textangle(self):\n """\n Sets the angle at which the `text` is drawn with respect to the\n horizontal.\n\n The 'textangle' property is a angle (in degrees) that may be\n specified as a number between -180 and 180.\n Numeric values outside this range are converted to the equivalent value\n (e.g. 270 is converted to -90).\n\n Returns\n -------\n int|float\n """\n return self["textangle"]\n\n @textangle.setter\n def textangle(self, val):\n self["textangle"] = val\n\n @property\n def valign(self):\n """\n Sets the vertical alignment of the `text` within the box. Has\n an effect only if an explicit height is set to override the\n text height.\n\n The 'valign' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['top', 'middle', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["valign"]\n\n @valign.setter\n def valign(self, val):\n self["valign"] = val\n\n @property\n def visible(self):\n """\n Determines whether or not this annotation is visible.\n\n The 'visible' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def width(self):\n """\n Sets an explicit width for the text box. null (default) lets\n the text set the box width. Wider text will be clipped. There\n is no automatic wrapping; use <br> to start a new line.\n\n The 'width' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["width"]\n\n @width.setter\n def width(self, val):\n self["width"] = val\n\n @property\n def x(self):\n """\n Sets the annotation's x position. If the axis `type` is "log",\n then you must take the log of your desired range. If the axis\n `type` is "date", it should be date strings, like date data,\n though Date objects and unix milliseconds will be accepted and\n converted to strings. If the axis `type` is "category", it\n should be numbers, using the scale where each category is\n assigned a serial number from zero in the order it appears.\n\n The 'x' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def xanchor(self):\n """\n Sets the text box's horizontal position anchor This anchor\n binds the `x` position to the "left", "center" or "right" of\n the annotation. For example, if `x` is set to 1, `xref` to\n "paper" and `xanchor` to "right" then the right-most portion of\n the annotation lines up with the right-most edge of the\n plotting area. If "auto", the anchor is equivalent to "center"\n for data-referenced annotations or if there is an arrow,\n whereas for paper-referenced with no arrow, the anchor picked\n corresponds to the closest side.\n\n The 'xanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'left', 'center', 'right']\n\n Returns\n -------\n Any\n """\n return self["xanchor"]\n\n @xanchor.setter\n def xanchor(self, val):\n self["xanchor"] = val\n\n @property\n def xclick(self):\n """\n Toggle this annotation when clicking a data point whose `x`\n value is `xclick` rather than the annotation's `x` value.\n\n The 'xclick' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["xclick"]\n\n @xclick.setter\n def xclick(self, val):\n self["xclick"] = val\n\n @property\n def xref(self):\n """\n Sets the annotation's x coordinate axis. If set to a x axis id\n (e.g. "x" or "x2"), the `x` position refers to a x coordinate.\n If set to "paper", the `x` position refers to the distance from\n the left of the plotting area in normalized coordinates where 0\n (1) corresponds to the left (right). If set to a x axis ID\n followed by "domain" (separated by a space), the position\n behaves like for "paper", but refers to the distance in\n fractions of the domain length from the left of the domain of\n that axis: e.g., *x2 domain* refers to the domain of the second\n x axis and a x position of 0.5 refers to the point between the\n left and the right of the domain of the second x axis.\n\n The 'xref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['paper']\n - A string that matches one of the following regular expressions:\n ['^x([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n Any\n """\n return self["xref"]\n\n @xref.setter\n def xref(self, val):\n self["xref"] = val\n\n @property\n def xshift(self):\n """\n Shifts the position of the whole annotation and arrow to the\n right (positive) or left (negative) by this many pixels.\n\n The 'xshift' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["xshift"]\n\n @xshift.setter\n def xshift(self, val):\n self["xshift"] = val\n\n @property\n def y(self):\n """\n Sets the annotation's y position. If the axis `type` is "log",\n then you must take the log of your desired range. If the axis\n `type` is "date", it should be date strings, like date data,\n though Date objects and unix milliseconds will be accepted and\n converted to strings. If the axis `type` is "category", it\n should be numbers, using the scale where each category is\n assigned a serial number from zero in the order it appears.\n\n The 'y' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def yanchor(self):\n """\n Sets the text box's vertical position anchor This anchor binds\n the `y` position to the "top", "middle" or "bottom" of the\n annotation. For example, if `y` is set to 1, `yref` to "paper"\n and `yanchor` to "top" then the top-most portion of the\n annotation lines up with the top-most edge of the plotting\n area. If "auto", the anchor is equivalent to "middle" for data-\n referenced annotations or if there is an arrow, whereas for\n paper-referenced with no arrow, the anchor picked corresponds\n to the closest side.\n\n The 'yanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'top', 'middle', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["yanchor"]\n\n @yanchor.setter\n def yanchor(self, val):\n self["yanchor"] = val\n\n @property\n def yclick(self):\n """\n Toggle this annotation when clicking a data point whose `y`\n value is `yclick` rather than the annotation's `y` value.\n\n The 'yclick' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["yclick"]\n\n @yclick.setter\n def yclick(self, val):\n self["yclick"] = val\n\n @property\n def yref(self):\n """\n Sets the annotation's y coordinate axis. If set to a y axis id\n (e.g. "y" or "y2"), the `y` position refers to a y coordinate.\n If set to "paper", the `y` position refers to the distance from\n the bottom of the plotting area in normalized coordinates where\n 0 (1) corresponds to the bottom (top). If set to a y axis ID\n followed by "domain" (separated by a space), the position\n behaves like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the domain of\n that axis: e.g., *y2 domain* refers to the domain of the second\n y axis and a y position of 0.5 refers to the point between the\n bottom and the top of the domain of the second y axis.\n\n The 'yref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['paper']\n - A string that matches one of the following regular expressions:\n ['^y([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n Any\n """\n return self["yref"]\n\n @yref.setter\n def yref(self, val):\n self["yref"] = val\n\n @property\n def yshift(self):\n """\n Shifts the position of the whole annotation and arrow up\n (positive) or down (negative) by this many pixels.\n\n The 'yshift' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["yshift"]\n\n @yshift.setter\n def yshift(self, val):\n self["yshift"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n align\n Sets the horizontal alignment of the `text` within the\n box. Has an effect only if `text` spans two or more\n lines (i.e. `text` contains one or more <br> HTML tags)\n or if an explicit width is set to override the text\n width.\n arrowcolor\n Sets the color of the annotation arrow.\n arrowhead\n Sets the end annotation arrow head style.\n arrowside\n Sets the annotation arrow head position.\n arrowsize\n Sets the size of the end annotation arrow head,\n relative to `arrowwidth`. A value of 1 (default) gives\n a head about 3x as wide as the line.\n arrowwidth\n Sets the width (in px) of annotation arrow line.\n ax\n Sets the x component of the arrow tail about the arrow\n head. If `axref` is `pixel`, a positive (negative)\n component corresponds to an arrow pointing from right\n to left (left to right). If `axref` is not `pixel` and\n is exactly the same as `xref`, this is an absolute\n value on that axis, like `x`, specified in the same\n coordinates as `xref`.\n axref\n Indicates in what coordinates the tail of the\n annotation (ax,ay) is specified. If set to a x axis id\n (e.g. "x" or "x2"), the `x` position refers to a x\n coordinate. If set to "paper", the `x` position refers\n to the distance from the left of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n left (right). If set to a x axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the left of the\n domain of that axis: e.g., *x2 domain* refers to the\n domain of the second x axis and a x position of 0.5\n refers to the point between the left and the right of\n the domain of the second x axis. In order for absolute\n positioning of the arrow to work, "axref" must be\n exactly the same as "xref", otherwise "axref" will\n revert to "pixel" (explained next). For relative\n positioning, "axref" can be set to "pixel", in which\n case the "ax" value is specified in pixels relative to\n "x". Absolute positioning is useful for trendline\n annotations which should continue to indicate the\n correct trend when zoomed. Relative positioning is\n useful for specifying the text offset for an annotated\n point.\n ay\n Sets the y component of the arrow tail about the arrow\n head. If `ayref` is `pixel`, a positive (negative)\n component corresponds to an arrow pointing from bottom\n to top (top to bottom). If `ayref` is not `pixel` and\n is exactly the same as `yref`, this is an absolute\n value on that axis, like `y`, specified in the same\n coordinates as `yref`.\n ayref\n Indicates in what coordinates the tail of the\n annotation (ax,ay) is specified. If set to a y axis id\n (e.g. "y" or "y2"), the `y` position refers to a y\n coordinate. If set to "paper", the `y` position refers\n to the distance from the bottom of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n bottom (top). If set to a y axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the\n domain of that axis: e.g., *y2 domain* refers to the\n domain of the second y axis and a y position of 0.5\n refers to the point between the bottom and the top of\n the domain of the second y axis. In order for absolute\n positioning of the arrow to work, "ayref" must be\n exactly the same as "yref", otherwise "ayref" will\n revert to "pixel" (explained next). For relative\n positioning, "ayref" can be set to "pixel", in which\n case the "ay" value is specified in pixels relative to\n "y". Absolute positioning is useful for trendline\n annotations which should continue to indicate the\n correct trend when zoomed. Relative positioning is\n useful for specifying the text offset for an annotated\n point.\n bgcolor\n Sets the background color of the annotation.\n bordercolor\n Sets the color of the border enclosing the annotation\n `text`.\n borderpad\n Sets the padding (in px) between the `text` and the\n enclosing border.\n borderwidth\n Sets the width (in px) of the border enclosing the\n annotation `text`.\n captureevents\n Determines whether the annotation text box captures\n mouse move and click events, or allows those events to\n pass through to data points in the plot that may be\n behind the annotation. By default `captureevents` is\n False unless `hovertext` is provided. If you use the\n event `plotly_clickannotation` without `hovertext` you\n must explicitly enable `captureevents`.\n clicktoshow\n Makes this annotation respond to clicks on the plot. If\n you click a data point that exactly matches the `x` and\n `y` values of this annotation, and it is hidden\n (visible: false), it will appear. In "onoff" mode, you\n must click the same point again to make it disappear,\n so if you click multiple points, you can show multiple\n annotations. In "onout" mode, a click anywhere else in\n the plot (on another data point or not) will hide this\n annotation. If you need to show/hide this annotation in\n response to different `x` or `y` values, you can set\n `xclick` and/or `yclick`. This is useful for example to\n label the side of a bar. To label markers though,\n `standoff` is preferred over `xclick` and `yclick`.\n font\n Sets the annotation text font.\n height\n Sets an explicit height for the text box. null\n (default) lets the text set the box height. Taller text\n will be clipped.\n hoverlabel\n :class:`plotly.graph_objects.layout.annotation.Hoverlab\n el` instance or dict with compatible properties\n hovertext\n Sets text to appear when hovering over this annotation.\n If omitted or blank, no hover label will appear.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n opacity\n Sets the opacity of the annotation (text + arrow).\n showarrow\n Determines whether or not the annotation is drawn with\n an arrow. If True, `text` is placed near the arrow's\n tail. If False, `text` lines up with the `x` and `y`\n provided.\n standoff\n Sets a distance, in pixels, to move the end arrowhead\n away from the position it is pointing at, for example\n to point at the edge of a marker independent of zoom.\n Note that this shortens the arrow from the `ax` / `ay`\n vector, in contrast to `xshift` / `yshift` which moves\n everything by this amount.\n startarrowhead\n Sets the start annotation arrow head style.\n startarrowsize\n Sets the size of the start annotation arrow head,\n relative to `arrowwidth`. A value of 1 (default) gives\n a head about 3x as wide as the line.\n startstandoff\n Sets a distance, in pixels, to move the start arrowhead\n away from the position it is pointing at, for example\n to point at the edge of a marker independent of zoom.\n Note that this shortens the arrow from the `ax` / `ay`\n vector, in contrast to `xshift` / `yshift` which moves\n everything by this amount.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n text\n Sets the text associated with this annotation. Plotly\n uses a subset of HTML tags to do things like newline\n (<br>), bold (<b></b>), italics (<i></i>), hyperlinks\n (<a href='...'></a>). Tags <em>, <sup>, <sub>, <s>, <u>\n <span> are also supported.\n textangle\n Sets the angle at which the `text` is drawn with\n respect to the horizontal.\n valign\n Sets the vertical alignment of the `text` within the\n box. Has an effect only if an explicit height is set to\n override the text height.\n visible\n Determines whether or not this annotation is visible.\n width\n Sets an explicit width for the text box. null (default)\n lets the text set the box width. Wider text will be\n clipped. There is no automatic wrapping; use <br> to\n start a new line.\n x\n Sets the annotation's x position. If the axis `type` is\n "log", then you must take the log of your desired\n range. If the axis `type` is "date", it should be date\n strings, like date data, though Date objects and unix\n milliseconds will be accepted and converted to strings.\n If the axis `type` is "category", it should be numbers,\n using the scale where each category is assigned a\n serial number from zero in the order it appears.\n xanchor\n Sets the text box's horizontal position anchor This\n anchor binds the `x` position to the "left", "center"\n or "right" of the annotation. For example, if `x` is\n set to 1, `xref` to "paper" and `xanchor` to "right"\n then the right-most portion of the annotation lines up\n with the right-most edge of the plotting area. If\n "auto", the anchor is equivalent to "center" for data-\n referenced annotations or if there is an arrow, whereas\n for paper-referenced with no arrow, the anchor picked\n corresponds to the closest side.\n xclick\n Toggle this annotation when clicking a data point whose\n `x` value is `xclick` rather than the annotation's `x`\n value.\n xref\n Sets the annotation's x coordinate axis. If set to a x\n axis id (e.g. "x" or "x2"), the `x` position refers to\n a x coordinate. If set to "paper", the `x` position\n refers to the distance from the left of the plotting\n area in normalized coordinates where 0 (1) corresponds\n to the left (right). If set to a x axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the left of the\n domain of that axis: e.g., *x2 domain* refers to the\n domain of the second x axis and a x position of 0.5\n refers to the point between the left and the right of\n the domain of the second x axis.\n xshift\n Shifts the position of the whole annotation and arrow\n to the right (positive) or left (negative) by this many\n pixels.\n y\n Sets the annotation's y position. If the axis `type` is\n "log", then you must take the log of your desired\n range. If the axis `type` is "date", it should be date\n strings, like date data, though Date objects and unix\n milliseconds will be accepted and converted to strings.\n If the axis `type` is "category", it should be numbers,\n using the scale where each category is assigned a\n serial number from zero in the order it appears.\n yanchor\n Sets the text box's vertical position anchor This\n anchor binds the `y` position to the "top", "middle" or\n "bottom" of the annotation. For example, if `y` is set\n to 1, `yref` to "paper" and `yanchor` to "top" then the\n top-most portion of the annotation lines up with the\n top-most edge of the plotting area. If "auto", the\n anchor is equivalent to "middle" for data-referenced\n annotations or if there is an arrow, whereas for paper-\n referenced with no arrow, the anchor picked corresponds\n to the closest side.\n yclick\n Toggle this annotation when clicking a data point whose\n `y` value is `yclick` rather than the annotation's `y`\n value.\n yref\n Sets the annotation's y coordinate axis. If set to a y\n axis id (e.g. "y" or "y2"), the `y` position refers to\n a y coordinate. If set to "paper", the `y` position\n refers to the distance from the bottom of the plotting\n area in normalized coordinates where 0 (1) corresponds\n to the bottom (top). If set to a y axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the\n domain of that axis: e.g., *y2 domain* refers to the\n domain of the second y axis and a y position of 0.5\n refers to the point between the bottom and the top of\n the domain of the second y axis.\n yshift\n Shifts the position of the whole annotation and arrow\n up (positive) or down (negative) by this many pixels.\n """\n\n def __init__(\n self,\n arg=None,\n align=None,\n arrowcolor=None,\n arrowhead=None,\n arrowside=None,\n arrowsize=None,\n arrowwidth=None,\n ax=None,\n axref=None,\n ay=None,\n ayref=None,\n bgcolor=None,\n bordercolor=None,\n borderpad=None,\n borderwidth=None,\n captureevents=None,\n clicktoshow=None,\n font=None,\n height=None,\n hoverlabel=None,\n hovertext=None,\n name=None,\n opacity=None,\n showarrow=None,\n standoff=None,\n startarrowhead=None,\n startarrowsize=None,\n startstandoff=None,\n templateitemname=None,\n text=None,\n textangle=None,\n valign=None,\n visible=None,\n width=None,\n x=None,\n xanchor=None,\n xclick=None,\n xref=None,\n xshift=None,\n y=None,\n yanchor=None,\n yclick=None,\n yref=None,\n yshift=None,\n **kwargs,\n ):\n """\n Construct a new Annotation object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Annotation`\n align\n Sets the horizontal alignment of the `text` within the\n box. Has an effect only if `text` spans two or more\n lines (i.e. `text` contains one or more <br> HTML tags)\n or if an explicit width is set to override the text\n width.\n arrowcolor\n Sets the color of the annotation arrow.\n arrowhead\n Sets the end annotation arrow head style.\n arrowside\n Sets the annotation arrow head position.\n arrowsize\n Sets the size of the end annotation arrow head,\n relative to `arrowwidth`. A value of 1 (default) gives\n a head about 3x as wide as the line.\n arrowwidth\n Sets the width (in px) of annotation arrow line.\n ax\n Sets the x component of the arrow tail about the arrow\n head. If `axref` is `pixel`, a positive (negative)\n component corresponds to an arrow pointing from right\n to left (left to right). If `axref` is not `pixel` and\n is exactly the same as `xref`, this is an absolute\n value on that axis, like `x`, specified in the same\n coordinates as `xref`.\n axref\n Indicates in what coordinates the tail of the\n annotation (ax,ay) is specified. If set to a x axis id\n (e.g. "x" or "x2"), the `x` position refers to a x\n coordinate. If set to "paper", the `x` position refers\n to the distance from the left of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n left (right). If set to a x axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the left of the\n domain of that axis: e.g., *x2 domain* refers to the\n domain of the second x axis and a x position of 0.5\n refers to the point between the left and the right of\n the domain of the second x axis. In order for absolute\n positioning of the arrow to work, "axref" must be\n exactly the same as "xref", otherwise "axref" will\n revert to "pixel" (explained next). For relative\n positioning, "axref" can be set to "pixel", in which\n case the "ax" value is specified in pixels relative to\n "x". Absolute positioning is useful for trendline\n annotations which should continue to indicate the\n correct trend when zoomed. Relative positioning is\n useful for specifying the text offset for an annotated\n point.\n ay\n Sets the y component of the arrow tail about the arrow\n head. If `ayref` is `pixel`, a positive (negative)\n component corresponds to an arrow pointing from bottom\n to top (top to bottom). If `ayref` is not `pixel` and\n is exactly the same as `yref`, this is an absolute\n value on that axis, like `y`, specified in the same\n coordinates as `yref`.\n ayref\n Indicates in what coordinates the tail of the\n annotation (ax,ay) is specified. If set to a y axis id\n (e.g. "y" or "y2"), the `y` position refers to a y\n coordinate. If set to "paper", the `y` position refers\n to the distance from the bottom of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n bottom (top). If set to a y axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the\n domain of that axis: e.g., *y2 domain* refers to the\n domain of the second y axis and a y position of 0.5\n refers to the point between the bottom and the top of\n the domain of the second y axis. In order for absolute\n positioning of the arrow to work, "ayref" must be\n exactly the same as "yref", otherwise "ayref" will\n revert to "pixel" (explained next). For relative\n positioning, "ayref" can be set to "pixel", in which\n case the "ay" value is specified in pixels relative to\n "y". Absolute positioning is useful for trendline\n annotations which should continue to indicate the\n correct trend when zoomed. Relative positioning is\n useful for specifying the text offset for an annotated\n point.\n bgcolor\n Sets the background color of the annotation.\n bordercolor\n Sets the color of the border enclosing the annotation\n `text`.\n borderpad\n Sets the padding (in px) between the `text` and the\n enclosing border.\n borderwidth\n Sets the width (in px) of the border enclosing the\n annotation `text`.\n captureevents\n Determines whether the annotation text box captures\n mouse move and click events, or allows those events to\n pass through to data points in the plot that may be\n behind the annotation. By default `captureevents` is\n False unless `hovertext` is provided. If you use the\n event `plotly_clickannotation` without `hovertext` you\n must explicitly enable `captureevents`.\n clicktoshow\n Makes this annotation respond to clicks on the plot. If\n you click a data point that exactly matches the `x` and\n `y` values of this annotation, and it is hidden\n (visible: false), it will appear. In "onoff" mode, you\n must click the same point again to make it disappear,\n so if you click multiple points, you can show multiple\n annotations. In "onout" mode, a click anywhere else in\n the plot (on another data point or not) will hide this\n annotation. If you need to show/hide this annotation in\n response to different `x` or `y` values, you can set\n `xclick` and/or `yclick`. This is useful for example to\n label the side of a bar. To label markers though,\n `standoff` is preferred over `xclick` and `yclick`.\n font\n Sets the annotation text font.\n height\n Sets an explicit height for the text box. null\n (default) lets the text set the box height. Taller text\n will be clipped.\n hoverlabel\n :class:`plotly.graph_objects.layout.annotation.Hoverlab\n el` instance or dict with compatible properties\n hovertext\n Sets text to appear when hovering over this annotation.\n If omitted or blank, no hover label will appear.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n opacity\n Sets the opacity of the annotation (text + arrow).\n showarrow\n Determines whether or not the annotation is drawn with\n an arrow. If True, `text` is placed near the arrow's\n tail. If False, `text` lines up with the `x` and `y`\n provided.\n standoff\n Sets a distance, in pixels, to move the end arrowhead\n away from the position it is pointing at, for example\n to point at the edge of a marker independent of zoom.\n Note that this shortens the arrow from the `ax` / `ay`\n vector, in contrast to `xshift` / `yshift` which moves\n everything by this amount.\n startarrowhead\n Sets the start annotation arrow head style.\n startarrowsize\n Sets the size of the start annotation arrow head,\n relative to `arrowwidth`. A value of 1 (default) gives\n a head about 3x as wide as the line.\n startstandoff\n Sets a distance, in pixels, to move the start arrowhead\n away from the position it is pointing at, for example\n to point at the edge of a marker independent of zoom.\n Note that this shortens the arrow from the `ax` / `ay`\n vector, in contrast to `xshift` / `yshift` which moves\n everything by this amount.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n text\n Sets the text associated with this annotation. Plotly\n uses a subset of HTML tags to do things like newline\n (<br>), bold (<b></b>), italics (<i></i>), hyperlinks\n (<a href='...'></a>). Tags <em>, <sup>, <sub>, <s>, <u>\n <span> are also supported.\n textangle\n Sets the angle at which the `text` is drawn with\n respect to the horizontal.\n valign\n Sets the vertical alignment of the `text` within the\n box. Has an effect only if an explicit height is set to\n override the text height.\n visible\n Determines whether or not this annotation is visible.\n width\n Sets an explicit width for the text box. null (default)\n lets the text set the box width. Wider text will be\n clipped. There is no automatic wrapping; use <br> to\n start a new line.\n x\n Sets the annotation's x position. If the axis `type` is\n "log", then you must take the log of your desired\n range. If the axis `type` is "date", it should be date\n strings, like date data, though Date objects and unix\n milliseconds will be accepted and converted to strings.\n If the axis `type` is "category", it should be numbers,\n using the scale where each category is assigned a\n serial number from zero in the order it appears.\n xanchor\n Sets the text box's horizontal position anchor This\n anchor binds the `x` position to the "left", "center"\n or "right" of the annotation. For example, if `x` is\n set to 1, `xref` to "paper" and `xanchor` to "right"\n then the right-most portion of the annotation lines up\n with the right-most edge of the plotting area. If\n "auto", the anchor is equivalent to "center" for data-\n referenced annotations or if there is an arrow, whereas\n for paper-referenced with no arrow, the anchor picked\n corresponds to the closest side.\n xclick\n Toggle this annotation when clicking a data point whose\n `x` value is `xclick` rather than the annotation's `x`\n value.\n xref\n Sets the annotation's x coordinate axis. If set to a x\n axis id (e.g. "x" or "x2"), the `x` position refers to\n a x coordinate. If set to "paper", the `x` position\n refers to the distance from the left of the plotting\n area in normalized coordinates where 0 (1) corresponds\n to the left (right). If set to a x axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the left of the\n domain of that axis: e.g., *x2 domain* refers to the\n domain of the second x axis and a x position of 0.5\n refers to the point between the left and the right of\n the domain of the second x axis.\n xshift\n Shifts the position of the whole annotation and arrow\n to the right (positive) or left (negative) by this many\n pixels.\n y\n Sets the annotation's y position. If the axis `type` is\n "log", then you must take the log of your desired\n range. If the axis `type` is "date", it should be date\n strings, like date data, though Date objects and unix\n milliseconds will be accepted and converted to strings.\n If the axis `type` is "category", it should be numbers,\n using the scale where each category is assigned a\n serial number from zero in the order it appears.\n yanchor\n Sets the text box's vertical position anchor This\n anchor binds the `y` position to the "top", "middle" or\n "bottom" of the annotation. For example, if `y` is set\n to 1, `yref` to "paper" and `yanchor` to "top" then the\n top-most portion of the annotation lines up with the\n top-most edge of the plotting area. If "auto", the\n anchor is equivalent to "middle" for data-referenced\n annotations or if there is an arrow, whereas for paper-\n referenced with no arrow, the anchor picked corresponds\n to the closest side.\n yclick\n Toggle this annotation when clicking a data point whose\n `y` value is `yclick` rather than the annotation's `y`\n value.\n yref\n Sets the annotation's y coordinate axis. If set to a y\n axis id (e.g. "y" or "y2"), the `y` position refers to\n a y coordinate. If set to "paper", the `y` position\n refers to the distance from the bottom of the plotting\n area in normalized coordinates where 0 (1) corresponds\n to the bottom (top). If set to a y axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the\n domain of that axis: e.g., *y2 domain* refers to the\n domain of the second y axis and a y position of 0.5\n refers to the point between the bottom and the top of\n the domain of the second y axis.\n yshift\n Shifts the position of the whole annotation and arrow\n up (positive) or down (negative) by this many pixels.\n\n Returns\n -------\n Annotation\n """\n super().__init__("annotations")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Annotation\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Annotation`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("align", arg, align)\n self._set_property("arrowcolor", arg, arrowcolor)\n self._set_property("arrowhead", arg, arrowhead)\n self._set_property("arrowside", arg, arrowside)\n self._set_property("arrowsize", arg, arrowsize)\n self._set_property("arrowwidth", arg, arrowwidth)\n self._set_property("ax", arg, ax)\n self._set_property("axref", arg, axref)\n self._set_property("ay", arg, ay)\n self._set_property("ayref", arg, ayref)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("borderpad", arg, borderpad)\n self._set_property("borderwidth", arg, borderwidth)\n self._set_property("captureevents", arg, captureevents)\n self._set_property("clicktoshow", arg, clicktoshow)\n self._set_property("font", arg, font)\n self._set_property("height", arg, height)\n self._set_property("hoverlabel", arg, hoverlabel)\n self._set_property("hovertext", arg, hovertext)\n self._set_property("name", arg, name)\n self._set_property("opacity", arg, opacity)\n self._set_property("showarrow", arg, showarrow)\n self._set_property("standoff", arg, standoff)\n self._set_property("startarrowhead", arg, startarrowhead)\n self._set_property("startarrowsize", arg, startarrowsize)\n self._set_property("startstandoff", arg, startstandoff)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("text", arg, text)\n self._set_property("textangle", arg, textangle)\n self._set_property("valign", arg, valign)\n self._set_property("visible", arg, visible)\n self._set_property("width", arg, width)\n self._set_property("x", arg, x)\n self._set_property("xanchor", arg, xanchor)\n self._set_property("xclick", arg, xclick)\n self._set_property("xref", arg, xref)\n self._set_property("xshift", arg, xshift)\n self._set_property("y", arg, y)\n self._set_property("yanchor", arg, yanchor)\n self._set_property("yclick", arg, yclick)\n self._set_property("yref", arg, yref)\n self._set_property("yshift", arg, yshift)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_annotation.py
_annotation.py
Python
65,471
0.75
0.109102
0.001957
awesome-app
224
2024-12-25T04:12:16.960341
Apache-2.0
false
9733d0682f97d6468094f783c4f93777
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Coloraxis(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.coloraxis"\n _valid_props = {\n "autocolorscale",\n "cauto",\n "cmax",\n "cmid",\n "cmin",\n "colorbar",\n "colorscale",\n "reversescale",\n "showscale",\n }\n\n @property\n def autocolorscale(self):\n """\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `colorscale`. In case `colorscale` is unspecified or\n `autocolorscale` is true, the default palette will be chosen\n according to whether numbers in the `color` array are all\n positive, all negative or mixed.\n\n The 'autocolorscale' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["autocolorscale"]\n\n @autocolorscale.setter\n def autocolorscale(self, val):\n self["autocolorscale"] = val\n\n @property\n def cauto(self):\n """\n Determines whether or not the color domain is computed with\n respect to the input data (here corresponding trace color\n array(s)) or the bounds set in `cmin` and `cmax` Defaults to\n `false` when `cmin` and `cmax` are set by the user.\n\n The 'cauto' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["cauto"]\n\n @cauto.setter\n def cauto(self, val):\n self["cauto"] = val\n\n @property\n def cmax(self):\n """\n Sets the upper bound of the color domain. Value should have the\n same units as corresponding trace color array(s) and if set,\n `cmin` must be set as well.\n\n The 'cmax' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["cmax"]\n\n @cmax.setter\n def cmax(self, val):\n self["cmax"] = val\n\n @property\n def cmid(self):\n """\n Sets the mid-point of the color domain by scaling `cmin` and/or\n `cmax` to be equidistant to this point. Value should have the\n same units as corresponding trace color array(s). Has no effect\n when `cauto` is `false`.\n\n The 'cmid' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["cmid"]\n\n @cmid.setter\n def cmid(self, val):\n self["cmid"] = val\n\n @property\n def cmin(self):\n """\n Sets the lower bound of the color domain. Value should have the\n same units as corresponding trace color array(s) and if set,\n `cmax` must be set as well.\n\n The 'cmin' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["cmin"]\n\n @cmin.setter\n def cmin(self, val):\n self["cmin"] = val\n\n @property\n def colorbar(self):\n """\n The 'colorbar' property is an instance of ColorBar\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.coloraxis.ColorBar`\n - A dict of string/value properties that will be passed\n to the ColorBar constructor\n\n Returns\n -------\n plotly.graph_objs.layout.coloraxis.ColorBar\n """\n return self["colorbar"]\n\n @colorbar.setter\n def colorbar(self, val):\n self["colorbar"] = val\n\n @property\n def colorscale(self):\n """\n Sets the colorscale. The colorscale must be an array containing\n arrays mapping a normalized value to an rgb, rgba, hex, hsl,\n hsv, or named color string. At minimum, a mapping for the\n lowest (0) and highest (1) values are required. For example,\n `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the\n bounds of the colorscale in color space, use `cmin` and `cmax`.\n Alternatively, `colorscale` may be a palette name string of the\n following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,\n Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,\n YlGnBu,YlOrRd.\n\n The 'colorscale' property is a colorscale and may be\n specified as:\n - A list of colors that will be spaced evenly to create the colorscale.\n Many predefined colorscale lists are included in the sequential, diverging,\n and cyclical modules in the plotly.colors package.\n - A list of 2-element lists where the first element is the\n normalized color level value (starting at 0 and ending at 1),\n and the second item is a valid color string.\n (e.g. [[0, 'green'], [0.5, 'red'], [1.0, 'rgb(0, 0, 255)']])\n - One of the following named colorscales:\n ['aggrnyl', 'agsunset', 'algae', 'amp', 'armyrose', 'balance',\n 'blackbody', 'bluered', 'blues', 'blugrn', 'bluyl', 'brbg',\n 'brwnyl', 'bugn', 'bupu', 'burg', 'burgyl', 'cividis', 'curl',\n 'darkmint', 'deep', 'delta', 'dense', 'earth', 'edge', 'electric',\n 'emrld', 'fall', 'geyser', 'gnbu', 'gray', 'greens', 'greys',\n 'haline', 'hot', 'hsv', 'ice', 'icefire', 'inferno', 'jet',\n 'magenta', 'magma', 'matter', 'mint', 'mrybm', 'mygbm', 'oranges',\n 'orrd', 'oryel', 'oxy', 'peach', 'phase', 'picnic', 'pinkyl',\n 'piyg', 'plasma', 'plotly3', 'portland', 'prgn', 'pubu', 'pubugn',\n 'puor', 'purd', 'purp', 'purples', 'purpor', 'rainbow', 'rdbu',\n 'rdgy', 'rdpu', 'rdylbu', 'rdylgn', 'redor', 'reds', 'solar',\n 'spectral', 'speed', 'sunset', 'sunsetdark', 'teal', 'tealgrn',\n 'tealrose', 'tempo', 'temps', 'thermal', 'tropic', 'turbid',\n 'turbo', 'twilight', 'viridis', 'ylgn', 'ylgnbu', 'ylorbr',\n 'ylorrd'].\n Appending '_r' to a named colorscale reverses it.\n\n Returns\n -------\n str\n """\n return self["colorscale"]\n\n @colorscale.setter\n def colorscale(self, val):\n self["colorscale"] = val\n\n @property\n def reversescale(self):\n """\n Reverses the color mapping if true. If true, `cmin` will\n correspond to the last color in the array and `cmax` will\n correspond to the first color.\n\n The 'reversescale' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["reversescale"]\n\n @reversescale.setter\n def reversescale(self, val):\n self["reversescale"] = val\n\n @property\n def showscale(self):\n """\n Determines whether or not a colorbar is displayed for this\n trace.\n\n The 'showscale' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showscale"]\n\n @showscale.setter\n def showscale(self, val):\n self["showscale"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n autocolorscale\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `colorscale`. In case `colorscale` is unspecified or\n `autocolorscale` is true, the default palette will be\n chosen according to whether numbers in the `color`\n array are all positive, all negative or mixed.\n cauto\n Determines whether or not the color domain is computed\n with respect to the input data (here corresponding\n trace color array(s)) or the bounds set in `cmin` and\n `cmax` Defaults to `false` when `cmin` and `cmax` are\n set by the user.\n cmax\n Sets the upper bound of the color domain. Value should\n have the same units as corresponding trace color\n array(s) and if set, `cmin` must be set as well.\n cmid\n Sets the mid-point of the color domain by scaling\n `cmin` and/or `cmax` to be equidistant to this point.\n Value should have the same units as corresponding trace\n color array(s). Has no effect when `cauto` is `false`.\n cmin\n Sets the lower bound of the color domain. Value should\n have the same units as corresponding trace color\n array(s) and if set, `cmax` must be set as well.\n colorbar\n :class:`plotly.graph_objects.layout.coloraxis.ColorBar`\n instance or dict with compatible properties\n colorscale\n Sets the colorscale. The colorscale must be an array\n containing arrays mapping a normalized value to an rgb,\n rgba, hex, hsl, hsv, or named color string. At minimum,\n a mapping for the lowest (0) and highest (1) values are\n required. For example, `[[0, 'rgb(0,0,255)'], [1,\n 'rgb(255,0,0)']]`. To control the bounds of the\n colorscale in color space, use `cmin` and `cmax`.\n Alternatively, `colorscale` may be a palette name\n string of the following list: Blackbody,Bluered,Blues,C\n ividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portl\n and,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.\n reversescale\n Reverses the color mapping if true. If true, `cmin`\n will correspond to the last color in the array and\n `cmax` will correspond to the first color.\n showscale\n Determines whether or not a colorbar is displayed for\n this trace.\n """\n\n def __init__(\n self,\n arg=None,\n autocolorscale=None,\n cauto=None,\n cmax=None,\n cmid=None,\n cmin=None,\n colorbar=None,\n colorscale=None,\n reversescale=None,\n showscale=None,\n **kwargs,\n ):\n """\n Construct a new Coloraxis object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Coloraxis`\n autocolorscale\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `colorscale`. In case `colorscale` is unspecified or\n `autocolorscale` is true, the default palette will be\n chosen according to whether numbers in the `color`\n array are all positive, all negative or mixed.\n cauto\n Determines whether or not the color domain is computed\n with respect to the input data (here corresponding\n trace color array(s)) or the bounds set in `cmin` and\n `cmax` Defaults to `false` when `cmin` and `cmax` are\n set by the user.\n cmax\n Sets the upper bound of the color domain. Value should\n have the same units as corresponding trace color\n array(s) and if set, `cmin` must be set as well.\n cmid\n Sets the mid-point of the color domain by scaling\n `cmin` and/or `cmax` to be equidistant to this point.\n Value should have the same units as corresponding trace\n color array(s). Has no effect when `cauto` is `false`.\n cmin\n Sets the lower bound of the color domain. Value should\n have the same units as corresponding trace color\n array(s) and if set, `cmax` must be set as well.\n colorbar\n :class:`plotly.graph_objects.layout.coloraxis.ColorBar`\n instance or dict with compatible properties\n colorscale\n Sets the colorscale. The colorscale must be an array\n containing arrays mapping a normalized value to an rgb,\n rgba, hex, hsl, hsv, or named color string. At minimum,\n a mapping for the lowest (0) and highest (1) values are\n required. For example, `[[0, 'rgb(0,0,255)'], [1,\n 'rgb(255,0,0)']]`. To control the bounds of the\n colorscale in color space, use `cmin` and `cmax`.\n Alternatively, `colorscale` may be a palette name\n string of the following list: Blackbody,Bluered,Blues,C\n ividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portl\n and,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.\n reversescale\n Reverses the color mapping if true. If true, `cmin`\n will correspond to the last color in the array and\n `cmax` will correspond to the first color.\n showscale\n Determines whether or not a colorbar is displayed for\n this trace.\n\n Returns\n -------\n Coloraxis\n """\n super().__init__("coloraxis")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Coloraxis\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Coloraxis`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("autocolorscale", arg, autocolorscale)\n self._set_property("cauto", arg, cauto)\n self._set_property("cmax", arg, cmax)\n self._set_property("cmid", arg, cmid)\n self._set_property("cmin", arg, cmin)\n self._set_property("colorbar", arg, colorbar)\n self._set_property("colorscale", arg, colorscale)\n self._set_property("reversescale", arg, reversescale)\n self._set_property("showscale", arg, showscale)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_coloraxis.py
_coloraxis.py
Python
14,577
0.95
0.108586
0.008547
node-utils
94
2023-10-05T01:54:11.972048
Apache-2.0
false
de226ac244e79c39d3d382937d79cd52
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Colorscale(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.colorscale"\n _valid_props = {"diverging", "sequential", "sequentialminus"}\n\n @property\n def diverging(self):\n """\n Sets the default diverging colorscale. Note that\n `autocolorscale` must be true for this attribute to work.\n\n The 'diverging' property is a colorscale and may be\n specified as:\n - A list of colors that will be spaced evenly to create the colorscale.\n Many predefined colorscale lists are included in the sequential, diverging,\n and cyclical modules in the plotly.colors package.\n - A list of 2-element lists where the first element is the\n normalized color level value (starting at 0 and ending at 1),\n and the second item is a valid color string.\n (e.g. [[0, 'green'], [0.5, 'red'], [1.0, 'rgb(0, 0, 255)']])\n - One of the following named colorscales:\n ['aggrnyl', 'agsunset', 'algae', 'amp', 'armyrose', 'balance',\n 'blackbody', 'bluered', 'blues', 'blugrn', 'bluyl', 'brbg',\n 'brwnyl', 'bugn', 'bupu', 'burg', 'burgyl', 'cividis', 'curl',\n 'darkmint', 'deep', 'delta', 'dense', 'earth', 'edge', 'electric',\n 'emrld', 'fall', 'geyser', 'gnbu', 'gray', 'greens', 'greys',\n 'haline', 'hot', 'hsv', 'ice', 'icefire', 'inferno', 'jet',\n 'magenta', 'magma', 'matter', 'mint', 'mrybm', 'mygbm', 'oranges',\n 'orrd', 'oryel', 'oxy', 'peach', 'phase', 'picnic', 'pinkyl',\n 'piyg', 'plasma', 'plotly3', 'portland', 'prgn', 'pubu', 'pubugn',\n 'puor', 'purd', 'purp', 'purples', 'purpor', 'rainbow', 'rdbu',\n 'rdgy', 'rdpu', 'rdylbu', 'rdylgn', 'redor', 'reds', 'solar',\n 'spectral', 'speed', 'sunset', 'sunsetdark', 'teal', 'tealgrn',\n 'tealrose', 'tempo', 'temps', 'thermal', 'tropic', 'turbid',\n 'turbo', 'twilight', 'viridis', 'ylgn', 'ylgnbu', 'ylorbr',\n 'ylorrd'].\n Appending '_r' to a named colorscale reverses it.\n\n Returns\n -------\n str\n """\n return self["diverging"]\n\n @diverging.setter\n def diverging(self, val):\n self["diverging"] = val\n\n @property\n def sequential(self):\n """\n Sets the default sequential colorscale for positive values.\n Note that `autocolorscale` must be true for this attribute to\n work.\n\n The 'sequential' property is a colorscale and may be\n specified as:\n - A list of colors that will be spaced evenly to create the colorscale.\n Many predefined colorscale lists are included in the sequential, diverging,\n and cyclical modules in the plotly.colors package.\n - A list of 2-element lists where the first element is the\n normalized color level value (starting at 0 and ending at 1),\n and the second item is a valid color string.\n (e.g. [[0, 'green'], [0.5, 'red'], [1.0, 'rgb(0, 0, 255)']])\n - One of the following named colorscales:\n ['aggrnyl', 'agsunset', 'algae', 'amp', 'armyrose', 'balance',\n 'blackbody', 'bluered', 'blues', 'blugrn', 'bluyl', 'brbg',\n 'brwnyl', 'bugn', 'bupu', 'burg', 'burgyl', 'cividis', 'curl',\n 'darkmint', 'deep', 'delta', 'dense', 'earth', 'edge', 'electric',\n 'emrld', 'fall', 'geyser', 'gnbu', 'gray', 'greens', 'greys',\n 'haline', 'hot', 'hsv', 'ice', 'icefire', 'inferno', 'jet',\n 'magenta', 'magma', 'matter', 'mint', 'mrybm', 'mygbm', 'oranges',\n 'orrd', 'oryel', 'oxy', 'peach', 'phase', 'picnic', 'pinkyl',\n 'piyg', 'plasma', 'plotly3', 'portland', 'prgn', 'pubu', 'pubugn',\n 'puor', 'purd', 'purp', 'purples', 'purpor', 'rainbow', 'rdbu',\n 'rdgy', 'rdpu', 'rdylbu', 'rdylgn', 'redor', 'reds', 'solar',\n 'spectral', 'speed', 'sunset', 'sunsetdark', 'teal', 'tealgrn',\n 'tealrose', 'tempo', 'temps', 'thermal', 'tropic', 'turbid',\n 'turbo', 'twilight', 'viridis', 'ylgn', 'ylgnbu', 'ylorbr',\n 'ylorrd'].\n Appending '_r' to a named colorscale reverses it.\n\n Returns\n -------\n str\n """\n return self["sequential"]\n\n @sequential.setter\n def sequential(self, val):\n self["sequential"] = val\n\n @property\n def sequentialminus(self):\n """\n Sets the default sequential colorscale for negative values.\n Note that `autocolorscale` must be true for this attribute to\n work.\n\n The 'sequentialminus' property is a colorscale and may be\n specified as:\n - A list of colors that will be spaced evenly to create the colorscale.\n Many predefined colorscale lists are included in the sequential, diverging,\n and cyclical modules in the plotly.colors package.\n - A list of 2-element lists where the first element is the\n normalized color level value (starting at 0 and ending at 1),\n and the second item is a valid color string.\n (e.g. [[0, 'green'], [0.5, 'red'], [1.0, 'rgb(0, 0, 255)']])\n - One of the following named colorscales:\n ['aggrnyl', 'agsunset', 'algae', 'amp', 'armyrose', 'balance',\n 'blackbody', 'bluered', 'blues', 'blugrn', 'bluyl', 'brbg',\n 'brwnyl', 'bugn', 'bupu', 'burg', 'burgyl', 'cividis', 'curl',\n 'darkmint', 'deep', 'delta', 'dense', 'earth', 'edge', 'electric',\n 'emrld', 'fall', 'geyser', 'gnbu', 'gray', 'greens', 'greys',\n 'haline', 'hot', 'hsv', 'ice', 'icefire', 'inferno', 'jet',\n 'magenta', 'magma', 'matter', 'mint', 'mrybm', 'mygbm', 'oranges',\n 'orrd', 'oryel', 'oxy', 'peach', 'phase', 'picnic', 'pinkyl',\n 'piyg', 'plasma', 'plotly3', 'portland', 'prgn', 'pubu', 'pubugn',\n 'puor', 'purd', 'purp', 'purples', 'purpor', 'rainbow', 'rdbu',\n 'rdgy', 'rdpu', 'rdylbu', 'rdylgn', 'redor', 'reds', 'solar',\n 'spectral', 'speed', 'sunset', 'sunsetdark', 'teal', 'tealgrn',\n 'tealrose', 'tempo', 'temps', 'thermal', 'tropic', 'turbid',\n 'turbo', 'twilight', 'viridis', 'ylgn', 'ylgnbu', 'ylorbr',\n 'ylorrd'].\n Appending '_r' to a named colorscale reverses it.\n\n Returns\n -------\n str\n """\n return self["sequentialminus"]\n\n @sequentialminus.setter\n def sequentialminus(self, val):\n self["sequentialminus"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n diverging\n Sets the default diverging colorscale. Note that\n `autocolorscale` must be true for this attribute to\n work.\n sequential\n Sets the default sequential colorscale for positive\n values. Note that `autocolorscale` must be true for\n this attribute to work.\n sequentialminus\n Sets the default sequential colorscale for negative\n values. Note that `autocolorscale` must be true for\n this attribute to work.\n """\n\n def __init__(\n self, arg=None, diverging=None, sequential=None, sequentialminus=None, **kwargs\n ):\n """\n Construct a new Colorscale object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Colorscale`\n diverging\n Sets the default diverging colorscale. Note that\n `autocolorscale` must be true for this attribute to\n work.\n sequential\n Sets the default sequential colorscale for positive\n values. Note that `autocolorscale` must be true for\n this attribute to work.\n sequentialminus\n Sets the default sequential colorscale for negative\n values. Note that `autocolorscale` must be true for\n this attribute to work.\n\n Returns\n -------\n Colorscale\n """\n super().__init__("colorscale")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Colorscale\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Colorscale`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("diverging", arg, diverging)\n self._set_property("sequential", arg, sequential)\n self._set_property("sequentialminus", arg, sequentialminus)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_colorscale.py
_colorscale.py
Python
9,621
0.95
0.130841
0.010417
awesome-app
691
2024-02-08T14:26:13.889777
MIT
false
d3fd1cce05b382cfde87ea70e331be9d
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets the global font. Note that fonts used in traces and other\n layout components inherit from the global font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_font.py
_font.py
Python
9,909
0.95
0.10479
0.010526
python-kit
42
2025-04-19T09:05:37.898935
MIT
false
d04021f6c432fff440bd6bb06d314086
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Geo(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.geo"\n _valid_props = {\n "bgcolor",\n "center",\n "coastlinecolor",\n "coastlinewidth",\n "countrycolor",\n "countrywidth",\n "domain",\n "fitbounds",\n "framecolor",\n "framewidth",\n "lakecolor",\n "landcolor",\n "lataxis",\n "lonaxis",\n "oceancolor",\n "projection",\n "resolution",\n "rivercolor",\n "riverwidth",\n "scope",\n "showcoastlines",\n "showcountries",\n "showframe",\n "showlakes",\n "showland",\n "showocean",\n "showrivers",\n "showsubunits",\n "subunitcolor",\n "subunitwidth",\n "uirevision",\n "visible",\n }\n\n @property\n def bgcolor(self):\n """\n Set the background color of the map\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def center(self):\n """\n The 'center' property is an instance of Center\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.geo.Center`\n - A dict of string/value properties that will be passed\n to the Center constructor\n\n Returns\n -------\n plotly.graph_objs.layout.geo.Center\n """\n return self["center"]\n\n @center.setter\n def center(self, val):\n self["center"] = val\n\n @property\n def coastlinecolor(self):\n """\n Sets the coastline color.\n\n The 'coastlinecolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["coastlinecolor"]\n\n @coastlinecolor.setter\n def coastlinecolor(self, val):\n self["coastlinecolor"] = val\n\n @property\n def coastlinewidth(self):\n """\n Sets the coastline stroke width (in px).\n\n The 'coastlinewidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["coastlinewidth"]\n\n @coastlinewidth.setter\n def coastlinewidth(self, val):\n self["coastlinewidth"] = val\n\n @property\n def countrycolor(self):\n """\n Sets line color of the country boundaries.\n\n The 'countrycolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["countrycolor"]\n\n @countrycolor.setter\n def countrycolor(self, val):\n self["countrycolor"] = val\n\n @property\n def countrywidth(self):\n """\n Sets line width (in px) of the country boundaries.\n\n The 'countrywidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["countrywidth"]\n\n @countrywidth.setter\n def countrywidth(self, val):\n self["countrywidth"] = val\n\n @property\n def domain(self):\n """\n The 'domain' property is an instance of Domain\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.geo.Domain`\n - A dict of string/value properties that will be passed\n to the Domain constructor\n\n Returns\n -------\n plotly.graph_objs.layout.geo.Domain\n """\n return self["domain"]\n\n @domain.setter\n def domain(self, val):\n self["domain"] = val\n\n @property\n def fitbounds(self):\n """\n Determines if this subplot's view settings are auto-computed to\n fit trace data. On scoped maps, setting `fitbounds` leads to\n `center.lon` and `center.lat` getting auto-filled. On maps with\n a non-clipped projection, setting `fitbounds` leads to\n `center.lon`, `center.lat`, and `projection.rotation.lon`\n getting auto-filled. On maps with a clipped projection, setting\n `fitbounds` leads to `center.lon`, `center.lat`,\n `projection.rotation.lon`, `projection.rotation.lat`,\n `lonaxis.range` and `lataxis.range` getting auto-filled. If\n "locations", only the trace's visible locations are considered\n in the `fitbounds` computations. If "geojson", the entire trace\n input `geojson` (if provided) is considered in the `fitbounds`\n computations, Defaults to False.\n\n The 'fitbounds' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n [False, 'locations', 'geojson']\n\n Returns\n -------\n Any\n """\n return self["fitbounds"]\n\n @fitbounds.setter\n def fitbounds(self, val):\n self["fitbounds"] = val\n\n @property\n def framecolor(self):\n """\n Sets the color the frame.\n\n The 'framecolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["framecolor"]\n\n @framecolor.setter\n def framecolor(self, val):\n self["framecolor"] = val\n\n @property\n def framewidth(self):\n """\n Sets the stroke width (in px) of the frame.\n\n The 'framewidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["framewidth"]\n\n @framewidth.setter\n def framewidth(self, val):\n self["framewidth"] = val\n\n @property\n def lakecolor(self):\n """\n Sets the color of the lakes.\n\n The 'lakecolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["lakecolor"]\n\n @lakecolor.setter\n def lakecolor(self, val):\n self["lakecolor"] = val\n\n @property\n def landcolor(self):\n """\n Sets the land mass color.\n\n The 'landcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["landcolor"]\n\n @landcolor.setter\n def landcolor(self, val):\n self["landcolor"] = val\n\n @property\n def lataxis(self):\n """\n The 'lataxis' property is an instance of Lataxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.geo.Lataxis`\n - A dict of string/value properties that will be passed\n to the Lataxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.geo.Lataxis\n """\n return self["lataxis"]\n\n @lataxis.setter\n def lataxis(self, val):\n self["lataxis"] = val\n\n @property\n def lonaxis(self):\n """\n The 'lonaxis' property is an instance of Lonaxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.geo.Lonaxis`\n - A dict of string/value properties that will be passed\n to the Lonaxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.geo.Lonaxis\n """\n return self["lonaxis"]\n\n @lonaxis.setter\n def lonaxis(self, val):\n self["lonaxis"] = val\n\n @property\n def oceancolor(self):\n """\n Sets the ocean color\n\n The 'oceancolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["oceancolor"]\n\n @oceancolor.setter\n def oceancolor(self, val):\n self["oceancolor"] = val\n\n @property\n def projection(self):\n """\n The 'projection' property is an instance of Projection\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.geo.Projection`\n - A dict of string/value properties that will be passed\n to the Projection constructor\n\n Returns\n -------\n plotly.graph_objs.layout.geo.Projection\n """\n return self["projection"]\n\n @projection.setter\n def projection(self, val):\n self["projection"] = val\n\n @property\n def resolution(self):\n """\n Sets the resolution of the base layers. The values have units\n of km/mm e.g. 110 corresponds to a scale ratio of\n 1:110,000,000.\n\n The 'resolution' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n [110, 50]\n\n Returns\n -------\n Any\n """\n return self["resolution"]\n\n @resolution.setter\n def resolution(self, val):\n self["resolution"] = val\n\n @property\n def rivercolor(self):\n """\n Sets color of the rivers.\n\n The 'rivercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["rivercolor"]\n\n @rivercolor.setter\n def rivercolor(self, val):\n self["rivercolor"] = val\n\n @property\n def riverwidth(self):\n """\n Sets the stroke width (in px) of the rivers.\n\n The 'riverwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["riverwidth"]\n\n @riverwidth.setter\n def riverwidth(self, val):\n self["riverwidth"] = val\n\n @property\n def scope(self):\n """\n Set the scope of the map.\n\n The 'scope' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['africa', 'asia', 'europe', 'north america', 'south\n america', 'usa', 'world']\n\n Returns\n -------\n Any\n """\n return self["scope"]\n\n @scope.setter\n def scope(self, val):\n self["scope"] = val\n\n @property\n def showcoastlines(self):\n """\n Sets whether or not the coastlines are drawn.\n\n The 'showcoastlines' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showcoastlines"]\n\n @showcoastlines.setter\n def showcoastlines(self, val):\n self["showcoastlines"] = val\n\n @property\n def showcountries(self):\n """\n Sets whether or not country boundaries are drawn.\n\n The 'showcountries' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showcountries"]\n\n @showcountries.setter\n def showcountries(self, val):\n self["showcountries"] = val\n\n @property\n def showframe(self):\n """\n Sets whether or not a frame is drawn around the map.\n\n The 'showframe' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showframe"]\n\n @showframe.setter\n def showframe(self, val):\n self["showframe"] = val\n\n @property\n def showlakes(self):\n """\n Sets whether or not lakes are drawn.\n\n The 'showlakes' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showlakes"]\n\n @showlakes.setter\n def showlakes(self, val):\n self["showlakes"] = val\n\n @property\n def showland(self):\n """\n Sets whether or not land masses are filled in color.\n\n The 'showland' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showland"]\n\n @showland.setter\n def showland(self, val):\n self["showland"] = val\n\n @property\n def showocean(self):\n """\n Sets whether or not oceans are filled in color.\n\n The 'showocean' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showocean"]\n\n @showocean.setter\n def showocean(self, val):\n self["showocean"] = val\n\n @property\n def showrivers(self):\n """\n Sets whether or not rivers are drawn.\n\n The 'showrivers' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showrivers"]\n\n @showrivers.setter\n def showrivers(self, val):\n self["showrivers"] = val\n\n @property\n def showsubunits(self):\n """\n Sets whether or not boundaries of subunits within countries\n (e.g. states, provinces) are drawn.\n\n The 'showsubunits' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showsubunits"]\n\n @showsubunits.setter\n def showsubunits(self, val):\n self["showsubunits"] = val\n\n @property\n def subunitcolor(self):\n """\n Sets the color of the subunits boundaries.\n\n The 'subunitcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["subunitcolor"]\n\n @subunitcolor.setter\n def subunitcolor(self, val):\n self["subunitcolor"] = val\n\n @property\n def subunitwidth(self):\n """\n Sets the stroke width (in px) of the subunits boundaries.\n\n The 'subunitwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["subunitwidth"]\n\n @subunitwidth.setter\n def subunitwidth(self, val):\n self["subunitwidth"] = val\n\n @property\n def uirevision(self):\n """\n Controls persistence of user-driven changes in the view\n (projection and center). Defaults to `layout.uirevision`.\n\n The 'uirevision' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["uirevision"]\n\n @uirevision.setter\n def uirevision(self, val):\n self["uirevision"] = val\n\n @property\n def visible(self):\n """\n Sets the default visibility of the base layers.\n\n The 'visible' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n bgcolor\n Set the background color of the map\n center\n :class:`plotly.graph_objects.layout.geo.Center`\n instance or dict with compatible properties\n coastlinecolor\n Sets the coastline color.\n coastlinewidth\n Sets the coastline stroke width (in px).\n countrycolor\n Sets line color of the country boundaries.\n countrywidth\n Sets line width (in px) of the country boundaries.\n domain\n :class:`plotly.graph_objects.layout.geo.Domain`\n instance or dict with compatible properties\n fitbounds\n Determines if this subplot's view settings are auto-\n computed to fit trace data. On scoped maps, setting\n `fitbounds` leads to `center.lon` and `center.lat`\n getting auto-filled. On maps with a non-clipped\n projection, setting `fitbounds` leads to `center.lon`,\n `center.lat`, and `projection.rotation.lon` getting\n auto-filled. On maps with a clipped projection, setting\n `fitbounds` leads to `center.lon`, `center.lat`,\n `projection.rotation.lon`, `projection.rotation.lat`,\n `lonaxis.range` and `lataxis.range` getting auto-\n filled. If "locations", only the trace's visible\n locations are considered in the `fitbounds`\n computations. If "geojson", the entire trace input\n `geojson` (if provided) is considered in the\n `fitbounds` computations, Defaults to False.\n framecolor\n Sets the color the frame.\n framewidth\n Sets the stroke width (in px) of the frame.\n lakecolor\n Sets the color of the lakes.\n landcolor\n Sets the land mass color.\n lataxis\n :class:`plotly.graph_objects.layout.geo.Lataxis`\n instance or dict with compatible properties\n lonaxis\n :class:`plotly.graph_objects.layout.geo.Lonaxis`\n instance or dict with compatible properties\n oceancolor\n Sets the ocean color\n projection\n :class:`plotly.graph_objects.layout.geo.Projection`\n instance or dict with compatible properties\n resolution\n Sets the resolution of the base layers. The values have\n units of km/mm e.g. 110 corresponds to a scale ratio of\n 1:110,000,000.\n rivercolor\n Sets color of the rivers.\n riverwidth\n Sets the stroke width (in px) of the rivers.\n scope\n Set the scope of the map.\n showcoastlines\n Sets whether or not the coastlines are drawn.\n showcountries\n Sets whether or not country boundaries are drawn.\n showframe\n Sets whether or not a frame is drawn around the map.\n showlakes\n Sets whether or not lakes are drawn.\n showland\n Sets whether or not land masses are filled in color.\n showocean\n Sets whether or not oceans are filled in color.\n showrivers\n Sets whether or not rivers are drawn.\n showsubunits\n Sets whether or not boundaries of subunits within\n countries (e.g. states, provinces) are drawn.\n subunitcolor\n Sets the color of the subunits boundaries.\n subunitwidth\n Sets the stroke width (in px) of the subunits\n boundaries.\n uirevision\n Controls persistence of user-driven changes in the view\n (projection and center). Defaults to\n `layout.uirevision`.\n visible\n Sets the default visibility of the base layers.\n """\n\n def __init__(\n self,\n arg=None,\n bgcolor=None,\n center=None,\n coastlinecolor=None,\n coastlinewidth=None,\n countrycolor=None,\n countrywidth=None,\n domain=None,\n fitbounds=None,\n framecolor=None,\n framewidth=None,\n lakecolor=None,\n landcolor=None,\n lataxis=None,\n lonaxis=None,\n oceancolor=None,\n projection=None,\n resolution=None,\n rivercolor=None,\n riverwidth=None,\n scope=None,\n showcoastlines=None,\n showcountries=None,\n showframe=None,\n showlakes=None,\n showland=None,\n showocean=None,\n showrivers=None,\n showsubunits=None,\n subunitcolor=None,\n subunitwidth=None,\n uirevision=None,\n visible=None,\n **kwargs,\n ):\n """\n Construct a new Geo object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Geo`\n bgcolor\n Set the background color of the map\n center\n :class:`plotly.graph_objects.layout.geo.Center`\n instance or dict with compatible properties\n coastlinecolor\n Sets the coastline color.\n coastlinewidth\n Sets the coastline stroke width (in px).\n countrycolor\n Sets line color of the country boundaries.\n countrywidth\n Sets line width (in px) of the country boundaries.\n domain\n :class:`plotly.graph_objects.layout.geo.Domain`\n instance or dict with compatible properties\n fitbounds\n Determines if this subplot's view settings are auto-\n computed to fit trace data. On scoped maps, setting\n `fitbounds` leads to `center.lon` and `center.lat`\n getting auto-filled. On maps with a non-clipped\n projection, setting `fitbounds` leads to `center.lon`,\n `center.lat`, and `projection.rotation.lon` getting\n auto-filled. On maps with a clipped projection, setting\n `fitbounds` leads to `center.lon`, `center.lat`,\n `projection.rotation.lon`, `projection.rotation.lat`,\n `lonaxis.range` and `lataxis.range` getting auto-\n filled. If "locations", only the trace's visible\n locations are considered in the `fitbounds`\n computations. If "geojson", the entire trace input\n `geojson` (if provided) is considered in the\n `fitbounds` computations, Defaults to False.\n framecolor\n Sets the color the frame.\n framewidth\n Sets the stroke width (in px) of the frame.\n lakecolor\n Sets the color of the lakes.\n landcolor\n Sets the land mass color.\n lataxis\n :class:`plotly.graph_objects.layout.geo.Lataxis`\n instance or dict with compatible properties\n lonaxis\n :class:`plotly.graph_objects.layout.geo.Lonaxis`\n instance or dict with compatible properties\n oceancolor\n Sets the ocean color\n projection\n :class:`plotly.graph_objects.layout.geo.Projection`\n instance or dict with compatible properties\n resolution\n Sets the resolution of the base layers. The values have\n units of km/mm e.g. 110 corresponds to a scale ratio of\n 1:110,000,000.\n rivercolor\n Sets color of the rivers.\n riverwidth\n Sets the stroke width (in px) of the rivers.\n scope\n Set the scope of the map.\n showcoastlines\n Sets whether or not the coastlines are drawn.\n showcountries\n Sets whether or not country boundaries are drawn.\n showframe\n Sets whether or not a frame is drawn around the map.\n showlakes\n Sets whether or not lakes are drawn.\n showland\n Sets whether or not land masses are filled in color.\n showocean\n Sets whether or not oceans are filled in color.\n showrivers\n Sets whether or not rivers are drawn.\n showsubunits\n Sets whether or not boundaries of subunits within\n countries (e.g. states, provinces) are drawn.\n subunitcolor\n Sets the color of the subunits boundaries.\n subunitwidth\n Sets the stroke width (in px) of the subunits\n boundaries.\n uirevision\n Controls persistence of user-driven changes in the view\n (projection and center). Defaults to\n `layout.uirevision`.\n visible\n Sets the default visibility of the base layers.\n\n Returns\n -------\n Geo\n """\n super().__init__("geo")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Geo\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Geo`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("center", arg, center)\n self._set_property("coastlinecolor", arg, coastlinecolor)\n self._set_property("coastlinewidth", arg, coastlinewidth)\n self._set_property("countrycolor", arg, countrycolor)\n self._set_property("countrywidth", arg, countrywidth)\n self._set_property("domain", arg, domain)\n self._set_property("fitbounds", arg, fitbounds)\n self._set_property("framecolor", arg, framecolor)\n self._set_property("framewidth", arg, framewidth)\n self._set_property("lakecolor", arg, lakecolor)\n self._set_property("landcolor", arg, landcolor)\n self._set_property("lataxis", arg, lataxis)\n self._set_property("lonaxis", arg, lonaxis)\n self._set_property("oceancolor", arg, oceancolor)\n self._set_property("projection", arg, projection)\n self._set_property("resolution", arg, resolution)\n self._set_property("rivercolor", arg, rivercolor)\n self._set_property("riverwidth", arg, riverwidth)\n self._set_property("scope", arg, scope)\n self._set_property("showcoastlines", arg, showcoastlines)\n self._set_property("showcountries", arg, showcountries)\n self._set_property("showframe", arg, showframe)\n self._set_property("showlakes", arg, showlakes)\n self._set_property("showland", arg, showland)\n self._set_property("showocean", arg, showocean)\n self._set_property("showrivers", arg, showrivers)\n self._set_property("showsubunits", arg, showsubunits)\n self._set_property("subunitcolor", arg, subunitcolor)\n self._set_property("subunitwidth", arg, subunitwidth)\n self._set_property("uirevision", arg, uirevision)\n self._set_property("visible", arg, visible)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_geo.py
_geo.py
Python
29,049
0.95
0.104339
0.003593
node-utils
62
2024-09-21T05:27:14.563539
Apache-2.0
false
75fab1a7b46a2456559316d85bdc919c
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Grid(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.grid"\n _valid_props = {\n "columns",\n "domain",\n "pattern",\n "roworder",\n "rows",\n "subplots",\n "xaxes",\n "xgap",\n "xside",\n "yaxes",\n "ygap",\n "yside",\n }\n\n @property\n def columns(self):\n """\n The number of columns in the grid. If you provide a 2D\n `subplots` array, the length of its longest row is used as the\n default. If you give an `xaxes` array, its length is used as\n the default. But it's also possible to have a different length,\n if you want to leave a row at the end for non-cartesian\n subplots.\n\n The 'columns' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["columns"]\n\n @columns.setter\n def columns(self, val):\n self["columns"] = val\n\n @property\n def domain(self):\n """\n The 'domain' property is an instance of Domain\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.grid.Domain`\n - A dict of string/value properties that will be passed\n to the Domain constructor\n\n Returns\n -------\n plotly.graph_objs.layout.grid.Domain\n """\n return self["domain"]\n\n @domain.setter\n def domain(self, val):\n self["domain"] = val\n\n @property\n def pattern(self):\n """\n If no `subplots`, `xaxes`, or `yaxes` are given but we do have\n `rows` and `columns`, we can generate defaults using\n consecutive axis IDs, in two ways: "coupled" gives one x axis\n per column and one y axis per row. "independent" uses a new xy\n pair for each cell, left-to-right across each row then\n iterating rows according to `roworder`.\n\n The 'pattern' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['independent', 'coupled']\n\n Returns\n -------\n Any\n """\n return self["pattern"]\n\n @pattern.setter\n def pattern(self, val):\n self["pattern"] = val\n\n @property\n def roworder(self):\n """\n Is the first row the top or the bottom? Note that columns are\n always enumerated from left to right.\n\n The 'roworder' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['top to bottom', 'bottom to top']\n\n Returns\n -------\n Any\n """\n return self["roworder"]\n\n @roworder.setter\n def roworder(self, val):\n self["roworder"] = val\n\n @property\n def rows(self):\n """\n The number of rows in the grid. If you provide a 2D `subplots`\n array or a `yaxes` array, its length is used as the default.\n But it's also possible to have a different length, if you want\n to leave a row at the end for non-cartesian subplots.\n\n The 'rows' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["rows"]\n\n @rows.setter\n def rows(self, val):\n self["rows"] = val\n\n @property\n def subplots(self):\n """\n Used for freeform grids, where some axes may be shared across\n subplots but others are not. Each entry should be a cartesian\n subplot id, like "xy" or "x3y2", or "" to leave that cell\n empty. You may reuse x axes within the same column, and y axes\n within the same row. Non-cartesian subplots and traces that\n support `domain` can place themselves in this grid separately\n using the `gridcell` attribute.\n\n The 'subplots' property is an info array that may be specified as:\n * a 2D list where:\n The 'subplots[i][j]' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['']\n - A string that matches one of the following regular expressions:\n ['^x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?$']\n\n Returns\n -------\n list\n """\n return self["subplots"]\n\n @subplots.setter\n def subplots(self, val):\n self["subplots"] = val\n\n @property\n def xaxes(self):\n """\n Used with `yaxes` when the x and y axes are shared across\n columns and rows. Each entry should be an x axis id like "x",\n "x2", etc., or "" to not put an x axis in that column. Entries\n other than "" must be unique. Ignored if `subplots` is present.\n If missing but `yaxes` is present, will generate consecutive\n IDs.\n\n The 'xaxes' property is an info array that may be specified as:\n * a list of elements where:\n The 'xaxes[i]' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['']\n - A string that matches one of the following regular expressions:\n ['^x([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n list\n """\n return self["xaxes"]\n\n @xaxes.setter\n def xaxes(self, val):\n self["xaxes"] = val\n\n @property\n def xgap(self):\n """\n Horizontal space between grid cells, expressed as a fraction of\n the total width available to one cell. Defaults to 0.1 for\n coupled-axes grids and 0.2 for independent grids.\n\n The 'xgap' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["xgap"]\n\n @xgap.setter\n def xgap(self, val):\n self["xgap"] = val\n\n @property\n def xside(self):\n """\n Sets where the x axis labels and titles go. "bottom" means the\n very bottom of the grid. "bottom plot" is the lowest plot that\n each x axis is used in. "top" and "top plot" are similar.\n\n The 'xside' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['bottom', 'bottom plot', 'top plot', 'top']\n\n Returns\n -------\n Any\n """\n return self["xside"]\n\n @xside.setter\n def xside(self, val):\n self["xside"] = val\n\n @property\n def yaxes(self):\n """\n Used with `yaxes` when the x and y axes are shared across\n columns and rows. Each entry should be an y axis id like "y",\n "y2", etc., or "" to not put a y axis in that row. Entries\n other than "" must be unique. Ignored if `subplots` is present.\n If missing but `xaxes` is present, will generate consecutive\n IDs.\n\n The 'yaxes' property is an info array that may be specified as:\n * a list of elements where:\n The 'yaxes[i]' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['']\n - A string that matches one of the following regular expressions:\n ['^y([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n list\n """\n return self["yaxes"]\n\n @yaxes.setter\n def yaxes(self, val):\n self["yaxes"] = val\n\n @property\n def ygap(self):\n """\n Vertical space between grid cells, expressed as a fraction of\n the total height available to one cell. Defaults to 0.1 for\n coupled-axes grids and 0.3 for independent grids.\n\n The 'ygap' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["ygap"]\n\n @ygap.setter\n def ygap(self, val):\n self["ygap"] = val\n\n @property\n def yside(self):\n """\n Sets where the y axis labels and titles go. "left" means the\n very left edge of the grid. *left plot* is the leftmost plot\n that each y axis is used in. "right" and *right plot* are\n similar.\n\n The 'yside' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'left plot', 'right plot', 'right']\n\n Returns\n -------\n Any\n """\n return self["yside"]\n\n @yside.setter\n def yside(self, val):\n self["yside"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n columns\n The number of columns in the grid. If you provide a 2D\n `subplots` array, the length of its longest row is used\n as the default. If you give an `xaxes` array, its\n length is used as the default. But it's also possible\n to have a different length, if you want to leave a row\n at the end for non-cartesian subplots.\n domain\n :class:`plotly.graph_objects.layout.grid.Domain`\n instance or dict with compatible properties\n pattern\n If no `subplots`, `xaxes`, or `yaxes` are given but we\n do have `rows` and `columns`, we can generate defaults\n using consecutive axis IDs, in two ways: "coupled"\n gives one x axis per column and one y axis per row.\n "independent" uses a new xy pair for each cell, left-\n to-right across each row then iterating rows according\n to `roworder`.\n roworder\n Is the first row the top or the bottom? Note that\n columns are always enumerated from left to right.\n rows\n The number of rows in the grid. If you provide a 2D\n `subplots` array or a `yaxes` array, its length is used\n as the default. But it's also possible to have a\n different length, if you want to leave a row at the end\n for non-cartesian subplots.\n subplots\n Used for freeform grids, where some axes may be shared\n across subplots but others are not. Each entry should\n be a cartesian subplot id, like "xy" or "x3y2", or ""\n to leave that cell empty. You may reuse x axes within\n the same column, and y axes within the same row. Non-\n cartesian subplots and traces that support `domain` can\n place themselves in this grid separately using the\n `gridcell` attribute.\n xaxes\n Used with `yaxes` when the x and y axes are shared\n across columns and rows. Each entry should be an x axis\n id like "x", "x2", etc., or "" to not put an x axis in\n that column. Entries other than "" must be unique.\n Ignored if `subplots` is present. If missing but\n `yaxes` is present, will generate consecutive IDs.\n xgap\n Horizontal space between grid cells, expressed as a\n fraction of the total width available to one cell.\n Defaults to 0.1 for coupled-axes grids and 0.2 for\n independent grids.\n xside\n Sets where the x axis labels and titles go. "bottom"\n means the very bottom of the grid. "bottom plot" is the\n lowest plot that each x axis is used in. "top" and "top\n plot" are similar.\n yaxes\n Used with `yaxes` when the x and y axes are shared\n across columns and rows. Each entry should be an y axis\n id like "y", "y2", etc., or "" to not put a y axis in\n that row. Entries other than "" must be unique. Ignored\n if `subplots` is present. If missing but `xaxes` is\n present, will generate consecutive IDs.\n ygap\n Vertical space between grid cells, expressed as a\n fraction of the total height available to one cell.\n Defaults to 0.1 for coupled-axes grids and 0.3 for\n independent grids.\n yside\n Sets where the y axis labels and titles go. "left"\n means the very left edge of the grid. *left plot* is\n the leftmost plot that each y axis is used in. "right"\n and *right plot* are similar.\n """\n\n def __init__(\n self,\n arg=None,\n columns=None,\n domain=None,\n pattern=None,\n roworder=None,\n rows=None,\n subplots=None,\n xaxes=None,\n xgap=None,\n xside=None,\n yaxes=None,\n ygap=None,\n yside=None,\n **kwargs,\n ):\n """\n Construct a new Grid object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Grid`\n columns\n The number of columns in the grid. If you provide a 2D\n `subplots` array, the length of its longest row is used\n as the default. If you give an `xaxes` array, its\n length is used as the default. But it's also possible\n to have a different length, if you want to leave a row\n at the end for non-cartesian subplots.\n domain\n :class:`plotly.graph_objects.layout.grid.Domain`\n instance or dict with compatible properties\n pattern\n If no `subplots`, `xaxes`, or `yaxes` are given but we\n do have `rows` and `columns`, we can generate defaults\n using consecutive axis IDs, in two ways: "coupled"\n gives one x axis per column and one y axis per row.\n "independent" uses a new xy pair for each cell, left-\n to-right across each row then iterating rows according\n to `roworder`.\n roworder\n Is the first row the top or the bottom? Note that\n columns are always enumerated from left to right.\n rows\n The number of rows in the grid. If you provide a 2D\n `subplots` array or a `yaxes` array, its length is used\n as the default. But it's also possible to have a\n different length, if you want to leave a row at the end\n for non-cartesian subplots.\n subplots\n Used for freeform grids, where some axes may be shared\n across subplots but others are not. Each entry should\n be a cartesian subplot id, like "xy" or "x3y2", or ""\n to leave that cell empty. You may reuse x axes within\n the same column, and y axes within the same row. Non-\n cartesian subplots and traces that support `domain` can\n place themselves in this grid separately using the\n `gridcell` attribute.\n xaxes\n Used with `yaxes` when the x and y axes are shared\n across columns and rows. Each entry should be an x axis\n id like "x", "x2", etc., or "" to not put an x axis in\n that column. Entries other than "" must be unique.\n Ignored if `subplots` is present. If missing but\n `yaxes` is present, will generate consecutive IDs.\n xgap\n Horizontal space between grid cells, expressed as a\n fraction of the total width available to one cell.\n Defaults to 0.1 for coupled-axes grids and 0.2 for\n independent grids.\n xside\n Sets where the x axis labels and titles go. "bottom"\n means the very bottom of the grid. "bottom plot" is the\n lowest plot that each x axis is used in. "top" and "top\n plot" are similar.\n yaxes\n Used with `yaxes` when the x and y axes are shared\n across columns and rows. Each entry should be an y axis\n id like "y", "y2", etc., or "" to not put a y axis in\n that row. Entries other than "" must be unique. Ignored\n if `subplots` is present. If missing but `xaxes` is\n present, will generate consecutive IDs.\n ygap\n Vertical space between grid cells, expressed as a\n fraction of the total height available to one cell.\n Defaults to 0.1 for coupled-axes grids and 0.3 for\n independent grids.\n yside\n Sets where the y axis labels and titles go. "left"\n means the very left edge of the grid. *left plot* is\n the leftmost plot that each y axis is used in. "right"\n and *right plot* are similar.\n\n Returns\n -------\n Grid\n """\n super().__init__("grid")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Grid\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Grid`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("columns", arg, columns)\n self._set_property("domain", arg, domain)\n self._set_property("pattern", arg, pattern)\n self._set_property("roworder", arg, roworder)\n self._set_property("rows", arg, rows)\n self._set_property("subplots", arg, subplots)\n self._set_property("xaxes", arg, xaxes)\n self._set_property("xgap", arg, xgap)\n self._set_property("xside", arg, xside)\n self._set_property("yaxes", arg, yaxes)\n self._set_property("ygap", arg, ygap)\n self._set_property("yside", arg, yside)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_grid.py
_grid.py
Python
18,443
0.95
0.136986
0.013216
node-utils
546
2024-04-18T16:19:47.143710
GPL-3.0
false
8d4ec7b2d3b105d7d67df68869b1680e
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Hoverlabel(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.hoverlabel"\n _valid_props = {\n "align",\n "bgcolor",\n "bordercolor",\n "font",\n "grouptitlefont",\n "namelength",\n }\n\n @property\n def align(self):\n """\n Sets the horizontal alignment of the text content within hover\n label box. Has an effect only if the hover label text spans\n more two or more lines\n\n The 'align' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'right', 'auto']\n\n Returns\n -------\n Any\n """\n return self["align"]\n\n @align.setter\n def align(self, val):\n self["align"] = val\n\n @property\n def bgcolor(self):\n """\n Sets the background color of all hover labels on graph\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the border color of all hover labels on graph.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def font(self):\n """\n Sets the default hover label font used by all traces on the\n graph.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.hoverlabel.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.layout.hoverlabel.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def grouptitlefont(self):\n """\n Sets the font for group titles in hover (unified modes).\n Defaults to `hoverlabel.font`.\n\n The 'grouptitlefont' property is an instance of Grouptitlefont\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.hoverlabel.Grouptitlefont`\n - A dict of string/value properties that will be passed\n to the Grouptitlefont constructor\n\n Returns\n -------\n plotly.graph_objs.layout.hoverlabel.Grouptitlefont\n """\n return self["grouptitlefont"]\n\n @grouptitlefont.setter\n def grouptitlefont(self, val):\n self["grouptitlefont"] = val\n\n @property\n def namelength(self):\n """\n Sets the default length (in number of characters) of the trace\n name in the hover labels for all traces. -1 shows the whole\n name regardless of length. 0-3 shows the first 0-3 characters,\n and an integer >3 will show the whole name if it is less than\n that many characters, but if it is longer, will truncate to\n `namelength - 3` characters and add an ellipsis.\n\n The 'namelength' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [-1, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["namelength"]\n\n @namelength.setter\n def namelength(self, val):\n self["namelength"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n align\n Sets the horizontal alignment of the text content\n within hover label box. Has an effect only if the hover\n label text spans more two or more lines\n bgcolor\n Sets the background color of all hover labels on graph\n bordercolor\n Sets the border color of all hover labels on graph.\n font\n Sets the default hover label font used by all traces on\n the graph.\n grouptitlefont\n Sets the font for group titles in hover (unified\n modes). Defaults to `hoverlabel.font`.\n namelength\n Sets the default length (in number of characters) of\n the trace name in the hover labels for all traces. -1\n shows the whole name regardless of length. 0-3 shows\n the first 0-3 characters, and an integer >3 will show\n the whole name if it is less than that many characters,\n but if it is longer, will truncate to `namelength - 3`\n characters and add an ellipsis.\n """\n\n def __init__(\n self,\n arg=None,\n align=None,\n bgcolor=None,\n bordercolor=None,\n font=None,\n grouptitlefont=None,\n namelength=None,\n **kwargs,\n ):\n """\n Construct a new Hoverlabel object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Hoverlabel`\n align\n Sets the horizontal alignment of the text content\n within hover label box. Has an effect only if the hover\n label text spans more two or more lines\n bgcolor\n Sets the background color of all hover labels on graph\n bordercolor\n Sets the border color of all hover labels on graph.\n font\n Sets the default hover label font used by all traces on\n the graph.\n grouptitlefont\n Sets the font for group titles in hover (unified\n modes). Defaults to `hoverlabel.font`.\n namelength\n Sets the default length (in number of characters) of\n the trace name in the hover labels for all traces. -1\n shows the whole name regardless of length. 0-3 shows\n the first 0-3 characters, and an integer >3 will show\n the whole name if it is less than that many characters,\n but if it is longer, will truncate to `namelength - 3`\n characters and add an ellipsis.\n\n Returns\n -------\n Hoverlabel\n """\n super().__init__("hoverlabel")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Hoverlabel\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Hoverlabel`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("align", arg, align)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("font", arg, font)\n self._set_property("grouptitlefont", arg, grouptitlefont)\n self._set_property("namelength", arg, namelength)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_hoverlabel.py
_hoverlabel.py
Python
8,280
0.95
0.149606
0.013636
react-lib
239
2024-01-11T01:58:58.666294
BSD-3-Clause
false
ec44f7e0b24bff862c2816fac63e6651
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Image(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.image"\n _valid_props = {\n "layer",\n "name",\n "opacity",\n "sizex",\n "sizey",\n "sizing",\n "source",\n "templateitemname",\n "visible",\n "x",\n "xanchor",\n "xref",\n "y",\n "yanchor",\n "yref",\n }\n\n @property\n def layer(self):\n """\n Specifies whether images are drawn below or above traces. When\n `xref` and `yref` are both set to `paper`, image is drawn below\n the entire plot area.\n\n The 'layer' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['below', 'above']\n\n Returns\n -------\n Any\n """\n return self["layer"]\n\n @layer.setter\n def layer(self, val):\n self["layer"] = val\n\n @property\n def name(self):\n """\n When used in a template, named items are created in the output\n figure in addition to any items the figure already has in this\n array. You can modify these items in the output figure by\n making your own item with `templateitemname` matching this\n `name` alongside your modifications (including `visible: false`\n or `enabled: false` to hide it). Has no effect outside of a\n template.\n\n The 'name' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["name"]\n\n @name.setter\n def name(self, val):\n self["name"] = val\n\n @property\n def opacity(self):\n """\n Sets the opacity of the image.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def sizex(self):\n """\n Sets the image container size horizontally. The image will be\n sized based on the `position` value. When `xref` is set to\n `paper`, units are sized relative to the plot width. When\n `xref` ends with ` domain`, units are sized relative to the\n axis width.\n\n The 'sizex' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["sizex"]\n\n @sizex.setter\n def sizex(self, val):\n self["sizex"] = val\n\n @property\n def sizey(self):\n """\n Sets the image container size vertically. The image will be\n sized based on the `position` value. When `yref` is set to\n `paper`, units are sized relative to the plot height. When\n `yref` ends with ` domain`, units are sized relative to the\n axis height.\n\n The 'sizey' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["sizey"]\n\n @sizey.setter\n def sizey(self, val):\n self["sizey"] = val\n\n @property\n def sizing(self):\n """\n Specifies which dimension of the image to constrain.\n\n The 'sizing' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['fill', 'contain', 'stretch']\n\n Returns\n -------\n Any\n """\n return self["sizing"]\n\n @sizing.setter\n def sizing(self, val):\n self["sizing"] = val\n\n @property\n def source(self):\n """\n Specifies the URL of the image to be used. The URL must be\n accessible from the domain where the plot code is run, and can\n be either relative or absolute.\n\n The 'source' property is an image URI that may be specified as:\n - A remote image URI string\n (e.g. 'http://www.somewhere.com/image.png')\n - A data URI image string\n (e.g. 'data:image/png;base64,iVBORw0KGgoAAAANSU')\n - A PIL.Image.Image object which will be immediately converted\n to a data URI image string\n See http://pillow.readthedocs.io/en/latest/reference/Image.html\n\n Returns\n -------\n str\n """\n return self["source"]\n\n @source.setter\n def source(self, val):\n self["source"] = val\n\n @property\n def templateitemname(self):\n """\n Used to refer to a named item in this array in the template.\n Named items from the template will be created even without a\n matching item in the input figure, but you can modify one by\n making an item with `templateitemname` matching its `name`,\n alongside your modifications (including `visible: false` or\n `enabled: false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you explicitly\n show it with `visible: true`.\n\n The 'templateitemname' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["templateitemname"]\n\n @templateitemname.setter\n def templateitemname(self, val):\n self["templateitemname"] = val\n\n @property\n def visible(self):\n """\n Determines whether or not this image is visible.\n\n The 'visible' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def x(self):\n """\n Sets the image's x position. When `xref` is set to `paper`,\n units are sized relative to the plot height. See `xref` for\n more info\n\n The 'x' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def xanchor(self):\n """\n Sets the anchor for the x position\n\n The 'xanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'center', 'right']\n\n Returns\n -------\n Any\n """\n return self["xanchor"]\n\n @xanchor.setter\n def xanchor(self, val):\n self["xanchor"] = val\n\n @property\n def xref(self):\n """\n Sets the images's x coordinate axis. If set to a x axis id\n (e.g. "x" or "x2"), the `x` position refers to a x coordinate.\n If set to "paper", the `x` position refers to the distance from\n the left of the plotting area in normalized coordinates where 0\n (1) corresponds to the left (right). If set to a x axis ID\n followed by "domain" (separated by a space), the position\n behaves like for "paper", but refers to the distance in\n fractions of the domain length from the left of the domain of\n that axis: e.g., *x2 domain* refers to the domain of the second\n x axis and a x position of 0.5 refers to the point between the\n left and the right of the domain of the second x axis.\n\n The 'xref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['paper']\n - A string that matches one of the following regular expressions:\n ['^x([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n Any\n """\n return self["xref"]\n\n @xref.setter\n def xref(self, val):\n self["xref"] = val\n\n @property\n def y(self):\n """\n Sets the image's y position. When `yref` is set to `paper`,\n units are sized relative to the plot height. See `yref` for\n more info\n\n The 'y' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def yanchor(self):\n """\n Sets the anchor for the y position.\n\n The 'yanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['top', 'middle', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["yanchor"]\n\n @yanchor.setter\n def yanchor(self, val):\n self["yanchor"] = val\n\n @property\n def yref(self):\n """\n Sets the images's y coordinate axis. If set to a y axis id\n (e.g. "y" or "y2"), the `y` position refers to a y coordinate.\n If set to "paper", the `y` position refers to the distance from\n the bottom of the plotting area in normalized coordinates where\n 0 (1) corresponds to the bottom (top). If set to a y axis ID\n followed by "domain" (separated by a space), the position\n behaves like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the domain of\n that axis: e.g., *y2 domain* refers to the domain of the second\n y axis and a y position of 0.5 refers to the point between the\n bottom and the top of the domain of the second y axis.\n\n The 'yref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['paper']\n - A string that matches one of the following regular expressions:\n ['^y([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n Any\n """\n return self["yref"]\n\n @yref.setter\n def yref(self, val):\n self["yref"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n layer\n Specifies whether images are drawn below or above\n traces. When `xref` and `yref` are both set to `paper`,\n image is drawn below the entire plot area.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n opacity\n Sets the opacity of the image.\n sizex\n Sets the image container size horizontally. The image\n will be sized based on the `position` value. When\n `xref` is set to `paper`, units are sized relative to\n the plot width. When `xref` ends with ` domain`, units\n are sized relative to the axis width.\n sizey\n Sets the image container size vertically. The image\n will be sized based on the `position` value. When\n `yref` is set to `paper`, units are sized relative to\n the plot height. When `yref` ends with ` domain`, units\n are sized relative to the axis height.\n sizing\n Specifies which dimension of the image to constrain.\n source\n Specifies the URL of the image to be used. The URL must\n be accessible from the domain where the plot code is\n run, and can be either relative or absolute.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n visible\n Determines whether or not this image is visible.\n x\n Sets the image's x position. When `xref` is set to\n `paper`, units are sized relative to the plot height.\n See `xref` for more info\n xanchor\n Sets the anchor for the x position\n xref\n Sets the images's x coordinate axis. If set to a x axis\n id (e.g. "x" or "x2"), the `x` position refers to a x\n coordinate. If set to "paper", the `x` position refers\n to the distance from the left of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n left (right). If set to a x axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the left of the\n domain of that axis: e.g., *x2 domain* refers to the\n domain of the second x axis and a x position of 0.5\n refers to the point between the left and the right of\n the domain of the second x axis.\n y\n Sets the image's y position. When `yref` is set to\n `paper`, units are sized relative to the plot height.\n See `yref` for more info\n yanchor\n Sets the anchor for the y position.\n yref\n Sets the images's y coordinate axis. If set to a y axis\n id (e.g. "y" or "y2"), the `y` position refers to a y\n coordinate. If set to "paper", the `y` position refers\n to the distance from the bottom of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n bottom (top). If set to a y axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the\n domain of that axis: e.g., *y2 domain* refers to the\n domain of the second y axis and a y position of 0.5\n refers to the point between the bottom and the top of\n the domain of the second y axis.\n """\n\n def __init__(\n self,\n arg=None,\n layer=None,\n name=None,\n opacity=None,\n sizex=None,\n sizey=None,\n sizing=None,\n source=None,\n templateitemname=None,\n visible=None,\n x=None,\n xanchor=None,\n xref=None,\n y=None,\n yanchor=None,\n yref=None,\n **kwargs,\n ):\n """\n Construct a new Image object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Image`\n layer\n Specifies whether images are drawn below or above\n traces. When `xref` and `yref` are both set to `paper`,\n image is drawn below the entire plot area.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n opacity\n Sets the opacity of the image.\n sizex\n Sets the image container size horizontally. The image\n will be sized based on the `position` value. When\n `xref` is set to `paper`, units are sized relative to\n the plot width. When `xref` ends with ` domain`, units\n are sized relative to the axis width.\n sizey\n Sets the image container size vertically. The image\n will be sized based on the `position` value. When\n `yref` is set to `paper`, units are sized relative to\n the plot height. When `yref` ends with ` domain`, units\n are sized relative to the axis height.\n sizing\n Specifies which dimension of the image to constrain.\n source\n Specifies the URL of the image to be used. The URL must\n be accessible from the domain where the plot code is\n run, and can be either relative or absolute.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n visible\n Determines whether or not this image is visible.\n x\n Sets the image's x position. When `xref` is set to\n `paper`, units are sized relative to the plot height.\n See `xref` for more info\n xanchor\n Sets the anchor for the x position\n xref\n Sets the images's x coordinate axis. If set to a x axis\n id (e.g. "x" or "x2"), the `x` position refers to a x\n coordinate. If set to "paper", the `x` position refers\n to the distance from the left of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n left (right). If set to a x axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the left of the\n domain of that axis: e.g., *x2 domain* refers to the\n domain of the second x axis and a x position of 0.5\n refers to the point between the left and the right of\n the domain of the second x axis.\n y\n Sets the image's y position. When `yref` is set to\n `paper`, units are sized relative to the plot height.\n See `yref` for more info\n yanchor\n Sets the anchor for the y position.\n yref\n Sets the images's y coordinate axis. If set to a y axis\n id (e.g. "y" or "y2"), the `y` position refers to a y\n coordinate. If set to "paper", the `y` position refers\n to the distance from the bottom of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n bottom (top). If set to a y axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the\n domain of that axis: e.g., *y2 domain* refers to the\n domain of the second y axis and a y position of 0.5\n refers to the point between the bottom and the top of\n the domain of the second y axis.\n\n Returns\n -------\n Image\n """\n super().__init__("images")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Image\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Image`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("layer", arg, layer)\n self._set_property("name", arg, name)\n self._set_property("opacity", arg, opacity)\n self._set_property("sizex", arg, sizex)\n self._set_property("sizey", arg, sizey)\n self._set_property("sizing", arg, sizing)\n self._set_property("source", arg, source)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("visible", arg, visible)\n self._set_property("x", arg, x)\n self._set_property("xanchor", arg, xanchor)\n self._set_property("xref", arg, xref)\n self._set_property("y", arg, y)\n self._set_property("yanchor", arg, yanchor)\n self._set_property("yref", arg, yref)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_image.py
_image.py
Python
21,499
0.95
0.090461
0.005576
node-utils
124
2024-03-10T15:10:31.010767
GPL-3.0
false
10e16ab4ac24a4cc2aebc3bc0f77e8a8
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Legend(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.legend"\n _valid_props = {\n "bgcolor",\n "bordercolor",\n "borderwidth",\n "entrywidth",\n "entrywidthmode",\n "font",\n "groupclick",\n "grouptitlefont",\n "indentation",\n "itemclick",\n "itemdoubleclick",\n "itemsizing",\n "itemwidth",\n "orientation",\n "title",\n "tracegroupgap",\n "traceorder",\n "uirevision",\n "valign",\n "visible",\n "x",\n "xanchor",\n "xref",\n "y",\n "yanchor",\n "yref",\n }\n\n @property\n def bgcolor(self):\n """\n Sets the legend background color. Defaults to\n `layout.paper_bgcolor`.\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the color of the border enclosing the legend.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def borderwidth(self):\n """\n Sets the width (in px) of the border enclosing the legend.\n\n The 'borderwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["borderwidth"]\n\n @borderwidth.setter\n def borderwidth(self, val):\n self["borderwidth"] = val\n\n @property\n def entrywidth(self):\n """\n Sets the width (in px or fraction) of the legend. Use 0 to size\n the entry based on the text width, when `entrywidthmode` is set\n to "pixels".\n\n The 'entrywidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["entrywidth"]\n\n @entrywidth.setter\n def entrywidth(self, val):\n self["entrywidth"] = val\n\n @property\n def entrywidthmode(self):\n """\n Determines what entrywidth means.\n\n The 'entrywidthmode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['fraction', 'pixels']\n\n Returns\n -------\n Any\n """\n return self["entrywidthmode"]\n\n @entrywidthmode.setter\n def entrywidthmode(self, val):\n self["entrywidthmode"] = val\n\n @property\n def font(self):\n """\n Sets the font used to text the legend items.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.legend.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.layout.legend.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def groupclick(self):\n """\n Determines the behavior on legend group item click.\n "toggleitem" toggles the visibility of the individual item\n clicked on the graph. "togglegroup" toggles the visibility of\n all items in the same legendgroup as the item clicked on the\n graph.\n\n The 'groupclick' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['toggleitem', 'togglegroup']\n\n Returns\n -------\n Any\n """\n return self["groupclick"]\n\n @groupclick.setter\n def groupclick(self, val):\n self["groupclick"] = val\n\n @property\n def grouptitlefont(self):\n """\n Sets the font for group titles in legend. Defaults to\n `legend.font` with its size increased about 10%.\n\n The 'grouptitlefont' property is an instance of Grouptitlefont\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.legend.Grouptitlefont`\n - A dict of string/value properties that will be passed\n to the Grouptitlefont constructor\n\n Returns\n -------\n plotly.graph_objs.layout.legend.Grouptitlefont\n """\n return self["grouptitlefont"]\n\n @grouptitlefont.setter\n def grouptitlefont(self, val):\n self["grouptitlefont"] = val\n\n @property\n def indentation(self):\n """\n Sets the indentation (in px) of the legend entries.\n\n The 'indentation' property is a number and may be specified as:\n - An int or float in the interval [-15, inf]\n\n Returns\n -------\n int|float\n """\n return self["indentation"]\n\n @indentation.setter\n def indentation(self, val):\n self["indentation"] = val\n\n @property\n def itemclick(self):\n """\n Determines the behavior on legend item click. "toggle" toggles\n the visibility of the item clicked on the graph. "toggleothers"\n makes the clicked item the sole visible item on the graph.\n False disables legend item click interactions.\n\n The 'itemclick' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['toggle', 'toggleothers', False]\n\n Returns\n -------\n Any\n """\n return self["itemclick"]\n\n @itemclick.setter\n def itemclick(self, val):\n self["itemclick"] = val\n\n @property\n def itemdoubleclick(self):\n """\n Determines the behavior on legend item double-click. "toggle"\n toggles the visibility of the item clicked on the graph.\n "toggleothers" makes the clicked item the sole visible item on\n the graph. False disables legend item double-click\n interactions.\n\n The 'itemdoubleclick' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['toggle', 'toggleothers', False]\n\n Returns\n -------\n Any\n """\n return self["itemdoubleclick"]\n\n @itemdoubleclick.setter\n def itemdoubleclick(self, val):\n self["itemdoubleclick"] = val\n\n @property\n def itemsizing(self):\n """\n Determines if the legend items symbols scale with their\n corresponding "trace" attributes or remain "constant"\n independent of the symbol size on the graph.\n\n The 'itemsizing' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['trace', 'constant']\n\n Returns\n -------\n Any\n """\n return self["itemsizing"]\n\n @itemsizing.setter\n def itemsizing(self, val):\n self["itemsizing"] = val\n\n @property\n def itemwidth(self):\n """\n Sets the width (in px) of the legend item symbols (the part\n other than the title.text).\n\n The 'itemwidth' property is a number and may be specified as:\n - An int or float in the interval [30, inf]\n\n Returns\n -------\n int|float\n """\n return self["itemwidth"]\n\n @itemwidth.setter\n def itemwidth(self, val):\n self["itemwidth"] = val\n\n @property\n def orientation(self):\n """\n Sets the orientation of the legend.\n\n The 'orientation' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['v', 'h']\n\n Returns\n -------\n Any\n """\n return self["orientation"]\n\n @orientation.setter\n def orientation(self, val):\n self["orientation"] = val\n\n @property\n def title(self):\n """\n The 'title' property is an instance of Title\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.legend.Title`\n - A dict of string/value properties that will be passed\n to the Title constructor\n\n Returns\n -------\n plotly.graph_objs.layout.legend.Title\n """\n return self["title"]\n\n @title.setter\n def title(self, val):\n self["title"] = val\n\n @property\n def tracegroupgap(self):\n """\n Sets the amount of vertical space (in px) between legend\n groups.\n\n The 'tracegroupgap' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["tracegroupgap"]\n\n @tracegroupgap.setter\n def tracegroupgap(self, val):\n self["tracegroupgap"] = val\n\n @property\n def traceorder(self):\n """\n Determines the order at which the legend items are displayed.\n If "normal", the items are displayed top-to-bottom in the same\n order as the input data. If "reversed", the items are displayed\n in the opposite order as "normal". If "grouped", the items are\n displayed in groups (when a trace `legendgroup` is provided).\n if "grouped+reversed", the items are displayed in the opposite\n order as "grouped".\n\n The 'traceorder' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['reversed', 'grouped'] joined with '+' characters\n (e.g. 'reversed+grouped')\n OR exactly one of ['normal'] (e.g. 'normal')\n\n Returns\n -------\n Any\n """\n return self["traceorder"]\n\n @traceorder.setter\n def traceorder(self, val):\n self["traceorder"] = val\n\n @property\n def uirevision(self):\n """\n Controls persistence of legend-driven changes in trace and pie\n label visibility. Defaults to `layout.uirevision`.\n\n The 'uirevision' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["uirevision"]\n\n @uirevision.setter\n def uirevision(self, val):\n self["uirevision"] = val\n\n @property\n def valign(self):\n """\n Sets the vertical alignment of the symbols with respect to\n their associated text.\n\n The 'valign' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['top', 'middle', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["valign"]\n\n @valign.setter\n def valign(self, val):\n self["valign"] = val\n\n @property\n def visible(self):\n """\n Determines whether or not this legend is visible.\n\n The 'visible' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def x(self):\n """\n Sets the x position with respect to `xref` (in normalized\n coordinates) of the legend. When `xref` is "paper", defaults to\n 1.02 for vertical legends and defaults to 0 for horizontal\n legends. When `xref` is "container", defaults to 1 for vertical\n legends and defaults to 0 for horizontal legends. Must be\n between 0 and 1 if `xref` is "container". and between "-2" and\n 3 if `xref` is "paper".\n\n The 'x' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def xanchor(self):\n """\n Sets the legend's horizontal position anchor. This anchor binds\n the `x` position to the "left", "center" or "right" of the\n legend. Value "auto" anchors legends to the right for `x`\n values greater than or equal to 2/3, anchors legends to the\n left for `x` values less than or equal to 1/3 and anchors\n legends with respect to their center otherwise.\n\n The 'xanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'left', 'center', 'right']\n\n Returns\n -------\n Any\n """\n return self["xanchor"]\n\n @xanchor.setter\n def xanchor(self, val):\n self["xanchor"] = val\n\n @property\n def xref(self):\n """\n Sets the container `x` refers to. "container" spans the entire\n `width` of the plot. "paper" refers to the width of the\n plotting area only.\n\n The 'xref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['container', 'paper']\n\n Returns\n -------\n Any\n """\n return self["xref"]\n\n @xref.setter\n def xref(self, val):\n self["xref"] = val\n\n @property\n def y(self):\n """\n Sets the y position with respect to `yref` (in normalized\n coordinates) of the legend. When `yref` is "paper", defaults to\n 1 for vertical legends, defaults to "-0.1" for horizontal\n legends on graphs w/o range sliders and defaults to 1.1 for\n horizontal legends on graph with one or multiple range sliders.\n When `yref` is "container", defaults to 1. Must be between 0\n and 1 if `yref` is "container" and between "-2" and 3 if `yref`\n is "paper".\n\n The 'y' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def yanchor(self):\n """\n Sets the legend's vertical position anchor This anchor binds\n the `y` position to the "top", "middle" or "bottom" of the\n legend. Value "auto" anchors legends at their bottom for `y`\n values less than or equal to 1/3, anchors legends to at their\n top for `y` values greater than or equal to 2/3 and anchors\n legends with respect to their middle otherwise.\n\n The 'yanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'top', 'middle', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["yanchor"]\n\n @yanchor.setter\n def yanchor(self, val):\n self["yanchor"] = val\n\n @property\n def yref(self):\n """\n Sets the container `y` refers to. "container" spans the entire\n `height` of the plot. "paper" refers to the height of the\n plotting area only.\n\n The 'yref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['container', 'paper']\n\n Returns\n -------\n Any\n """\n return self["yref"]\n\n @yref.setter\n def yref(self, val):\n self["yref"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n bgcolor\n Sets the legend background color. Defaults to\n `layout.paper_bgcolor`.\n bordercolor\n Sets the color of the border enclosing the legend.\n borderwidth\n Sets the width (in px) of the border enclosing the\n legend.\n entrywidth\n Sets the width (in px or fraction) of the legend. Use 0\n to size the entry based on the text width, when\n `entrywidthmode` is set to "pixels".\n entrywidthmode\n Determines what entrywidth means.\n font\n Sets the font used to text the legend items.\n groupclick\n Determines the behavior on legend group item click.\n "toggleitem" toggles the visibility of the individual\n item clicked on the graph. "togglegroup" toggles the\n visibility of all items in the same legendgroup as the\n item clicked on the graph.\n grouptitlefont\n Sets the font for group titles in legend. Defaults to\n `legend.font` with its size increased about 10%.\n indentation\n Sets the indentation (in px) of the legend entries.\n itemclick\n Determines the behavior on legend item click. "toggle"\n toggles the visibility of the item clicked on the\n graph. "toggleothers" makes the clicked item the sole\n visible item on the graph. False disables legend item\n click interactions.\n itemdoubleclick\n Determines the behavior on legend item double-click.\n "toggle" toggles the visibility of the item clicked on\n the graph. "toggleothers" makes the clicked item the\n sole visible item on the graph. False disables legend\n item double-click interactions.\n itemsizing\n Determines if the legend items symbols scale with their\n corresponding "trace" attributes or remain "constant"\n independent of the symbol size on the graph.\n itemwidth\n Sets the width (in px) of the legend item symbols (the\n part other than the title.text).\n orientation\n Sets the orientation of the legend.\n title\n :class:`plotly.graph_objects.layout.legend.Title`\n instance or dict with compatible properties\n tracegroupgap\n Sets the amount of vertical space (in px) between\n legend groups.\n traceorder\n Determines the order at which the legend items are\n displayed. If "normal", the items are displayed top-to-\n bottom in the same order as the input data. If\n "reversed", the items are displayed in the opposite\n order as "normal". If "grouped", the items are\n displayed in groups (when a trace `legendgroup` is\n provided). if "grouped+reversed", the items are\n displayed in the opposite order as "grouped".\n uirevision\n Controls persistence of legend-driven changes in trace\n and pie label visibility. Defaults to\n `layout.uirevision`.\n valign\n Sets the vertical alignment of the symbols with respect\n to their associated text.\n visible\n Determines whether or not this legend is visible.\n x\n Sets the x position with respect to `xref` (in\n normalized coordinates) of the legend. When `xref` is\n "paper", defaults to 1.02 for vertical legends and\n defaults to 0 for horizontal legends. When `xref` is\n "container", defaults to 1 for vertical legends and\n defaults to 0 for horizontal legends. Must be between 0\n and 1 if `xref` is "container". and between "-2" and 3\n if `xref` is "paper".\n xanchor\n Sets the legend's horizontal position anchor. This\n anchor binds the `x` position to the "left", "center"\n or "right" of the legend. Value "auto" anchors legends\n to the right for `x` values greater than or equal to\n 2/3, anchors legends to the left for `x` values less\n than or equal to 1/3 and anchors legends with respect\n to their center otherwise.\n xref\n Sets the container `x` refers to. "container" spans the\n entire `width` of the plot. "paper" refers to the width\n of the plotting area only.\n y\n Sets the y position with respect to `yref` (in\n normalized coordinates) of the legend. When `yref` is\n "paper", defaults to 1 for vertical legends, defaults\n to "-0.1" for horizontal legends on graphs w/o range\n sliders and defaults to 1.1 for horizontal legends on\n graph with one or multiple range sliders. When `yref`\n is "container", defaults to 1. Must be between 0 and 1\n if `yref` is "container" and between "-2" and 3 if\n `yref` is "paper".\n yanchor\n Sets the legend's vertical position anchor This anchor\n binds the `y` position to the "top", "middle" or\n "bottom" of the legend. Value "auto" anchors legends at\n their bottom for `y` values less than or equal to 1/3,\n anchors legends to at their top for `y` values greater\n than or equal to 2/3 and anchors legends with respect\n to their middle otherwise.\n yref\n Sets the container `y` refers to. "container" spans the\n entire `height` of the plot. "paper" refers to the\n height of the plotting area only.\n """\n\n def __init__(\n self,\n arg=None,\n bgcolor=None,\n bordercolor=None,\n borderwidth=None,\n entrywidth=None,\n entrywidthmode=None,\n font=None,\n groupclick=None,\n grouptitlefont=None,\n indentation=None,\n itemclick=None,\n itemdoubleclick=None,\n itemsizing=None,\n itemwidth=None,\n orientation=None,\n title=None,\n tracegroupgap=None,\n traceorder=None,\n uirevision=None,\n valign=None,\n visible=None,\n x=None,\n xanchor=None,\n xref=None,\n y=None,\n yanchor=None,\n yref=None,\n **kwargs,\n ):\n """\n Construct a new Legend object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Legend`\n bgcolor\n Sets the legend background color. Defaults to\n `layout.paper_bgcolor`.\n bordercolor\n Sets the color of the border enclosing the legend.\n borderwidth\n Sets the width (in px) of the border enclosing the\n legend.\n entrywidth\n Sets the width (in px or fraction) of the legend. Use 0\n to size the entry based on the text width, when\n `entrywidthmode` is set to "pixels".\n entrywidthmode\n Determines what entrywidth means.\n font\n Sets the font used to text the legend items.\n groupclick\n Determines the behavior on legend group item click.\n "toggleitem" toggles the visibility of the individual\n item clicked on the graph. "togglegroup" toggles the\n visibility of all items in the same legendgroup as the\n item clicked on the graph.\n grouptitlefont\n Sets the font for group titles in legend. Defaults to\n `legend.font` with its size increased about 10%.\n indentation\n Sets the indentation (in px) of the legend entries.\n itemclick\n Determines the behavior on legend item click. "toggle"\n toggles the visibility of the item clicked on the\n graph. "toggleothers" makes the clicked item the sole\n visible item on the graph. False disables legend item\n click interactions.\n itemdoubleclick\n Determines the behavior on legend item double-click.\n "toggle" toggles the visibility of the item clicked on\n the graph. "toggleothers" makes the clicked item the\n sole visible item on the graph. False disables legend\n item double-click interactions.\n itemsizing\n Determines if the legend items symbols scale with their\n corresponding "trace" attributes or remain "constant"\n independent of the symbol size on the graph.\n itemwidth\n Sets the width (in px) of the legend item symbols (the\n part other than the title.text).\n orientation\n Sets the orientation of the legend.\n title\n :class:`plotly.graph_objects.layout.legend.Title`\n instance or dict with compatible properties\n tracegroupgap\n Sets the amount of vertical space (in px) between\n legend groups.\n traceorder\n Determines the order at which the legend items are\n displayed. If "normal", the items are displayed top-to-\n bottom in the same order as the input data. If\n "reversed", the items are displayed in the opposite\n order as "normal". If "grouped", the items are\n displayed in groups (when a trace `legendgroup` is\n provided). if "grouped+reversed", the items are\n displayed in the opposite order as "grouped".\n uirevision\n Controls persistence of legend-driven changes in trace\n and pie label visibility. Defaults to\n `layout.uirevision`.\n valign\n Sets the vertical alignment of the symbols with respect\n to their associated text.\n visible\n Determines whether or not this legend is visible.\n x\n Sets the x position with respect to `xref` (in\n normalized coordinates) of the legend. When `xref` is\n "paper", defaults to 1.02 for vertical legends and\n defaults to 0 for horizontal legends. When `xref` is\n "container", defaults to 1 for vertical legends and\n defaults to 0 for horizontal legends. Must be between 0\n and 1 if `xref` is "container". and between "-2" and 3\n if `xref` is "paper".\n xanchor\n Sets the legend's horizontal position anchor. This\n anchor binds the `x` position to the "left", "center"\n or "right" of the legend. Value "auto" anchors legends\n to the right for `x` values greater than or equal to\n 2/3, anchors legends to the left for `x` values less\n than or equal to 1/3 and anchors legends with respect\n to their center otherwise.\n xref\n Sets the container `x` refers to. "container" spans the\n entire `width` of the plot. "paper" refers to the width\n of the plotting area only.\n y\n Sets the y position with respect to `yref` (in\n normalized coordinates) of the legend. When `yref` is\n "paper", defaults to 1 for vertical legends, defaults\n to "-0.1" for horizontal legends on graphs w/o range\n sliders and defaults to 1.1 for horizontal legends on\n graph with one or multiple range sliders. When `yref`\n is "container", defaults to 1. Must be between 0 and 1\n if `yref` is "container" and between "-2" and 3 if\n `yref` is "paper".\n yanchor\n Sets the legend's vertical position anchor This anchor\n binds the `y` position to the "top", "middle" or\n "bottom" of the legend. Value "auto" anchors legends at\n their bottom for `y` values less than or equal to 1/3,\n anchors legends to at their top for `y` values greater\n than or equal to 2/3 and anchors legends with respect\n to their middle otherwise.\n yref\n Sets the container `y` refers to. "container" spans the\n entire `height` of the plot. "paper" refers to the\n height of the plotting area only.\n\n Returns\n -------\n Legend\n """\n super().__init__("legend")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Legend\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Legend`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("borderwidth", arg, borderwidth)\n self._set_property("entrywidth", arg, entrywidth)\n self._set_property("entrywidthmode", arg, entrywidthmode)\n self._set_property("font", arg, font)\n self._set_property("groupclick", arg, groupclick)\n self._set_property("grouptitlefont", arg, grouptitlefont)\n self._set_property("indentation", arg, indentation)\n self._set_property("itemclick", arg, itemclick)\n self._set_property("itemdoubleclick", arg, itemdoubleclick)\n self._set_property("itemsizing", arg, itemsizing)\n self._set_property("itemwidth", arg, itemwidth)\n self._set_property("orientation", arg, orientation)\n self._set_property("title", arg, title)\n self._set_property("tracegroupgap", arg, tracegroupgap)\n self._set_property("traceorder", arg, traceorder)\n self._set_property("uirevision", arg, uirevision)\n self._set_property("valign", arg, valign)\n self._set_property("visible", arg, visible)\n self._set_property("x", arg, x)\n self._set_property("xanchor", arg, xanchor)\n self._set_property("xref", arg, xref)\n self._set_property("y", arg, y)\n self._set_property("yanchor", arg, yanchor)\n self._set_property("yref", arg, yref)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_legend.py
_legend.py
Python
30,914
0.95
0.131004
0.003736
react-lib
808
2025-03-01T23:20:16.553029
BSD-3-Clause
false
4d4323a36ba12d44066e5586f84e7af3
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Map(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.map"\n _valid_props = {\n "bearing",\n "bounds",\n "center",\n "domain",\n "layerdefaults",\n "layers",\n "pitch",\n "style",\n "uirevision",\n "zoom",\n }\n\n @property\n def bearing(self):\n """\n Sets the bearing angle of the map in degrees counter-clockwise\n from North (map.bearing).\n\n The 'bearing' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["bearing"]\n\n @bearing.setter\n def bearing(self, val):\n self["bearing"] = val\n\n @property\n def bounds(self):\n """\n The 'bounds' property is an instance of Bounds\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.map.Bounds`\n - A dict of string/value properties that will be passed\n to the Bounds constructor\n\n Returns\n -------\n plotly.graph_objs.layout.map.Bounds\n """\n return self["bounds"]\n\n @bounds.setter\n def bounds(self, val):\n self["bounds"] = val\n\n @property\n def center(self):\n """\n The 'center' property is an instance of Center\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.map.Center`\n - A dict of string/value properties that will be passed\n to the Center constructor\n\n Returns\n -------\n plotly.graph_objs.layout.map.Center\n """\n return self["center"]\n\n @center.setter\n def center(self, val):\n self["center"] = val\n\n @property\n def domain(self):\n """\n The 'domain' property is an instance of Domain\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.map.Domain`\n - A dict of string/value properties that will be passed\n to the Domain constructor\n\n Returns\n -------\n plotly.graph_objs.layout.map.Domain\n """\n return self["domain"]\n\n @domain.setter\n def domain(self, val):\n self["domain"] = val\n\n @property\n def layers(self):\n """\n The 'layers' property is a tuple of instances of\n Layer that may be specified as:\n - A list or tuple of instances of plotly.graph_objs.layout.map.Layer\n - A list or tuple of dicts of string/value properties that\n will be passed to the Layer constructor\n\n Returns\n -------\n tuple[plotly.graph_objs.layout.map.Layer]\n """\n return self["layers"]\n\n @layers.setter\n def layers(self, val):\n self["layers"] = val\n\n @property\n def layerdefaults(self):\n """\n When used in a template (as\n layout.template.layout.map.layerdefaults), sets the default\n property values to use for elements of layout.map.layers\n\n The 'layerdefaults' property is an instance of Layer\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.map.Layer`\n - A dict of string/value properties that will be passed\n to the Layer constructor\n\n Returns\n -------\n plotly.graph_objs.layout.map.Layer\n """\n return self["layerdefaults"]\n\n @layerdefaults.setter\n def layerdefaults(self, val):\n self["layerdefaults"] = val\n\n @property\n def pitch(self):\n """\n Sets the pitch angle of the map (in degrees, where 0 means\n perpendicular to the surface of the map) (map.pitch).\n\n The 'pitch' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["pitch"]\n\n @pitch.setter\n def pitch(self, val):\n self["pitch"] = val\n\n @property\n def style(self):\n """\n Defines the map layers that are rendered by default below the\n trace layers defined in `data`, which are themselves by default\n rendered below the layers defined in `layout.map.layers`.\n These layers can be defined either explicitly as a Map Style\n object which can contain multiple layer definitions that load\n data from any public or private Tile Map Service (TMS or XYZ)\n or Web Map Service (WMS) or implicitly by using one of the\n built-in style objects which use WMSes or by using a custom\n style URL Map Style objects are of the form described in the\n MapLibre GL JS documentation available at\n https://maplibre.org/maplibre-style-spec/ The built-in\n plotly.js styles objects are: basic, carto-darkmatter, carto-\n darkmatter-nolabels, carto-positron, carto-positron-nolabels,\n carto-voyager, carto-voyager-nolabels, dark, light, open-\n street-map, outdoors, satellite, satellite-streets, streets,\n white-bg.\n\n The 'style' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def uirevision(self):\n """\n Controls persistence of user-driven changes in the view:\n `center`, `zoom`, `bearing`, `pitch`. Defaults to\n `layout.uirevision`.\n\n The 'uirevision' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["uirevision"]\n\n @uirevision.setter\n def uirevision(self, val):\n self["uirevision"] = val\n\n @property\n def zoom(self):\n """\n Sets the zoom level of the map (map.zoom).\n\n The 'zoom' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["zoom"]\n\n @zoom.setter\n def zoom(self, val):\n self["zoom"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n bearing\n Sets the bearing angle of the map in degrees counter-\n clockwise from North (map.bearing).\n bounds\n :class:`plotly.graph_objects.layout.map.Bounds`\n instance or dict with compatible properties\n center\n :class:`plotly.graph_objects.layout.map.Center`\n instance or dict with compatible properties\n domain\n :class:`plotly.graph_objects.layout.map.Domain`\n instance or dict with compatible properties\n layers\n A tuple of\n :class:`plotly.graph_objects.layout.map.Layer`\n instances or dicts with compatible properties\n layerdefaults\n When used in a template (as\n layout.template.layout.map.layerdefaults), sets the\n default property values to use for elements of\n layout.map.layers\n pitch\n Sets the pitch angle of the map (in degrees, where 0\n means perpendicular to the surface of the map)\n (map.pitch).\n style\n Defines the map layers that are rendered by default\n below the trace layers defined in `data`, which are\n themselves by default rendered below the layers defined\n in `layout.map.layers`. These layers can be defined\n either explicitly as a Map Style object which can\n contain multiple layer definitions that load data from\n any public or private Tile Map Service (TMS or XYZ) or\n Web Map Service (WMS) or implicitly by using one of the\n built-in style objects which use WMSes or by using a\n custom style URL Map Style objects are of the form\n described in the MapLibre GL JS documentation available\n at https://maplibre.org/maplibre-style-spec/ The\n built-in plotly.js styles objects are: basic, carto-\n darkmatter, carto-darkmatter-nolabels, carto-positron,\n carto-positron-nolabels, carto-voyager, carto-voyager-\n nolabels, dark, light, open-street-map, outdoors,\n satellite, satellite-streets, streets, white-bg.\n uirevision\n Controls persistence of user-driven changes in the\n view: `center`, `zoom`, `bearing`, `pitch`. Defaults to\n `layout.uirevision`.\n zoom\n Sets the zoom level of the map (map.zoom).\n """\n\n def __init__(\n self,\n arg=None,\n bearing=None,\n bounds=None,\n center=None,\n domain=None,\n layers=None,\n layerdefaults=None,\n pitch=None,\n style=None,\n uirevision=None,\n zoom=None,\n **kwargs,\n ):\n """\n Construct a new Map object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Map`\n bearing\n Sets the bearing angle of the map in degrees counter-\n clockwise from North (map.bearing).\n bounds\n :class:`plotly.graph_objects.layout.map.Bounds`\n instance or dict with compatible properties\n center\n :class:`plotly.graph_objects.layout.map.Center`\n instance or dict with compatible properties\n domain\n :class:`plotly.graph_objects.layout.map.Domain`\n instance or dict with compatible properties\n layers\n A tuple of\n :class:`plotly.graph_objects.layout.map.Layer`\n instances or dicts with compatible properties\n layerdefaults\n When used in a template (as\n layout.template.layout.map.layerdefaults), sets the\n default property values to use for elements of\n layout.map.layers\n pitch\n Sets the pitch angle of the map (in degrees, where 0\n means perpendicular to the surface of the map)\n (map.pitch).\n style\n Defines the map layers that are rendered by default\n below the trace layers defined in `data`, which are\n themselves by default rendered below the layers defined\n in `layout.map.layers`. These layers can be defined\n either explicitly as a Map Style object which can\n contain multiple layer definitions that load data from\n any public or private Tile Map Service (TMS or XYZ) or\n Web Map Service (WMS) or implicitly by using one of the\n built-in style objects which use WMSes or by using a\n custom style URL Map Style objects are of the form\n described in the MapLibre GL JS documentation available\n at https://maplibre.org/maplibre-style-spec/ The\n built-in plotly.js styles objects are: basic, carto-\n darkmatter, carto-darkmatter-nolabels, carto-positron,\n carto-positron-nolabels, carto-voyager, carto-voyager-\n nolabels, dark, light, open-street-map, outdoors,\n satellite, satellite-streets, streets, white-bg.\n uirevision\n Controls persistence of user-driven changes in the\n view: `center`, `zoom`, `bearing`, `pitch`. Defaults to\n `layout.uirevision`.\n zoom\n Sets the zoom level of the map (map.zoom).\n\n Returns\n -------\n Map\n """\n super().__init__("map")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Map\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Map`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("bearing", arg, bearing)\n self._set_property("bounds", arg, bounds)\n self._set_property("center", arg, center)\n self._set_property("domain", arg, domain)\n self._set_property("layers", arg, layers)\n self._set_property("layerdefaults", arg, layerdefaults)\n self._set_property("pitch", arg, pitch)\n self._set_property("style", arg, style)\n self._set_property("uirevision", arg, uirevision)\n self._set_property("zoom", arg, zoom)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_map.py
_map.py
Python
13,051
0.95
0.107143
0.008671
node-utils
585
2024-07-23T15:32:56.766701
BSD-3-Clause
false
7a0d8e1e93e566f6ce50a1482fb05498
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Mapbox(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.mapbox"\n _valid_props = {\n "accesstoken",\n "bearing",\n "bounds",\n "center",\n "domain",\n "layerdefaults",\n "layers",\n "pitch",\n "style",\n "uirevision",\n "zoom",\n }\n\n @property\n def accesstoken(self):\n """\n Sets the mapbox access token to be used for this mapbox map.\n Alternatively, the mapbox access token can be set in the\n configuration options under `mapboxAccessToken`. Note that\n accessToken are only required when `style` (e.g with values :\n basic, streets, outdoors, light, dark, satellite, satellite-\n streets ) and/or a layout layer references the Mapbox server.\n\n The 'accesstoken' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["accesstoken"]\n\n @accesstoken.setter\n def accesstoken(self, val):\n self["accesstoken"] = val\n\n @property\n def bearing(self):\n """\n Sets the bearing angle of the map in degrees counter-clockwise\n from North (mapbox.bearing).\n\n The 'bearing' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["bearing"]\n\n @bearing.setter\n def bearing(self, val):\n self["bearing"] = val\n\n @property\n def bounds(self):\n """\n The 'bounds' property is an instance of Bounds\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.mapbox.Bounds`\n - A dict of string/value properties that will be passed\n to the Bounds constructor\n\n Returns\n -------\n plotly.graph_objs.layout.mapbox.Bounds\n """\n return self["bounds"]\n\n @bounds.setter\n def bounds(self, val):\n self["bounds"] = val\n\n @property\n def center(self):\n """\n The 'center' property is an instance of Center\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.mapbox.Center`\n - A dict of string/value properties that will be passed\n to the Center constructor\n\n Returns\n -------\n plotly.graph_objs.layout.mapbox.Center\n """\n return self["center"]\n\n @center.setter\n def center(self, val):\n self["center"] = val\n\n @property\n def domain(self):\n """\n The 'domain' property is an instance of Domain\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.mapbox.Domain`\n - A dict of string/value properties that will be passed\n to the Domain constructor\n\n Returns\n -------\n plotly.graph_objs.layout.mapbox.Domain\n """\n return self["domain"]\n\n @domain.setter\n def domain(self, val):\n self["domain"] = val\n\n @property\n def layers(self):\n """\n The 'layers' property is a tuple of instances of\n Layer that may be specified as:\n - A list or tuple of instances of plotly.graph_objs.layout.mapbox.Layer\n - A list or tuple of dicts of string/value properties that\n will be passed to the Layer constructor\n\n Returns\n -------\n tuple[plotly.graph_objs.layout.mapbox.Layer]\n """\n return self["layers"]\n\n @layers.setter\n def layers(self, val):\n self["layers"] = val\n\n @property\n def layerdefaults(self):\n """\n When used in a template (as\n layout.template.layout.mapbox.layerdefaults), sets the default\n property values to use for elements of layout.mapbox.layers\n\n The 'layerdefaults' property is an instance of Layer\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.mapbox.Layer`\n - A dict of string/value properties that will be passed\n to the Layer constructor\n\n Returns\n -------\n plotly.graph_objs.layout.mapbox.Layer\n """\n return self["layerdefaults"]\n\n @layerdefaults.setter\n def layerdefaults(self, val):\n self["layerdefaults"] = val\n\n @property\n def pitch(self):\n """\n Sets the pitch angle of the map (in degrees, where 0 means\n perpendicular to the surface of the map) (mapbox.pitch).\n\n The 'pitch' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["pitch"]\n\n @pitch.setter\n def pitch(self, val):\n self["pitch"] = val\n\n @property\n def style(self):\n """\n Defines the map layers that are rendered by default below the\n trace layers defined in `data`, which are themselves by default\n rendered below the layers defined in `layout.mapbox.layers`.\n These layers can be defined either explicitly as a Mapbox Style\n object which can contain multiple layer definitions that load\n data from any public or private Tile Map Service (TMS or XYZ)\n or Web Map Service (WMS) or implicitly by using one of the\n built-in style objects which use WMSes which do not require any\n access tokens, or by using a default Mapbox style or custom\n Mapbox style URL, both of which require a Mapbox access token\n Note that Mapbox access token can be set in the `accesstoken`\n attribute or in the `mapboxAccessToken` config option. Mapbox\n Style objects are of the form described in the Mapbox GL JS\n documentation available at https://docs.mapbox.com/mapbox-gl-\n js/style-spec The built-in plotly.js styles objects are:\n carto-darkmatter, carto-positron, open-street-map, stamen-\n terrain, stamen-toner, stamen-watercolor, white-bg The built-\n in Mapbox styles are: basic, streets, outdoors, light, dark,\n satellite, satellite-streets Mapbox style URLs are of the\n form: mapbox://mapbox.mapbox-<name>-<version>\n\n The 'style' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def uirevision(self):\n """\n Controls persistence of user-driven changes in the view:\n `center`, `zoom`, `bearing`, `pitch`. Defaults to\n `layout.uirevision`.\n\n The 'uirevision' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["uirevision"]\n\n @uirevision.setter\n def uirevision(self, val):\n self["uirevision"] = val\n\n @property\n def zoom(self):\n """\n Sets the zoom level of the map (mapbox.zoom).\n\n The 'zoom' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["zoom"]\n\n @zoom.setter\n def zoom(self, val):\n self["zoom"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n accesstoken\n Sets the mapbox access token to be used for this mapbox\n map. Alternatively, the mapbox access token can be set\n in the configuration options under `mapboxAccessToken`.\n Note that accessToken are only required when `style`\n (e.g with values : basic, streets, outdoors, light,\n dark, satellite, satellite-streets ) and/or a layout\n layer references the Mapbox server.\n bearing\n Sets the bearing angle of the map in degrees counter-\n clockwise from North (mapbox.bearing).\n bounds\n :class:`plotly.graph_objects.layout.mapbox.Bounds`\n instance or dict with compatible properties\n center\n :class:`plotly.graph_objects.layout.mapbox.Center`\n instance or dict with compatible properties\n domain\n :class:`plotly.graph_objects.layout.mapbox.Domain`\n instance or dict with compatible properties\n layers\n A tuple of\n :class:`plotly.graph_objects.layout.mapbox.Layer`\n instances or dicts with compatible properties\n layerdefaults\n When used in a template (as\n layout.template.layout.mapbox.layerdefaults), sets the\n default property values to use for elements of\n layout.mapbox.layers\n pitch\n Sets the pitch angle of the map (in degrees, where 0\n means perpendicular to the surface of the map)\n (mapbox.pitch).\n style\n Defines the map layers that are rendered by default\n below the trace layers defined in `data`, which are\n themselves by default rendered below the layers defined\n in `layout.mapbox.layers`. These layers can be defined\n either explicitly as a Mapbox Style object which can\n contain multiple layer definitions that load data from\n any public or private Tile Map Service (TMS or XYZ) or\n Web Map Service (WMS) or implicitly by using one of the\n built-in style objects which use WMSes which do not\n require any access tokens, or by using a default Mapbox\n style or custom Mapbox style URL, both of which require\n a Mapbox access token Note that Mapbox access token\n can be set in the `accesstoken` attribute or in the\n `mapboxAccessToken` config option. Mapbox Style\n objects are of the form described in the Mapbox GL JS\n documentation available at\n https://docs.mapbox.com/mapbox-gl-js/style-spec The\n built-in plotly.js styles objects are: carto-\n darkmatter, carto-positron, open-street-map, stamen-\n terrain, stamen-toner, stamen-watercolor, white-bg The\n built-in Mapbox styles are: basic, streets, outdoors,\n light, dark, satellite, satellite-streets Mapbox style\n URLs are of the form:\n mapbox://mapbox.mapbox-<name>-<version>\n uirevision\n Controls persistence of user-driven changes in the\n view: `center`, `zoom`, `bearing`, `pitch`. Defaults to\n `layout.uirevision`.\n zoom\n Sets the zoom level of the map (mapbox.zoom).\n """\n\n def __init__(\n self,\n arg=None,\n accesstoken=None,\n bearing=None,\n bounds=None,\n center=None,\n domain=None,\n layers=None,\n layerdefaults=None,\n pitch=None,\n style=None,\n uirevision=None,\n zoom=None,\n **kwargs,\n ):\n """\n Construct a new Mapbox object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Mapbox`\n accesstoken\n Sets the mapbox access token to be used for this mapbox\n map. Alternatively, the mapbox access token can be set\n in the configuration options under `mapboxAccessToken`.\n Note that accessToken are only required when `style`\n (e.g with values : basic, streets, outdoors, light,\n dark, satellite, satellite-streets ) and/or a layout\n layer references the Mapbox server.\n bearing\n Sets the bearing angle of the map in degrees counter-\n clockwise from North (mapbox.bearing).\n bounds\n :class:`plotly.graph_objects.layout.mapbox.Bounds`\n instance or dict with compatible properties\n center\n :class:`plotly.graph_objects.layout.mapbox.Center`\n instance or dict with compatible properties\n domain\n :class:`plotly.graph_objects.layout.mapbox.Domain`\n instance or dict with compatible properties\n layers\n A tuple of\n :class:`plotly.graph_objects.layout.mapbox.Layer`\n instances or dicts with compatible properties\n layerdefaults\n When used in a template (as\n layout.template.layout.mapbox.layerdefaults), sets the\n default property values to use for elements of\n layout.mapbox.layers\n pitch\n Sets the pitch angle of the map (in degrees, where 0\n means perpendicular to the surface of the map)\n (mapbox.pitch).\n style\n Defines the map layers that are rendered by default\n below the trace layers defined in `data`, which are\n themselves by default rendered below the layers defined\n in `layout.mapbox.layers`. These layers can be defined\n either explicitly as a Mapbox Style object which can\n contain multiple layer definitions that load data from\n any public or private Tile Map Service (TMS or XYZ) or\n Web Map Service (WMS) or implicitly by using one of the\n built-in style objects which use WMSes which do not\n require any access tokens, or by using a default Mapbox\n style or custom Mapbox style URL, both of which require\n a Mapbox access token Note that Mapbox access token\n can be set in the `accesstoken` attribute or in the\n `mapboxAccessToken` config option. Mapbox Style\n objects are of the form described in the Mapbox GL JS\n documentation available at\n https://docs.mapbox.com/mapbox-gl-js/style-spec The\n built-in plotly.js styles objects are: carto-\n darkmatter, carto-positron, open-street-map, stamen-\n terrain, stamen-toner, stamen-watercolor, white-bg The\n built-in Mapbox styles are: basic, streets, outdoors,\n light, dark, satellite, satellite-streets Mapbox style\n URLs are of the form:\n mapbox://mapbox.mapbox-<name>-<version>\n uirevision\n Controls persistence of user-driven changes in the\n view: `center`, `zoom`, `bearing`, `pitch`. Defaults to\n `layout.uirevision`.\n zoom\n Sets the zoom level of the map (mapbox.zoom).\n\n Returns\n -------\n Mapbox\n """\n super().__init__("mapbox")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Mapbox\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Mapbox`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("accesstoken", arg, accesstoken)\n self._set_property("bearing", arg, bearing)\n self._set_property("bounds", arg, bounds)\n self._set_property("center", arg, center)\n self._set_property("domain", arg, domain)\n self._set_property("layers", arg, layers)\n self._set_property("layerdefaults", arg, layerdefaults)\n self._set_property("pitch", arg, pitch)\n self._set_property("style", arg, style)\n self._set_property("uirevision", arg, uirevision)\n self._set_property("zoom", arg, zoom)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_mapbox.py
_mapbox.py
Python
16,101
0.95
0.103982
0.007463
node-utils
211
2024-12-14T17:21:45.743724
GPL-3.0
false
d59e15cf1c45ac15b828653dbc4f704d
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Margin(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.margin"\n _valid_props = {"autoexpand", "b", "l", "pad", "r", "t"}\n\n @property\n def autoexpand(self):\n """\n Turns on/off margin expansion computations. Legends, colorbars,\n updatemenus, sliders, axis rangeselector and rangeslider are\n allowed to push the margins by defaults.\n\n The 'autoexpand' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["autoexpand"]\n\n @autoexpand.setter\n def autoexpand(self, val):\n self["autoexpand"] = val\n\n @property\n def b(self):\n """\n Sets the bottom margin (in px).\n\n The 'b' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["b"]\n\n @b.setter\n def b(self, val):\n self["b"] = val\n\n @property\n def l(self):\n """\n Sets the left margin (in px).\n\n The 'l' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["l"]\n\n @l.setter\n def l(self, val):\n self["l"] = val\n\n @property\n def pad(self):\n """\n Sets the amount of padding (in px) between the plotting area\n and the axis lines\n\n The 'pad' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["pad"]\n\n @pad.setter\n def pad(self, val):\n self["pad"] = val\n\n @property\n def r(self):\n """\n Sets the right margin (in px).\n\n The 'r' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["r"]\n\n @r.setter\n def r(self, val):\n self["r"] = val\n\n @property\n def t(self):\n """\n Sets the top margin (in px).\n\n The 't' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["t"]\n\n @t.setter\n def t(self, val):\n self["t"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n autoexpand\n Turns on/off margin expansion computations. Legends,\n colorbars, updatemenus, sliders, axis rangeselector and\n rangeslider are allowed to push the margins by\n defaults.\n b\n Sets the bottom margin (in px).\n l\n Sets the left margin (in px).\n pad\n Sets the amount of padding (in px) between the plotting\n area and the axis lines\n r\n Sets the right margin (in px).\n t\n Sets the top margin (in px).\n """\n\n def __init__(\n self,\n arg=None,\n autoexpand=None,\n b=None,\n l=None,\n pad=None,\n r=None,\n t=None,\n **kwargs,\n ):\n """\n Construct a new Margin object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Margin`\n autoexpand\n Turns on/off margin expansion computations. Legends,\n colorbars, updatemenus, sliders, axis rangeselector and\n rangeslider are allowed to push the margins by\n defaults.\n b\n Sets the bottom margin (in px).\n l\n Sets the left margin (in px).\n pad\n Sets the amount of padding (in px) between the plotting\n area and the axis lines\n r\n Sets the right margin (in px).\n t\n Sets the top margin (in px).\n\n Returns\n -------\n Margin\n """\n super().__init__("margin")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Margin\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Margin`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("autoexpand", arg, autoexpand)\n self._set_property("b", arg, b)\n self._set_property("l", arg, l)\n self._set_property("pad", arg, pad)\n self._set_property("r", arg, r)\n self._set_property("t", arg, t)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_margin.py
_margin.py
Python
5,400
0.95
0.089623
0.016854
python-kit
946
2025-03-31T12:14:07.548618
BSD-3-Clause
false
03fc7ae61f9c8b202fb8563c69fcec21
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Modebar(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.modebar"\n _valid_props = {\n "activecolor",\n "add",\n "addsrc",\n "bgcolor",\n "color",\n "orientation",\n "remove",\n "removesrc",\n "uirevision",\n }\n\n @property\n def activecolor(self):\n """\n Sets the color of the active or hovered on icons in the\n modebar.\n\n The 'activecolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["activecolor"]\n\n @activecolor.setter\n def activecolor(self, val):\n self["activecolor"] = val\n\n @property\n def add(self):\n """\n Determines which predefined modebar buttons to add. Please note\n that these buttons will only be shown if they are compatible\n with all trace types used in a graph. Similar to\n `config.modeBarButtonsToAdd` option. This may include\n "v1hovermode", "hoverclosest", "hovercompare", "togglehover",\n "togglespikelines", "drawline", "drawopenpath",\n "drawclosedpath", "drawcircle", "drawrect", "eraseshape".\n\n The 'add' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["add"]\n\n @add.setter\n def add(self, val):\n self["add"] = val\n\n @property\n def addsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `add`.\n\n The 'addsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["addsrc"]\n\n @addsrc.setter\n def addsrc(self, val):\n self["addsrc"] = val\n\n @property\n def bgcolor(self):\n """\n Sets the background color of the modebar.\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def color(self):\n """\n Sets the color of the icons in the modebar.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def orientation(self):\n """\n Sets the orientation of the modebar.\n\n The 'orientation' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['v', 'h']\n\n Returns\n -------\n Any\n """\n return self["orientation"]\n\n @orientation.setter\n def orientation(self, val):\n self["orientation"] = val\n\n @property\n def remove(self):\n """\n Determines which predefined modebar buttons to remove. Similar\n to `config.modeBarButtonsToRemove` option. This may include\n "autoScale2d", "autoscale", "editInChartStudio",\n "editinchartstudio", "hoverCompareCartesian", "hovercompare",\n "lasso", "lasso2d", "orbitRotation", "orbitrotation", "pan",\n "pan2d", "pan3d", "reset", "resetCameraDefault3d",\n "resetCameraLastSave3d", "resetGeo", "resetSankeyGroup",\n "resetScale2d", "resetViewMap", "resetViewMapbox",\n "resetViews", "resetcameradefault", "resetcameralastsave",\n "resetsankeygroup", "resetscale", "resetview", "resetviews",\n "select", "select2d", "sendDataToCloud", "senddatatocloud",\n "tableRotation", "tablerotation", "toImage", "toggleHover",\n "toggleSpikelines", "togglehover", "togglespikelines",\n "toimage", "zoom", "zoom2d", "zoom3d", "zoomIn2d", "zoomInGeo",\n "zoomInMap", "zoomInMapbox", "zoomOut2d", "zoomOutGeo",\n "zoomOutMap", "zoomOutMapbox", "zoomin", "zoomout".\n\n The 'remove' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["remove"]\n\n @remove.setter\n def remove(self, val):\n self["remove"] = val\n\n @property\n def removesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `remove`.\n\n The 'removesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["removesrc"]\n\n @removesrc.setter\n def removesrc(self, val):\n self["removesrc"] = val\n\n @property\n def uirevision(self):\n """\n Controls persistence of user-driven changes related to the\n modebar, including `hovermode`, `dragmode`, and `showspikes` at\n both the root level and inside subplots. Defaults to\n `layout.uirevision`.\n\n The 'uirevision' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["uirevision"]\n\n @uirevision.setter\n def uirevision(self, val):\n self["uirevision"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n activecolor\n Sets the color of the active or hovered on icons in the\n modebar.\n add\n Determines which predefined modebar buttons to add.\n Please note that these buttons will only be shown if\n they are compatible with all trace types used in a\n graph. Similar to `config.modeBarButtonsToAdd` option.\n This may include "v1hovermode", "hoverclosest",\n "hovercompare", "togglehover", "togglespikelines",\n "drawline", "drawopenpath", "drawclosedpath",\n "drawcircle", "drawrect", "eraseshape".\n addsrc\n Sets the source reference on Chart Studio Cloud for\n `add`.\n bgcolor\n Sets the background color of the modebar.\n color\n Sets the color of the icons in the modebar.\n orientation\n Sets the orientation of the modebar.\n remove\n Determines which predefined modebar buttons to remove.\n Similar to `config.modeBarButtonsToRemove` option. This\n may include "autoScale2d", "autoscale",\n "editInChartStudio", "editinchartstudio",\n "hoverCompareCartesian", "hovercompare", "lasso",\n "lasso2d", "orbitRotation", "orbitrotation", "pan",\n "pan2d", "pan3d", "reset", "resetCameraDefault3d",\n "resetCameraLastSave3d", "resetGeo",\n "resetSankeyGroup", "resetScale2d", "resetViewMap",\n "resetViewMapbox", "resetViews", "resetcameradefault",\n "resetcameralastsave", "resetsankeygroup",\n "resetscale", "resetview", "resetviews", "select",\n "select2d", "sendDataToCloud", "senddatatocloud",\n "tableRotation", "tablerotation", "toImage",\n "toggleHover", "toggleSpikelines", "togglehover",\n "togglespikelines", "toimage", "zoom", "zoom2d",\n "zoom3d", "zoomIn2d", "zoomInGeo", "zoomInMap",\n "zoomInMapbox", "zoomOut2d", "zoomOutGeo",\n "zoomOutMap", "zoomOutMapbox", "zoomin", "zoomout".\n removesrc\n Sets the source reference on Chart Studio Cloud for\n `remove`.\n uirevision\n Controls persistence of user-driven changes related to\n the modebar, including `hovermode`, `dragmode`, and\n `showspikes` at both the root level and inside\n subplots. Defaults to `layout.uirevision`.\n """\n\n def __init__(\n self,\n arg=None,\n activecolor=None,\n add=None,\n addsrc=None,\n bgcolor=None,\n color=None,\n orientation=None,\n remove=None,\n removesrc=None,\n uirevision=None,\n **kwargs,\n ):\n """\n Construct a new Modebar object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Modebar`\n activecolor\n Sets the color of the active or hovered on icons in the\n modebar.\n add\n Determines which predefined modebar buttons to add.\n Please note that these buttons will only be shown if\n they are compatible with all trace types used in a\n graph. Similar to `config.modeBarButtonsToAdd` option.\n This may include "v1hovermode", "hoverclosest",\n "hovercompare", "togglehover", "togglespikelines",\n "drawline", "drawopenpath", "drawclosedpath",\n "drawcircle", "drawrect", "eraseshape".\n addsrc\n Sets the source reference on Chart Studio Cloud for\n `add`.\n bgcolor\n Sets the background color of the modebar.\n color\n Sets the color of the icons in the modebar.\n orientation\n Sets the orientation of the modebar.\n remove\n Determines which predefined modebar buttons to remove.\n Similar to `config.modeBarButtonsToRemove` option. This\n may include "autoScale2d", "autoscale",\n "editInChartStudio", "editinchartstudio",\n "hoverCompareCartesian", "hovercompare", "lasso",\n "lasso2d", "orbitRotation", "orbitrotation", "pan",\n "pan2d", "pan3d", "reset", "resetCameraDefault3d",\n "resetCameraLastSave3d", "resetGeo",\n "resetSankeyGroup", "resetScale2d", "resetViewMap",\n "resetViewMapbox", "resetViews", "resetcameradefault",\n "resetcameralastsave", "resetsankeygroup",\n "resetscale", "resetview", "resetviews", "select",\n "select2d", "sendDataToCloud", "senddatatocloud",\n "tableRotation", "tablerotation", "toImage",\n "toggleHover", "toggleSpikelines", "togglehover",\n "togglespikelines", "toimage", "zoom", "zoom2d",\n "zoom3d", "zoomIn2d", "zoomInGeo", "zoomInMap",\n "zoomInMapbox", "zoomOut2d", "zoomOutGeo",\n "zoomOutMap", "zoomOutMapbox", "zoomin", "zoomout".\n removesrc\n Sets the source reference on Chart Studio Cloud for\n `remove`.\n uirevision\n Controls persistence of user-driven changes related to\n the modebar, including `hovermode`, `dragmode`, and\n `showspikes` at both the root level and inside\n subplots. Defaults to `layout.uirevision`.\n\n Returns\n -------\n Modebar\n """\n super().__init__("modebar")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Modebar\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Modebar`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("activecolor", arg, activecolor)\n self._set_property("add", arg, add)\n self._set_property("addsrc", arg, addsrc)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("color", arg, color)\n self._set_property("orientation", arg, orientation)\n self._set_property("remove", arg, remove)\n self._set_property("removesrc", arg, removesrc)\n self._set_property("uirevision", arg, uirevision)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_modebar.py
_modebar.py
Python
13,390
0.95
0.095607
0.008798
awesome-app
874
2024-11-11T13:09:46.598179
GPL-3.0
false
898df62ca7ca21a1e1de8b70cfe25ca3
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Newselection(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.newselection"\n _valid_props = {"line", "mode"}\n\n @property\n def line(self):\n """\n The 'line' property is an instance of Line\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.newselection.Line`\n - A dict of string/value properties that will be passed\n to the Line constructor\n\n Returns\n -------\n plotly.graph_objs.layout.newselection.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def mode(self):\n """\n Describes how a new selection is created. If `immediate`, a new\n selection is created after first mouse up. If `gradual`, a new\n selection is not created after first mouse. By adding to and\n subtracting from the initial selection, this option allows\n declaring extra outlines of the selection.\n\n The 'mode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['immediate', 'gradual']\n\n Returns\n -------\n Any\n """\n return self["mode"]\n\n @mode.setter\n def mode(self, val):\n self["mode"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n line\n :class:`plotly.graph_objects.layout.newselection.Line`\n instance or dict with compatible properties\n mode\n Describes how a new selection is created. If\n `immediate`, a new selection is created after first\n mouse up. If `gradual`, a new selection is not created\n after first mouse. By adding to and subtracting from\n the initial selection, this option allows declaring\n extra outlines of the selection.\n """\n\n def __init__(self, arg=None, line=None, mode=None, **kwargs):\n """\n Construct a new Newselection object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Newselection`\n line\n :class:`plotly.graph_objects.layout.newselection.Line`\n instance or dict with compatible properties\n mode\n Describes how a new selection is created. If\n `immediate`, a new selection is created after first\n mouse up. If `gradual`, a new selection is not created\n after first mouse. By adding to and subtracting from\n the initial selection, this option allows declaring\n extra outlines of the selection.\n\n Returns\n -------\n Newselection\n """\n super().__init__("newselection")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Newselection\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Newselection`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("line", arg, line)\n self._set_property("mode", arg, mode)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_newselection.py
_newselection.py
Python
3,934
0.95
0.118644
0.019802
vue-tools
825
2023-08-05T10:59:15.065372
BSD-3-Clause
false
0d609a85d0dad9683ed9203abb64a831
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Newshape(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.newshape"\n _valid_props = {\n "drawdirection",\n "fillcolor",\n "fillrule",\n "label",\n "layer",\n "legend",\n "legendgroup",\n "legendgrouptitle",\n "legendrank",\n "legendwidth",\n "line",\n "name",\n "opacity",\n "showlegend",\n "visible",\n }\n\n @property\n def drawdirection(self):\n """\n When `dragmode` is set to "drawrect", "drawline" or\n "drawcircle" this limits the drag to be horizontal, vertical or\n diagonal. Using "diagonal" there is no limit e.g. in drawing\n lines in any direction. "ortho" limits the draw to be either\n horizontal or vertical. "horizontal" allows horizontal extend.\n "vertical" allows vertical extend.\n\n The 'drawdirection' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['ortho', 'horizontal', 'vertical', 'diagonal']\n\n Returns\n -------\n Any\n """\n return self["drawdirection"]\n\n @drawdirection.setter\n def drawdirection(self, val):\n self["drawdirection"] = val\n\n @property\n def fillcolor(self):\n """\n Sets the color filling new shapes' interior. Please note that\n if using a fillcolor with alpha greater than half, drag inside\n the active shape starts moving the shape underneath, otherwise\n a new shape could be started over.\n\n The 'fillcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["fillcolor"]\n\n @fillcolor.setter\n def fillcolor(self, val):\n self["fillcolor"] = val\n\n @property\n def fillrule(self):\n """\n Determines the path's interior. For more info please visit\n https://developer.mozilla.org/en-\n US/docs/Web/SVG/Attribute/fill-rule\n\n The 'fillrule' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['evenodd', 'nonzero']\n\n Returns\n -------\n Any\n """\n return self["fillrule"]\n\n @fillrule.setter\n def fillrule(self, val):\n self["fillrule"] = val\n\n @property\n def label(self):\n """\n The 'label' property is an instance of Label\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.newshape.Label`\n - A dict of string/value properties that will be passed\n to the Label constructor\n\n Returns\n -------\n plotly.graph_objs.layout.newshape.Label\n """\n return self["label"]\n\n @label.setter\n def label(self, val):\n self["label"] = val\n\n @property\n def layer(self):\n """\n Specifies whether new shapes are drawn below gridlines\n ("below"), between gridlines and traces ("between") or above\n traces ("above").\n\n The 'layer' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['below', 'above', 'between']\n\n Returns\n -------\n Any\n """\n return self["layer"]\n\n @layer.setter\n def layer(self, val):\n self["layer"] = val\n\n @property\n def legend(self):\n """\n Sets the reference to a legend to show new shape in. References\n to these legends are "legend", "legend2", "legend3", etc.\n Settings for these legends are set in the layout, under\n `layout.legend`, `layout.legend2`, etc.\n\n The 'legend' property is an identifier of a particular\n subplot, of type 'legend', that may be specified as the string 'legend'\n optionally followed by an integer >= 1\n (e.g. 'legend', 'legend1', 'legend2', 'legend3', etc.)\n\n Returns\n -------\n str\n """\n return self["legend"]\n\n @legend.setter\n def legend(self, val):\n self["legend"] = val\n\n @property\n def legendgroup(self):\n """\n Sets the legend group for new shape. Traces and shapes part of\n the same legend group hide/show at the same time when toggling\n legend items.\n\n The 'legendgroup' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["legendgroup"]\n\n @legendgroup.setter\n def legendgroup(self, val):\n self["legendgroup"] = val\n\n @property\n def legendgrouptitle(self):\n """\n The 'legendgrouptitle' property is an instance of Legendgrouptitle\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.newshape.Legendgrouptitle`\n - A dict of string/value properties that will be passed\n to the Legendgrouptitle constructor\n\n Returns\n -------\n plotly.graph_objs.layout.newshape.Legendgrouptitle\n """\n return self["legendgrouptitle"]\n\n @legendgrouptitle.setter\n def legendgrouptitle(self, val):\n self["legendgrouptitle"] = val\n\n @property\n def legendrank(self):\n """\n Sets the legend rank for new shape. Items and groups with\n smaller ranks are presented on top/left side while with\n "reversed" `legend.traceorder` they are on bottom/right side.\n The default legendrank is 1000, so that you can use ranks less\n than 1000 to place certain items before all unranked items, and\n ranks greater than 1000 to go after all unranked items.\n\n The 'legendrank' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["legendrank"]\n\n @legendrank.setter\n def legendrank(self, val):\n self["legendrank"] = val\n\n @property\n def legendwidth(self):\n """\n Sets the width (in px or fraction) of the legend for new shape.\n\n The 'legendwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["legendwidth"]\n\n @legendwidth.setter\n def legendwidth(self, val):\n self["legendwidth"] = val\n\n @property\n def line(self):\n """\n The 'line' property is an instance of Line\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.newshape.Line`\n - A dict of string/value properties that will be passed\n to the Line constructor\n\n Returns\n -------\n plotly.graph_objs.layout.newshape.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def name(self):\n """\n Sets new shape name. The name appears as the legend item.\n\n The 'name' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["name"]\n\n @name.setter\n def name(self, val):\n self["name"] = val\n\n @property\n def opacity(self):\n """\n Sets the opacity of new shapes.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def showlegend(self):\n """\n Determines whether or not new shape is shown in the legend.\n\n The 'showlegend' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showlegend"]\n\n @showlegend.setter\n def showlegend(self, val):\n self["showlegend"] = val\n\n @property\n def visible(self):\n """\n Determines whether or not new shape is visible. If\n "legendonly", the shape is not drawn, but can appear as a\n legend item (provided that the legend itself is visible).\n\n The 'visible' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n [True, False, 'legendonly']\n\n Returns\n -------\n Any\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n drawdirection\n When `dragmode` is set to "drawrect", "drawline" or\n "drawcircle" this limits the drag to be horizontal,\n vertical or diagonal. Using "diagonal" there is no\n limit e.g. in drawing lines in any direction. "ortho"\n limits the draw to be either horizontal or vertical.\n "horizontal" allows horizontal extend. "vertical"\n allows vertical extend.\n fillcolor\n Sets the color filling new shapes' interior. Please\n note that if using a fillcolor with alpha greater than\n half, drag inside the active shape starts moving the\n shape underneath, otherwise a new shape could be\n started over.\n fillrule\n Determines the path's interior. For more info please\n visit https://developer.mozilla.org/en-\n US/docs/Web/SVG/Attribute/fill-rule\n label\n :class:`plotly.graph_objects.layout.newshape.Label`\n instance or dict with compatible properties\n layer\n Specifies whether new shapes are drawn below gridlines\n ("below"), between gridlines and traces ("between") or\n above traces ("above").\n legend\n Sets the reference to a legend to show new shape in.\n References to these legends are "legend", "legend2",\n "legend3", etc. Settings for these legends are set in\n the layout, under `layout.legend`, `layout.legend2`,\n etc.\n legendgroup\n Sets the legend group for new shape. Traces and shapes\n part of the same legend group hide/show at the same\n time when toggling legend items.\n legendgrouptitle\n :class:`plotly.graph_objects.layout.newshape.Legendgrou\n ptitle` instance or dict with compatible properties\n legendrank\n Sets the legend rank for new shape. Items and groups\n with smaller ranks are presented on top/left side while\n with "reversed" `legend.traceorder` they are on\n bottom/right side. The default legendrank is 1000, so\n that you can use ranks less than 1000 to place certain\n items before all unranked items, and ranks greater than\n 1000 to go after all unranked items.\n legendwidth\n Sets the width (in px or fraction) of the legend for\n new shape.\n line\n :class:`plotly.graph_objects.layout.newshape.Line`\n instance or dict with compatible properties\n name\n Sets new shape name. The name appears as the legend\n item.\n opacity\n Sets the opacity of new shapes.\n showlegend\n Determines whether or not new shape is shown in the\n legend.\n visible\n Determines whether or not new shape is visible. If\n "legendonly", the shape is not drawn, but can appear as\n a legend item (provided that the legend itself is\n visible).\n """\n\n def __init__(\n self,\n arg=None,\n drawdirection=None,\n fillcolor=None,\n fillrule=None,\n label=None,\n layer=None,\n legend=None,\n legendgroup=None,\n legendgrouptitle=None,\n legendrank=None,\n legendwidth=None,\n line=None,\n name=None,\n opacity=None,\n showlegend=None,\n visible=None,\n **kwargs,\n ):\n """\n Construct a new Newshape object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Newshape`\n drawdirection\n When `dragmode` is set to "drawrect", "drawline" or\n "drawcircle" this limits the drag to be horizontal,\n vertical or diagonal. Using "diagonal" there is no\n limit e.g. in drawing lines in any direction. "ortho"\n limits the draw to be either horizontal or vertical.\n "horizontal" allows horizontal extend. "vertical"\n allows vertical extend.\n fillcolor\n Sets the color filling new shapes' interior. Please\n note that if using a fillcolor with alpha greater than\n half, drag inside the active shape starts moving the\n shape underneath, otherwise a new shape could be\n started over.\n fillrule\n Determines the path's interior. For more info please\n visit https://developer.mozilla.org/en-\n US/docs/Web/SVG/Attribute/fill-rule\n label\n :class:`plotly.graph_objects.layout.newshape.Label`\n instance or dict with compatible properties\n layer\n Specifies whether new shapes are drawn below gridlines\n ("below"), between gridlines and traces ("between") or\n above traces ("above").\n legend\n Sets the reference to a legend to show new shape in.\n References to these legends are "legend", "legend2",\n "legend3", etc. Settings for these legends are set in\n the layout, under `layout.legend`, `layout.legend2`,\n etc.\n legendgroup\n Sets the legend group for new shape. Traces and shapes\n part of the same legend group hide/show at the same\n time when toggling legend items.\n legendgrouptitle\n :class:`plotly.graph_objects.layout.newshape.Legendgrou\n ptitle` instance or dict with compatible properties\n legendrank\n Sets the legend rank for new shape. Items and groups\n with smaller ranks are presented on top/left side while\n with "reversed" `legend.traceorder` they are on\n bottom/right side. The default legendrank is 1000, so\n that you can use ranks less than 1000 to place certain\n items before all unranked items, and ranks greater than\n 1000 to go after all unranked items.\n legendwidth\n Sets the width (in px or fraction) of the legend for\n new shape.\n line\n :class:`plotly.graph_objects.layout.newshape.Line`\n instance or dict with compatible properties\n name\n Sets new shape name. The name appears as the legend\n item.\n opacity\n Sets the opacity of new shapes.\n showlegend\n Determines whether or not new shape is shown in the\n legend.\n visible\n Determines whether or not new shape is visible. If\n "legendonly", the shape is not drawn, but can appear as\n a legend item (provided that the legend itself is\n visible).\n\n Returns\n -------\n Newshape\n """\n super().__init__("newshape")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Newshape\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Newshape`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("drawdirection", arg, drawdirection)\n self._set_property("fillcolor", arg, fillcolor)\n self._set_property("fillrule", arg, fillrule)\n self._set_property("label", arg, label)\n self._set_property("layer", arg, layer)\n self._set_property("legend", arg, legend)\n self._set_property("legendgroup", arg, legendgroup)\n self._set_property("legendgrouptitle", arg, legendgrouptitle)\n self._set_property("legendrank", arg, legendrank)\n self._set_property("legendwidth", arg, legendwidth)\n self._set_property("line", arg, line)\n self._set_property("name", arg, name)\n self._set_property("opacity", arg, opacity)\n self._set_property("showlegend", arg, showlegend)\n self._set_property("visible", arg, visible)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_newshape.py
_newshape.py
Python
17,830
0.95
0.119705
0.006303
node-utils
521
2025-01-24T18:55:29.768656
BSD-3-Clause
false
6e82b5b8401c52bc47fbbb590cadb81f
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Polar(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.polar"\n _valid_props = {\n "angularaxis",\n "bargap",\n "barmode",\n "bgcolor",\n "domain",\n "gridshape",\n "hole",\n "radialaxis",\n "sector",\n "uirevision",\n }\n\n @property\n def angularaxis(self):\n """\n The 'angularaxis' property is an instance of AngularAxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.polar.AngularAxis`\n - A dict of string/value properties that will be passed\n to the AngularAxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.polar.AngularAxis\n """\n return self["angularaxis"]\n\n @angularaxis.setter\n def angularaxis(self, val):\n self["angularaxis"] = val\n\n @property\n def bargap(self):\n """\n Sets the gap between bars of adjacent location coordinates.\n Values are unitless, they represent fractions of the minimum\n difference in bar positions in the data.\n\n The 'bargap' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["bargap"]\n\n @bargap.setter\n def bargap(self, val):\n self["bargap"] = val\n\n @property\n def barmode(self):\n """\n Determines how bars at the same location coordinate are\n displayed on the graph. With "stack", the bars are stacked on\n top of one another With "overlay", the bars are plotted over\n one another, you might need to reduce "opacity" to see multiple\n bars.\n\n The 'barmode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['stack', 'overlay']\n\n Returns\n -------\n Any\n """\n return self["barmode"]\n\n @barmode.setter\n def barmode(self, val):\n self["barmode"] = val\n\n @property\n def bgcolor(self):\n """\n Set the background color of the subplot\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def domain(self):\n """\n The 'domain' property is an instance of Domain\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.polar.Domain`\n - A dict of string/value properties that will be passed\n to the Domain constructor\n\n Returns\n -------\n plotly.graph_objs.layout.polar.Domain\n """\n return self["domain"]\n\n @domain.setter\n def domain(self, val):\n self["domain"] = val\n\n @property\n def gridshape(self):\n """\n Determines if the radial axis grid lines and angular axis line\n are drawn as "circular" sectors or as "linear" (polygon)\n sectors. Has an effect only when the angular axis has `type`\n "category". Note that `radialaxis.angle` is snapped to the\n angle of the closest vertex when `gridshape` is "circular" (so\n that radial axis scale is the same as the data scale).\n\n The 'gridshape' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['circular', 'linear']\n\n Returns\n -------\n Any\n """\n return self["gridshape"]\n\n @gridshape.setter\n def gridshape(self, val):\n self["gridshape"] = val\n\n @property\n def hole(self):\n """\n Sets the fraction of the radius to cut out of the polar\n subplot.\n\n The 'hole' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["hole"]\n\n @hole.setter\n def hole(self, val):\n self["hole"] = val\n\n @property\n def radialaxis(self):\n """\n The 'radialaxis' property is an instance of RadialAxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.polar.RadialAxis`\n - A dict of string/value properties that will be passed\n to the RadialAxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.polar.RadialAxis\n """\n return self["radialaxis"]\n\n @radialaxis.setter\n def radialaxis(self, val):\n self["radialaxis"] = val\n\n @property\n def sector(self):\n """\n Sets angular span of this polar subplot with two angles (in\n degrees). Sector are assumed to be spanned in the\n counterclockwise direction with 0 corresponding to rightmost\n limit of the polar subplot.\n\n The 'sector' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'sector[0]' property is a number and may be specified as:\n - An int or float\n (1) The 'sector[1]' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n list\n """\n return self["sector"]\n\n @sector.setter\n def sector(self, val):\n self["sector"] = val\n\n @property\n def uirevision(self):\n """\n Controls persistence of user-driven changes in axis attributes,\n if not overridden in the individual axes. Defaults to\n `layout.uirevision`.\n\n The 'uirevision' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["uirevision"]\n\n @uirevision.setter\n def uirevision(self, val):\n self["uirevision"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n angularaxis\n :class:`plotly.graph_objects.layout.polar.AngularAxis`\n instance or dict with compatible properties\n bargap\n Sets the gap between bars of adjacent location\n coordinates. Values are unitless, they represent\n fractions of the minimum difference in bar positions in\n the data.\n barmode\n Determines how bars at the same location coordinate are\n displayed on the graph. With "stack", the bars are\n stacked on top of one another With "overlay", the bars\n are plotted over one another, you might need to reduce\n "opacity" to see multiple bars.\n bgcolor\n Set the background color of the subplot\n domain\n :class:`plotly.graph_objects.layout.polar.Domain`\n instance or dict with compatible properties\n gridshape\n Determines if the radial axis grid lines and angular\n axis line are drawn as "circular" sectors or as\n "linear" (polygon) sectors. Has an effect only when the\n angular axis has `type` "category". Note that\n `radialaxis.angle` is snapped to the angle of the\n closest vertex when `gridshape` is "circular" (so that\n radial axis scale is the same as the data scale).\n hole\n Sets the fraction of the radius to cut out of the polar\n subplot.\n radialaxis\n :class:`plotly.graph_objects.layout.polar.RadialAxis`\n instance or dict with compatible properties\n sector\n Sets angular span of this polar subplot with two angles\n (in degrees). Sector are assumed to be spanned in the\n counterclockwise direction with 0 corresponding to\n rightmost limit of the polar subplot.\n uirevision\n Controls persistence of user-driven changes in axis\n attributes, if not overridden in the individual axes.\n Defaults to `layout.uirevision`.\n """\n\n def __init__(\n self,\n arg=None,\n angularaxis=None,\n bargap=None,\n barmode=None,\n bgcolor=None,\n domain=None,\n gridshape=None,\n hole=None,\n radialaxis=None,\n sector=None,\n uirevision=None,\n **kwargs,\n ):\n """\n Construct a new Polar object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Polar`\n angularaxis\n :class:`plotly.graph_objects.layout.polar.AngularAxis`\n instance or dict with compatible properties\n bargap\n Sets the gap between bars of adjacent location\n coordinates. Values are unitless, they represent\n fractions of the minimum difference in bar positions in\n the data.\n barmode\n Determines how bars at the same location coordinate are\n displayed on the graph. With "stack", the bars are\n stacked on top of one another With "overlay", the bars\n are plotted over one another, you might need to reduce\n "opacity" to see multiple bars.\n bgcolor\n Set the background color of the subplot\n domain\n :class:`plotly.graph_objects.layout.polar.Domain`\n instance or dict with compatible properties\n gridshape\n Determines if the radial axis grid lines and angular\n axis line are drawn as "circular" sectors or as\n "linear" (polygon) sectors. Has an effect only when the\n angular axis has `type` "category". Note that\n `radialaxis.angle` is snapped to the angle of the\n closest vertex when `gridshape` is "circular" (so that\n radial axis scale is the same as the data scale).\n hole\n Sets the fraction of the radius to cut out of the polar\n subplot.\n radialaxis\n :class:`plotly.graph_objects.layout.polar.RadialAxis`\n instance or dict with compatible properties\n sector\n Sets angular span of this polar subplot with two angles\n (in degrees). Sector are assumed to be spanned in the\n counterclockwise direction with 0 corresponding to\n rightmost limit of the polar subplot.\n uirevision\n Controls persistence of user-driven changes in axis\n attributes, if not overridden in the individual axes.\n Defaults to `layout.uirevision`.\n\n Returns\n -------\n Polar\n """\n super().__init__("polar")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Polar\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Polar`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("angularaxis", arg, angularaxis)\n self._set_property("bargap", arg, bargap)\n self._set_property("barmode", arg, barmode)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("domain", arg, domain)\n self._set_property("gridshape", arg, gridshape)\n self._set_property("hole", arg, hole)\n self._set_property("radialaxis", arg, radialaxis)\n self._set_property("sector", arg, sector)\n self._set_property("uirevision", arg, uirevision)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_polar.py
_polar.py
Python
12,535
0.95
0.112565
0.011976
react-lib
536
2024-06-14T07:51:34.615106
Apache-2.0
false
4b862181ce5ff8edde6ebb25546f96dd
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Scene(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.scene"\n _valid_props = {\n "annotationdefaults",\n "annotations",\n "aspectmode",\n "aspectratio",\n "bgcolor",\n "camera",\n "domain",\n "dragmode",\n "hovermode",\n "uirevision",\n "xaxis",\n "yaxis",\n "zaxis",\n }\n\n @property\n def annotations(self):\n """\n The 'annotations' property is a tuple of instances of\n Annotation that may be specified as:\n - A list or tuple of instances of plotly.graph_objs.layout.scene.Annotation\n - A list or tuple of dicts of string/value properties that\n will be passed to the Annotation constructor\n\n Returns\n -------\n tuple[plotly.graph_objs.layout.scene.Annotation]\n """\n return self["annotations"]\n\n @annotations.setter\n def annotations(self, val):\n self["annotations"] = val\n\n @property\n def annotationdefaults(self):\n """\n When used in a template (as\n layout.template.layout.scene.annotationdefaults), sets the\n default property values to use for elements of\n layout.scene.annotations\n\n The 'annotationdefaults' property is an instance of Annotation\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.scene.Annotation`\n - A dict of string/value properties that will be passed\n to the Annotation constructor\n\n Returns\n -------\n plotly.graph_objs.layout.scene.Annotation\n """\n return self["annotationdefaults"]\n\n @annotationdefaults.setter\n def annotationdefaults(self, val):\n self["annotationdefaults"] = val\n\n @property\n def aspectmode(self):\n """\n If "cube", this scene's axes are drawn as a cube, regardless of\n the axes' ranges. If "data", this scene's axes are drawn in\n proportion with the axes' ranges. If "manual", this scene's\n axes are drawn in proportion with the input of "aspectratio"\n (the default behavior if "aspectratio" is provided). If "auto",\n this scene's axes are drawn using the results of "data" except\n when one axis is more than four times the size of the two\n others, where in that case the results of "cube" are used.\n\n The 'aspectmode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'cube', 'data', 'manual']\n\n Returns\n -------\n Any\n """\n return self["aspectmode"]\n\n @aspectmode.setter\n def aspectmode(self, val):\n self["aspectmode"] = val\n\n @property\n def aspectratio(self):\n """\n Sets this scene's axis aspectratio.\n\n The 'aspectratio' property is an instance of Aspectratio\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.scene.Aspectratio`\n - A dict of string/value properties that will be passed\n to the Aspectratio constructor\n\n Returns\n -------\n plotly.graph_objs.layout.scene.Aspectratio\n """\n return self["aspectratio"]\n\n @aspectratio.setter\n def aspectratio(self, val):\n self["aspectratio"] = val\n\n @property\n def bgcolor(self):\n """\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def camera(self):\n """\n The 'camera' property is an instance of Camera\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.scene.Camera`\n - A dict of string/value properties that will be passed\n to the Camera constructor\n\n Returns\n -------\n plotly.graph_objs.layout.scene.Camera\n """\n return self["camera"]\n\n @camera.setter\n def camera(self, val):\n self["camera"] = val\n\n @property\n def domain(self):\n """\n The 'domain' property is an instance of Domain\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.scene.Domain`\n - A dict of string/value properties that will be passed\n to the Domain constructor\n\n Returns\n -------\n plotly.graph_objs.layout.scene.Domain\n """\n return self["domain"]\n\n @domain.setter\n def domain(self, val):\n self["domain"] = val\n\n @property\n def dragmode(self):\n """\n Determines the mode of drag interactions for this scene.\n\n The 'dragmode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['orbit', 'turntable', 'zoom', 'pan', False]\n\n Returns\n -------\n Any\n """\n return self["dragmode"]\n\n @dragmode.setter\n def dragmode(self, val):\n self["dragmode"] = val\n\n @property\n def hovermode(self):\n """\n Determines the mode of hover interactions for this scene.\n\n The 'hovermode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['closest', False]\n\n Returns\n -------\n Any\n """\n return self["hovermode"]\n\n @hovermode.setter\n def hovermode(self, val):\n self["hovermode"] = val\n\n @property\n def uirevision(self):\n """\n Controls persistence of user-driven changes in camera\n attributes. Defaults to `layout.uirevision`.\n\n The 'uirevision' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["uirevision"]\n\n @uirevision.setter\n def uirevision(self, val):\n self["uirevision"] = val\n\n @property\n def xaxis(self):\n """\n The 'xaxis' property is an instance of XAxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.scene.XAxis`\n - A dict of string/value properties that will be passed\n to the XAxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.scene.XAxis\n """\n return self["xaxis"]\n\n @xaxis.setter\n def xaxis(self, val):\n self["xaxis"] = val\n\n @property\n def yaxis(self):\n """\n The 'yaxis' property is an instance of YAxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.scene.YAxis`\n - A dict of string/value properties that will be passed\n to the YAxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.scene.YAxis\n """\n return self["yaxis"]\n\n @yaxis.setter\n def yaxis(self, val):\n self["yaxis"] = val\n\n @property\n def zaxis(self):\n """\n The 'zaxis' property is an instance of ZAxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.scene.ZAxis`\n - A dict of string/value properties that will be passed\n to the ZAxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.scene.ZAxis\n """\n return self["zaxis"]\n\n @zaxis.setter\n def zaxis(self, val):\n self["zaxis"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n annotations\n A tuple of\n :class:`plotly.graph_objects.layout.scene.Annotation`\n instances or dicts with compatible properties\n annotationdefaults\n When used in a template (as\n layout.template.layout.scene.annotationdefaults), sets\n the default property values to use for elements of\n layout.scene.annotations\n aspectmode\n If "cube", this scene's axes are drawn as a cube,\n regardless of the axes' ranges. If "data", this scene's\n axes are drawn in proportion with the axes' ranges. If\n "manual", this scene's axes are drawn in proportion\n with the input of "aspectratio" (the default behavior\n if "aspectratio" is provided). If "auto", this scene's\n axes are drawn using the results of "data" except when\n one axis is more than four times the size of the two\n others, where in that case the results of "cube" are\n used.\n aspectratio\n Sets this scene's axis aspectratio.\n bgcolor\n\n camera\n :class:`plotly.graph_objects.layout.scene.Camera`\n instance or dict with compatible properties\n domain\n :class:`plotly.graph_objects.layout.scene.Domain`\n instance or dict with compatible properties\n dragmode\n Determines the mode of drag interactions for this\n scene.\n hovermode\n Determines the mode of hover interactions for this\n scene.\n uirevision\n Controls persistence of user-driven changes in camera\n attributes. Defaults to `layout.uirevision`.\n xaxis\n :class:`plotly.graph_objects.layout.scene.XAxis`\n instance or dict with compatible properties\n yaxis\n :class:`plotly.graph_objects.layout.scene.YAxis`\n instance or dict with compatible properties\n zaxis\n :class:`plotly.graph_objects.layout.scene.ZAxis`\n instance or dict with compatible properties\n """\n\n def __init__(\n self,\n arg=None,\n annotations=None,\n annotationdefaults=None,\n aspectmode=None,\n aspectratio=None,\n bgcolor=None,\n camera=None,\n domain=None,\n dragmode=None,\n hovermode=None,\n uirevision=None,\n xaxis=None,\n yaxis=None,\n zaxis=None,\n **kwargs,\n ):\n """\n Construct a new Scene object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Scene`\n annotations\n A tuple of\n :class:`plotly.graph_objects.layout.scene.Annotation`\n instances or dicts with compatible properties\n annotationdefaults\n When used in a template (as\n layout.template.layout.scene.annotationdefaults), sets\n the default property values to use for elements of\n layout.scene.annotations\n aspectmode\n If "cube", this scene's axes are drawn as a cube,\n regardless of the axes' ranges. If "data", this scene's\n axes are drawn in proportion with the axes' ranges. If\n "manual", this scene's axes are drawn in proportion\n with the input of "aspectratio" (the default behavior\n if "aspectratio" is provided). If "auto", this scene's\n axes are drawn using the results of "data" except when\n one axis is more than four times the size of the two\n others, where in that case the results of "cube" are\n used.\n aspectratio\n Sets this scene's axis aspectratio.\n bgcolor\n\n camera\n :class:`plotly.graph_objects.layout.scene.Camera`\n instance or dict with compatible properties\n domain\n :class:`plotly.graph_objects.layout.scene.Domain`\n instance or dict with compatible properties\n dragmode\n Determines the mode of drag interactions for this\n scene.\n hovermode\n Determines the mode of hover interactions for this\n scene.\n uirevision\n Controls persistence of user-driven changes in camera\n attributes. Defaults to `layout.uirevision`.\n xaxis\n :class:`plotly.graph_objects.layout.scene.XAxis`\n instance or dict with compatible properties\n yaxis\n :class:`plotly.graph_objects.layout.scene.YAxis`\n instance or dict with compatible properties\n zaxis\n :class:`plotly.graph_objects.layout.scene.ZAxis`\n instance or dict with compatible properties\n\n Returns\n -------\n Scene\n """\n super().__init__("scene")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Scene\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Scene`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("annotations", arg, annotations)\n self._set_property("annotationdefaults", arg, annotationdefaults)\n self._set_property("aspectmode", arg, aspectmode)\n self._set_property("aspectratio", arg, aspectratio)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("camera", arg, camera)\n self._set_property("domain", arg, domain)\n self._set_property("dragmode", arg, dragmode)\n self._set_property("hovermode", arg, hovermode)\n self._set_property("uirevision", arg, uirevision)\n self._set_property("xaxis", arg, xaxis)\n self._set_property("yaxis", arg, yaxis)\n self._set_property("zaxis", arg, zaxis)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_scene.py
_scene.py
Python
14,488
0.95
0.143172
0.007557
node-utils
811
2025-03-11T10:47:07.139538
MIT
false
b98e5ab5b61226056a83d3bf40547a55
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Selection(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.selection"\n _valid_props = {\n "line",\n "name",\n "opacity",\n "path",\n "templateitemname",\n "type",\n "x0",\n "x1",\n "xref",\n "y0",\n "y1",\n "yref",\n }\n\n @property\n def line(self):\n """\n The 'line' property is an instance of Line\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.selection.Line`\n - A dict of string/value properties that will be passed\n to the Line constructor\n\n Returns\n -------\n plotly.graph_objs.layout.selection.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def name(self):\n """\n When used in a template, named items are created in the output\n figure in addition to any items the figure already has in this\n array. You can modify these items in the output figure by\n making your own item with `templateitemname` matching this\n `name` alongside your modifications (including `visible: false`\n or `enabled: false` to hide it). Has no effect outside of a\n template.\n\n The 'name' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["name"]\n\n @name.setter\n def name(self, val):\n self["name"] = val\n\n @property\n def opacity(self):\n """\n Sets the opacity of the selection.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def path(self):\n """\n For `type` "path" - a valid SVG path similar to `shapes.path`\n in data coordinates. Allowed segments are: M, L and Z.\n\n The 'path' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["path"]\n\n @path.setter\n def path(self, val):\n self["path"] = val\n\n @property\n def templateitemname(self):\n """\n Used to refer to a named item in this array in the template.\n Named items from the template will be created even without a\n matching item in the input figure, but you can modify one by\n making an item with `templateitemname` matching its `name`,\n alongside your modifications (including `visible: false` or\n `enabled: false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you explicitly\n show it with `visible: true`.\n\n The 'templateitemname' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["templateitemname"]\n\n @templateitemname.setter\n def templateitemname(self, val):\n self["templateitemname"] = val\n\n @property\n def type(self):\n """\n Specifies the selection type to be drawn. If "rect", a\n rectangle is drawn linking (`x0`,`y0`), (`x1`,`y0`),\n (`x1`,`y1`) and (`x0`,`y1`). If "path", draw a custom SVG path\n using `path`.\n\n The 'type' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['rect', 'path']\n\n Returns\n -------\n Any\n """\n return self["type"]\n\n @type.setter\n def type(self, val):\n self["type"] = val\n\n @property\n def x0(self):\n """\n Sets the selection's starting x position.\n\n The 'x0' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["x0"]\n\n @x0.setter\n def x0(self, val):\n self["x0"] = val\n\n @property\n def x1(self):\n """\n Sets the selection's end x position.\n\n The 'x1' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["x1"]\n\n @x1.setter\n def x1(self, val):\n self["x1"] = val\n\n @property\n def xref(self):\n """\n Sets the selection's x coordinate axis. If set to a x axis id\n (e.g. "x" or "x2"), the `x` position refers to a x coordinate.\n If set to "paper", the `x` position refers to the distance from\n the left of the plotting area in normalized coordinates where 0\n (1) corresponds to the left (right). If set to a x axis ID\n followed by "domain" (separated by a space), the position\n behaves like for "paper", but refers to the distance in\n fractions of the domain length from the left of the domain of\n that axis: e.g., *x2 domain* refers to the domain of the second\n x axis and a x position of 0.5 refers to the point between the\n left and the right of the domain of the second x axis.\n\n The 'xref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['paper']\n - A string that matches one of the following regular expressions:\n ['^x([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n Any\n """\n return self["xref"]\n\n @xref.setter\n def xref(self, val):\n self["xref"] = val\n\n @property\n def y0(self):\n """\n Sets the selection's starting y position.\n\n The 'y0' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["y0"]\n\n @y0.setter\n def y0(self, val):\n self["y0"] = val\n\n @property\n def y1(self):\n """\n Sets the selection's end y position.\n\n The 'y1' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["y1"]\n\n @y1.setter\n def y1(self, val):\n self["y1"] = val\n\n @property\n def yref(self):\n """\n Sets the selection's x coordinate axis. If set to a y axis id\n (e.g. "y" or "y2"), the `y` position refers to a y coordinate.\n If set to "paper", the `y` position refers to the distance from\n the bottom of the plotting area in normalized coordinates where\n 0 (1) corresponds to the bottom (top). If set to a y axis ID\n followed by "domain" (separated by a space), the position\n behaves like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the domain of\n that axis: e.g., *y2 domain* refers to the domain of the second\n y axis and a y position of 0.5 refers to the point between the\n bottom and the top of the domain of the second y axis.\n\n The 'yref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['paper']\n - A string that matches one of the following regular expressions:\n ['^y([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n Any\n """\n return self["yref"]\n\n @yref.setter\n def yref(self, val):\n self["yref"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n line\n :class:`plotly.graph_objects.layout.selection.Line`\n instance or dict with compatible properties\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n opacity\n Sets the opacity of the selection.\n path\n For `type` "path" - a valid SVG path similar to\n `shapes.path` in data coordinates. Allowed segments\n are: M, L and Z.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n type\n Specifies the selection type to be drawn. If "rect", a\n rectangle is drawn linking (`x0`,`y0`), (`x1`,`y0`),\n (`x1`,`y1`) and (`x0`,`y1`). If "path", draw a custom\n SVG path using `path`.\n x0\n Sets the selection's starting x position.\n x1\n Sets the selection's end x position.\n xref\n Sets the selection's x coordinate axis. If set to a x\n axis id (e.g. "x" or "x2"), the `x` position refers to\n a x coordinate. If set to "paper", the `x` position\n refers to the distance from the left of the plotting\n area in normalized coordinates where 0 (1) corresponds\n to the left (right). If set to a x axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the left of the\n domain of that axis: e.g., *x2 domain* refers to the\n domain of the second x axis and a x position of 0.5\n refers to the point between the left and the right of\n the domain of the second x axis.\n y0\n Sets the selection's starting y position.\n y1\n Sets the selection's end y position.\n yref\n Sets the selection's x coordinate axis. If set to a y\n axis id (e.g. "y" or "y2"), the `y` position refers to\n a y coordinate. If set to "paper", the `y` position\n refers to the distance from the bottom of the plotting\n area in normalized coordinates where 0 (1) corresponds\n to the bottom (top). If set to a y axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the\n domain of that axis: e.g., *y2 domain* refers to the\n domain of the second y axis and a y position of 0.5\n refers to the point between the bottom and the top of\n the domain of the second y axis.\n """\n\n def __init__(\n self,\n arg=None,\n line=None,\n name=None,\n opacity=None,\n path=None,\n templateitemname=None,\n type=None,\n x0=None,\n x1=None,\n xref=None,\n y0=None,\n y1=None,\n yref=None,\n **kwargs,\n ):\n """\n Construct a new Selection object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Selection`\n line\n :class:`plotly.graph_objects.layout.selection.Line`\n instance or dict with compatible properties\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n opacity\n Sets the opacity of the selection.\n path\n For `type` "path" - a valid SVG path similar to\n `shapes.path` in data coordinates. Allowed segments\n are: M, L and Z.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n type\n Specifies the selection type to be drawn. If "rect", a\n rectangle is drawn linking (`x0`,`y0`), (`x1`,`y0`),\n (`x1`,`y1`) and (`x0`,`y1`). If "path", draw a custom\n SVG path using `path`.\n x0\n Sets the selection's starting x position.\n x1\n Sets the selection's end x position.\n xref\n Sets the selection's x coordinate axis. If set to a x\n axis id (e.g. "x" or "x2"), the `x` position refers to\n a x coordinate. If set to "paper", the `x` position\n refers to the distance from the left of the plotting\n area in normalized coordinates where 0 (1) corresponds\n to the left (right). If set to a x axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the left of the\n domain of that axis: e.g., *x2 domain* refers to the\n domain of the second x axis and a x position of 0.5\n refers to the point between the left and the right of\n the domain of the second x axis.\n y0\n Sets the selection's starting y position.\n y1\n Sets the selection's end y position.\n yref\n Sets the selection's x coordinate axis. If set to a y\n axis id (e.g. "y" or "y2"), the `y` position refers to\n a y coordinate. If set to "paper", the `y` position\n refers to the distance from the bottom of the plotting\n area in normalized coordinates where 0 (1) corresponds\n to the bottom (top). If set to a y axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the\n domain of that axis: e.g., *y2 domain* refers to the\n domain of the second y axis and a y position of 0.5\n refers to the point between the bottom and the top of\n the domain of the second y axis.\n\n Returns\n -------\n Selection\n """\n super().__init__("selections")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Selection\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Selection`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("line", arg, line)\n self._set_property("name", arg, name)\n self._set_property("opacity", arg, opacity)\n self._set_property("path", arg, path)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("type", arg, type)\n self._set_property("x0", arg, x0)\n self._set_property("x1", arg, x1)\n self._set_property("xref", arg, xref)\n self._set_property("y0", arg, y0)\n self._set_property("y1", arg, y1)\n self._set_property("yref", arg, yref)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_selection.py
_selection.py
Python
17,147
0.95
0.081136
0.006881
vue-tools
508
2024-10-27T05:38:38.525740
MIT
false
78617a265074b69ff50de4beb0109b83
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Shape(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.shape"\n _valid_props = {\n "editable",\n "fillcolor",\n "fillrule",\n "label",\n "layer",\n "legend",\n "legendgroup",\n "legendgrouptitle",\n "legendrank",\n "legendwidth",\n "line",\n "name",\n "opacity",\n "path",\n "showlegend",\n "templateitemname",\n "type",\n "visible",\n "x0",\n "x0shift",\n "x1",\n "x1shift",\n "xanchor",\n "xref",\n "xsizemode",\n "y0",\n "y0shift",\n "y1",\n "y1shift",\n "yanchor",\n "yref",\n "ysizemode",\n }\n\n @property\n def editable(self):\n """\n Determines whether the shape could be activated for edit or\n not. Has no effect when the older editable shapes mode is\n enabled via `config.editable` or `config.edits.shapePosition`.\n\n The 'editable' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["editable"]\n\n @editable.setter\n def editable(self, val):\n self["editable"] = val\n\n @property\n def fillcolor(self):\n """\n Sets the color filling the shape's interior. Only applies to\n closed shapes.\n\n The 'fillcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["fillcolor"]\n\n @fillcolor.setter\n def fillcolor(self, val):\n self["fillcolor"] = val\n\n @property\n def fillrule(self):\n """\n Determines which regions of complex paths constitute the\n interior. For more info please visit\n https://developer.mozilla.org/en-\n US/docs/Web/SVG/Attribute/fill-rule\n\n The 'fillrule' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['evenodd', 'nonzero']\n\n Returns\n -------\n Any\n """\n return self["fillrule"]\n\n @fillrule.setter\n def fillrule(self, val):\n self["fillrule"] = val\n\n @property\n def label(self):\n """\n The 'label' property is an instance of Label\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.shape.Label`\n - A dict of string/value properties that will be passed\n to the Label constructor\n\n Returns\n -------\n plotly.graph_objs.layout.shape.Label\n """\n return self["label"]\n\n @label.setter\n def label(self, val):\n self["label"] = val\n\n @property\n def layer(self):\n """\n Specifies whether shapes are drawn below gridlines ("below"),\n between gridlines and traces ("between") or above traces\n ("above").\n\n The 'layer' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['below', 'above', 'between']\n\n Returns\n -------\n Any\n """\n return self["layer"]\n\n @layer.setter\n def layer(self, val):\n self["layer"] = val\n\n @property\n def legend(self):\n """\n Sets the reference to a legend to show this shape in.\n References to these legends are "legend", "legend2", "legend3",\n etc. Settings for these legends are set in the layout, under\n `layout.legend`, `layout.legend2`, etc.\n\n The 'legend' property is an identifier of a particular\n subplot, of type 'legend', that may be specified as the string 'legend'\n optionally followed by an integer >= 1\n (e.g. 'legend', 'legend1', 'legend2', 'legend3', etc.)\n\n Returns\n -------\n str\n """\n return self["legend"]\n\n @legend.setter\n def legend(self, val):\n self["legend"] = val\n\n @property\n def legendgroup(self):\n """\n Sets the legend group for this shape. Traces and shapes part of\n the same legend group hide/show at the same time when toggling\n legend items.\n\n The 'legendgroup' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["legendgroup"]\n\n @legendgroup.setter\n def legendgroup(self, val):\n self["legendgroup"] = val\n\n @property\n def legendgrouptitle(self):\n """\n The 'legendgrouptitle' property is an instance of Legendgrouptitle\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.shape.Legendgrouptitle`\n - A dict of string/value properties that will be passed\n to the Legendgrouptitle constructor\n\n Returns\n -------\n plotly.graph_objs.layout.shape.Legendgrouptitle\n """\n return self["legendgrouptitle"]\n\n @legendgrouptitle.setter\n def legendgrouptitle(self, val):\n self["legendgrouptitle"] = val\n\n @property\n def legendrank(self):\n """\n Sets the legend rank for this shape. Items and groups with\n smaller ranks are presented on top/left side while with\n "reversed" `legend.traceorder` they are on bottom/right side.\n The default legendrank is 1000, so that you can use ranks less\n than 1000 to place certain items before all unranked items, and\n ranks greater than 1000 to go after all unranked items. When\n having unranked or equal rank items shapes would be displayed\n after traces i.e. according to their order in data and layout.\n\n The 'legendrank' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["legendrank"]\n\n @legendrank.setter\n def legendrank(self, val):\n self["legendrank"] = val\n\n @property\n def legendwidth(self):\n """\n Sets the width (in px or fraction) of the legend for this\n shape.\n\n The 'legendwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["legendwidth"]\n\n @legendwidth.setter\n def legendwidth(self, val):\n self["legendwidth"] = val\n\n @property\n def line(self):\n """\n The 'line' property is an instance of Line\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.shape.Line`\n - A dict of string/value properties that will be passed\n to the Line constructor\n\n Returns\n -------\n plotly.graph_objs.layout.shape.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def name(self):\n """\n When used in a template, named items are created in the output\n figure in addition to any items the figure already has in this\n array. You can modify these items in the output figure by\n making your own item with `templateitemname` matching this\n `name` alongside your modifications (including `visible: false`\n or `enabled: false` to hide it). Has no effect outside of a\n template.\n\n The 'name' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["name"]\n\n @name.setter\n def name(self, val):\n self["name"] = val\n\n @property\n def opacity(self):\n """\n Sets the opacity of the shape.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def path(self):\n """\n For `type` "path" - a valid SVG path with the pixel values\n replaced by data values in `xsizemode`/`ysizemode` being\n "scaled" and taken unmodified as pixels relative to `xanchor`\n and `yanchor` in case of "pixel" size mode. There are a few\n restrictions / quirks only absolute instructions, not relative.\n So the allowed segments are: M, L, H, V, Q, C, T, S, and Z arcs\n (A) are not allowed because radius rx and ry are relative. In\n the future we could consider supporting relative commands, but\n we would have to decide on how to handle date and log axes.\n Note that even as is, Q and C Bezier paths that are smooth on\n linear axes may not be smooth on log, and vice versa. no\n chained "polybezier" commands - specify the segment type for\n each one. On category axes, values are numbers scaled to the\n serial numbers of categories because using the categories\n themselves there would be no way to describe fractional\n positions On data axes: because space and T are both normal\n components of path strings, we can't use either to separate\n date from time parts. Therefore we'll use underscore for this\n purpose: 2015-02-21_13:45:56.789\n\n The 'path' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["path"]\n\n @path.setter\n def path(self, val):\n self["path"] = val\n\n @property\n def showlegend(self):\n """\n Determines whether or not this shape is shown in the legend.\n\n The 'showlegend' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showlegend"]\n\n @showlegend.setter\n def showlegend(self, val):\n self["showlegend"] = val\n\n @property\n def templateitemname(self):\n """\n Used to refer to a named item in this array in the template.\n Named items from the template will be created even without a\n matching item in the input figure, but you can modify one by\n making an item with `templateitemname` matching its `name`,\n alongside your modifications (including `visible: false` or\n `enabled: false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you explicitly\n show it with `visible: true`.\n\n The 'templateitemname' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["templateitemname"]\n\n @templateitemname.setter\n def templateitemname(self, val):\n self["templateitemname"] = val\n\n @property\n def type(self):\n """\n Specifies the shape type to be drawn. If "line", a line is\n drawn from (`x0`,`y0`) to (`x1`,`y1`) with respect to the axes'\n sizing mode. If "circle", a circle is drawn from\n ((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius (|(`x0`+`x1`)/2 -\n `x0`|, |(`y0`+`y1`)/2 -`y0`)|) with respect to the axes' sizing\n mode. If "rect", a rectangle is drawn linking (`x0`,`y0`),\n (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`) with respect\n to the axes' sizing mode. If "path", draw a custom SVG path\n using `path`. with respect to the axes' sizing mode.\n\n The 'type' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['circle', 'rect', 'path', 'line']\n\n Returns\n -------\n Any\n """\n return self["type"]\n\n @type.setter\n def type(self, val):\n self["type"] = val\n\n @property\n def visible(self):\n """\n Determines whether or not this shape is visible. If\n "legendonly", the shape is not drawn, but can appear as a\n legend item (provided that the legend itself is visible).\n\n The 'visible' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n [True, False, 'legendonly']\n\n Returns\n -------\n Any\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def x0(self):\n """\n Sets the shape's starting x position. See `type` and\n `xsizemode` for more info.\n\n The 'x0' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["x0"]\n\n @x0.setter\n def x0(self, val):\n self["x0"] = val\n\n @property\n def x0shift(self):\n """\n Shifts `x0` away from the center of the category when `xref` is\n a "category" or "multicategory" axis. -0.5 corresponds to the\n start of the category and 0.5 corresponds to the end of the\n category.\n\n The 'x0shift' property is a number and may be specified as:\n - An int or float in the interval [-1, 1]\n\n Returns\n -------\n int|float\n """\n return self["x0shift"]\n\n @x0shift.setter\n def x0shift(self, val):\n self["x0shift"] = val\n\n @property\n def x1(self):\n """\n Sets the shape's end x position. See `type` and `xsizemode` for\n more info.\n\n The 'x1' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["x1"]\n\n @x1.setter\n def x1(self, val):\n self["x1"] = val\n\n @property\n def x1shift(self):\n """\n Shifts `x1` away from the center of the category when `xref` is\n a "category" or "multicategory" axis. -0.5 corresponds to the\n start of the category and 0.5 corresponds to the end of the\n category.\n\n The 'x1shift' property is a number and may be specified as:\n - An int or float in the interval [-1, 1]\n\n Returns\n -------\n int|float\n """\n return self["x1shift"]\n\n @x1shift.setter\n def x1shift(self, val):\n self["x1shift"] = val\n\n @property\n def xanchor(self):\n """\n Only relevant in conjunction with `xsizemode` set to "pixel".\n Specifies the anchor point on the x axis to which `x0`, `x1`\n and x coordinates within `path` are relative to. E.g. useful to\n attach a pixel sized shape to a certain data value. No effect\n when `xsizemode` not set to "pixel".\n\n The 'xanchor' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["xanchor"]\n\n @xanchor.setter\n def xanchor(self, val):\n self["xanchor"] = val\n\n @property\n def xref(self):\n """\n Sets the shape's x coordinate axis. If set to a x axis id (e.g.\n "x" or "x2"), the `x` position refers to a x coordinate. If set\n to "paper", the `x` position refers to the distance from the\n left of the plotting area in normalized coordinates where 0 (1)\n corresponds to the left (right). If set to a x axis ID followed\n by "domain" (separated by a space), the position behaves like\n for "paper", but refers to the distance in fractions of the\n domain length from the left of the domain of that axis: e.g.,\n *x2 domain* refers to the domain of the second x axis and a x\n position of 0.5 refers to the point between the left and the\n right of the domain of the second x axis.\n\n The 'xref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['paper']\n - A string that matches one of the following regular expressions:\n ['^x([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n Any\n """\n return self["xref"]\n\n @xref.setter\n def xref(self, val):\n self["xref"] = val\n\n @property\n def xsizemode(self):\n """\n Sets the shapes's sizing mode along the x axis. If set to\n "scaled", `x0`, `x1` and x coordinates within `path` refer to\n data values on the x axis or a fraction of the plot area's\n width (`xref` set to "paper"). If set to "pixel", `xanchor`\n specifies the x position in terms of data or plot fraction but\n `x0`, `x1` and x coordinates within `path` are pixels relative\n to `xanchor`. This way, the shape can have a fixed width while\n maintaining a position relative to data or plot fraction.\n\n The 'xsizemode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['scaled', 'pixel']\n\n Returns\n -------\n Any\n """\n return self["xsizemode"]\n\n @xsizemode.setter\n def xsizemode(self, val):\n self["xsizemode"] = val\n\n @property\n def y0(self):\n """\n Sets the shape's starting y position. See `type` and\n `ysizemode` for more info.\n\n The 'y0' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["y0"]\n\n @y0.setter\n def y0(self, val):\n self["y0"] = val\n\n @property\n def y0shift(self):\n """\n Shifts `y0` away from the center of the category when `yref` is\n a "category" or "multicategory" axis. -0.5 corresponds to the\n start of the category and 0.5 corresponds to the end of the\n category.\n\n The 'y0shift' property is a number and may be specified as:\n - An int or float in the interval [-1, 1]\n\n Returns\n -------\n int|float\n """\n return self["y0shift"]\n\n @y0shift.setter\n def y0shift(self, val):\n self["y0shift"] = val\n\n @property\n def y1(self):\n """\n Sets the shape's end y position. See `type` and `ysizemode` for\n more info.\n\n The 'y1' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["y1"]\n\n @y1.setter\n def y1(self, val):\n self["y1"] = val\n\n @property\n def y1shift(self):\n """\n Shifts `y1` away from the center of the category when `yref` is\n a "category" or "multicategory" axis. -0.5 corresponds to the\n start of the category and 0.5 corresponds to the end of the\n category.\n\n The 'y1shift' property is a number and may be specified as:\n - An int or float in the interval [-1, 1]\n\n Returns\n -------\n int|float\n """\n return self["y1shift"]\n\n @y1shift.setter\n def y1shift(self, val):\n self["y1shift"] = val\n\n @property\n def yanchor(self):\n """\n Only relevant in conjunction with `ysizemode` set to "pixel".\n Specifies the anchor point on the y axis to which `y0`, `y1`\n and y coordinates within `path` are relative to. E.g. useful to\n attach a pixel sized shape to a certain data value. No effect\n when `ysizemode` not set to "pixel".\n\n The 'yanchor' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["yanchor"]\n\n @yanchor.setter\n def yanchor(self, val):\n self["yanchor"] = val\n\n @property\n def yref(self):\n """\n Sets the shape's y coordinate axis. If set to a y axis id (e.g.\n "y" or "y2"), the `y` position refers to a y coordinate. If set\n to "paper", the `y` position refers to the distance from the\n bottom of the plotting area in normalized coordinates where 0\n (1) corresponds to the bottom (top). If set to a y axis ID\n followed by "domain" (separated by a space), the position\n behaves like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the domain of\n that axis: e.g., *y2 domain* refers to the domain of the second\n y axis and a y position of 0.5 refers to the point between the\n bottom and the top of the domain of the second y axis.\n\n The 'yref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['paper']\n - A string that matches one of the following regular expressions:\n ['^y([2-9]|[1-9][0-9]+)?( domain)?$']\n\n Returns\n -------\n Any\n """\n return self["yref"]\n\n @yref.setter\n def yref(self, val):\n self["yref"] = val\n\n @property\n def ysizemode(self):\n """\n Sets the shapes's sizing mode along the y axis. If set to\n "scaled", `y0`, `y1` and y coordinates within `path` refer to\n data values on the y axis or a fraction of the plot area's\n height (`yref` set to "paper"). If set to "pixel", `yanchor`\n specifies the y position in terms of data or plot fraction but\n `y0`, `y1` and y coordinates within `path` are pixels relative\n to `yanchor`. This way, the shape can have a fixed height while\n maintaining a position relative to data or plot fraction.\n\n The 'ysizemode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['scaled', 'pixel']\n\n Returns\n -------\n Any\n """\n return self["ysizemode"]\n\n @ysizemode.setter\n def ysizemode(self, val):\n self["ysizemode"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n editable\n Determines whether the shape could be activated for\n edit or not. Has no effect when the older editable\n shapes mode is enabled via `config.editable` or\n `config.edits.shapePosition`.\n fillcolor\n Sets the color filling the shape's interior. Only\n applies to closed shapes.\n fillrule\n Determines which regions of complex paths constitute\n the interior. For more info please visit\n https://developer.mozilla.org/en-\n US/docs/Web/SVG/Attribute/fill-rule\n label\n :class:`plotly.graph_objects.layout.shape.Label`\n instance or dict with compatible properties\n layer\n Specifies whether shapes are drawn below gridlines\n ("below"), between gridlines and traces ("between") or\n above traces ("above").\n legend\n Sets the reference to a legend to show this shape in.\n References to these legends are "legend", "legend2",\n "legend3", etc. Settings for these legends are set in\n the layout, under `layout.legend`, `layout.legend2`,\n etc.\n legendgroup\n Sets the legend group for this shape. Traces and shapes\n part of the same legend group hide/show at the same\n time when toggling legend items.\n legendgrouptitle\n :class:`plotly.graph_objects.layout.shape.Legendgroupti\n tle` instance or dict with compatible properties\n legendrank\n Sets the legend rank for this shape. Items and groups\n with smaller ranks are presented on top/left side while\n with "reversed" `legend.traceorder` they are on\n bottom/right side. The default legendrank is 1000, so\n that you can use ranks less than 1000 to place certain\n items before all unranked items, and ranks greater than\n 1000 to go after all unranked items. When having\n unranked or equal rank items shapes would be displayed\n after traces i.e. according to their order in data and\n layout.\n legendwidth\n Sets the width (in px or fraction) of the legend for\n this shape.\n line\n :class:`plotly.graph_objects.layout.shape.Line`\n instance or dict with compatible properties\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n opacity\n Sets the opacity of the shape.\n path\n For `type` "path" - a valid SVG path with the pixel\n values replaced by data values in\n `xsizemode`/`ysizemode` being "scaled" and taken\n unmodified as pixels relative to `xanchor` and\n `yanchor` in case of "pixel" size mode. There are a few\n restrictions / quirks only absolute instructions, not\n relative. So the allowed segments are: M, L, H, V, Q,\n C, T, S, and Z arcs (A) are not allowed because radius\n rx and ry are relative. In the future we could consider\n supporting relative commands, but we would have to\n decide on how to handle date and log axes. Note that\n even as is, Q and C Bezier paths that are smooth on\n linear axes may not be smooth on log, and vice versa.\n no chained "polybezier" commands - specify the segment\n type for each one. On category axes, values are numbers\n scaled to the serial numbers of categories because\n using the categories themselves there would be no way\n to describe fractional positions On data axes: because\n space and T are both normal components of path strings,\n we can't use either to separate date from time parts.\n Therefore we'll use underscore for this purpose:\n 2015-02-21_13:45:56.789\n showlegend\n Determines whether or not this shape is shown in the\n legend.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n type\n Specifies the shape type to be drawn. If "line", a line\n is drawn from (`x0`,`y0`) to (`x1`,`y1`) with respect\n to the axes' sizing mode. If "circle", a circle is\n drawn from ((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius\n (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|) with\n respect to the axes' sizing mode. If "rect", a\n rectangle is drawn linking (`x0`,`y0`), (`x1`,`y0`),\n (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`) with respect to\n the axes' sizing mode. If "path", draw a custom SVG\n path using `path`. with respect to the axes' sizing\n mode.\n visible\n Determines whether or not this shape is visible. If\n "legendonly", the shape is not drawn, but can appear as\n a legend item (provided that the legend itself is\n visible).\n x0\n Sets the shape's starting x position. See `type` and\n `xsizemode` for more info.\n x0shift\n Shifts `x0` away from the center of the category when\n `xref` is a "category" or "multicategory" axis. -0.5\n corresponds to the start of the category and 0.5\n corresponds to the end of the category.\n x1\n Sets the shape's end x position. See `type` and\n `xsizemode` for more info.\n x1shift\n Shifts `x1` away from the center of the category when\n `xref` is a "category" or "multicategory" axis. -0.5\n corresponds to the start of the category and 0.5\n corresponds to the end of the category.\n xanchor\n Only relevant in conjunction with `xsizemode` set to\n "pixel". Specifies the anchor point on the x axis to\n which `x0`, `x1` and x coordinates within `path` are\n relative to. E.g. useful to attach a pixel sized shape\n to a certain data value. No effect when `xsizemode` not\n set to "pixel".\n xref\n Sets the shape's x coordinate axis. If set to a x axis\n id (e.g. "x" or "x2"), the `x` position refers to a x\n coordinate. If set to "paper", the `x` position refers\n to the distance from the left of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n left (right). If set to a x axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the left of the\n domain of that axis: e.g., *x2 domain* refers to the\n domain of the second x axis and a x position of 0.5\n refers to the point between the left and the right of\n the domain of the second x axis.\n xsizemode\n Sets the shapes's sizing mode along the x axis. If set\n to "scaled", `x0`, `x1` and x coordinates within `path`\n refer to data values on the x axis or a fraction of the\n plot area's width (`xref` set to "paper"). If set to\n "pixel", `xanchor` specifies the x position in terms of\n data or plot fraction but `x0`, `x1` and x coordinates\n within `path` are pixels relative to `xanchor`. This\n way, the shape can have a fixed width while maintaining\n a position relative to data or plot fraction.\n y0\n Sets the shape's starting y position. See `type` and\n `ysizemode` for more info.\n y0shift\n Shifts `y0` away from the center of the category when\n `yref` is a "category" or "multicategory" axis. -0.5\n corresponds to the start of the category and 0.5\n corresponds to the end of the category.\n y1\n Sets the shape's end y position. See `type` and\n `ysizemode` for more info.\n y1shift\n Shifts `y1` away from the center of the category when\n `yref` is a "category" or "multicategory" axis. -0.5\n corresponds to the start of the category and 0.5\n corresponds to the end of the category.\n yanchor\n Only relevant in conjunction with `ysizemode` set to\n "pixel". Specifies the anchor point on the y axis to\n which `y0`, `y1` and y coordinates within `path` are\n relative to. E.g. useful to attach a pixel sized shape\n to a certain data value. No effect when `ysizemode` not\n set to "pixel".\n yref\n Sets the shape's y coordinate axis. If set to a y axis\n id (e.g. "y" or "y2"), the `y` position refers to a y\n coordinate. If set to "paper", the `y` position refers\n to the distance from the bottom of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n bottom (top). If set to a y axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the\n domain of that axis: e.g., *y2 domain* refers to the\n domain of the second y axis and a y position of 0.5\n refers to the point between the bottom and the top of\n the domain of the second y axis.\n ysizemode\n Sets the shapes's sizing mode along the y axis. If set\n to "scaled", `y0`, `y1` and y coordinates within `path`\n refer to data values on the y axis or a fraction of the\n plot area's height (`yref` set to "paper"). If set to\n "pixel", `yanchor` specifies the y position in terms of\n data or plot fraction but `y0`, `y1` and y coordinates\n within `path` are pixels relative to `yanchor`. This\n way, the shape can have a fixed height while\n maintaining a position relative to data or plot\n fraction.\n """\n\n def __init__(\n self,\n arg=None,\n editable=None,\n fillcolor=None,\n fillrule=None,\n label=None,\n layer=None,\n legend=None,\n legendgroup=None,\n legendgrouptitle=None,\n legendrank=None,\n legendwidth=None,\n line=None,\n name=None,\n opacity=None,\n path=None,\n showlegend=None,\n templateitemname=None,\n type=None,\n visible=None,\n x0=None,\n x0shift=None,\n x1=None,\n x1shift=None,\n xanchor=None,\n xref=None,\n xsizemode=None,\n y0=None,\n y0shift=None,\n y1=None,\n y1shift=None,\n yanchor=None,\n yref=None,\n ysizemode=None,\n **kwargs,\n ):\n """\n Construct a new Shape object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Shape`\n editable\n Determines whether the shape could be activated for\n edit or not. Has no effect when the older editable\n shapes mode is enabled via `config.editable` or\n `config.edits.shapePosition`.\n fillcolor\n Sets the color filling the shape's interior. Only\n applies to closed shapes.\n fillrule\n Determines which regions of complex paths constitute\n the interior. For more info please visit\n https://developer.mozilla.org/en-\n US/docs/Web/SVG/Attribute/fill-rule\n label\n :class:`plotly.graph_objects.layout.shape.Label`\n instance or dict with compatible properties\n layer\n Specifies whether shapes are drawn below gridlines\n ("below"), between gridlines and traces ("between") or\n above traces ("above").\n legend\n Sets the reference to a legend to show this shape in.\n References to these legends are "legend", "legend2",\n "legend3", etc. Settings for these legends are set in\n the layout, under `layout.legend`, `layout.legend2`,\n etc.\n legendgroup\n Sets the legend group for this shape. Traces and shapes\n part of the same legend group hide/show at the same\n time when toggling legend items.\n legendgrouptitle\n :class:`plotly.graph_objects.layout.shape.Legendgroupti\n tle` instance or dict with compatible properties\n legendrank\n Sets the legend rank for this shape. Items and groups\n with smaller ranks are presented on top/left side while\n with "reversed" `legend.traceorder` they are on\n bottom/right side. The default legendrank is 1000, so\n that you can use ranks less than 1000 to place certain\n items before all unranked items, and ranks greater than\n 1000 to go after all unranked items. When having\n unranked or equal rank items shapes would be displayed\n after traces i.e. according to their order in data and\n layout.\n legendwidth\n Sets the width (in px or fraction) of the legend for\n this shape.\n line\n :class:`plotly.graph_objects.layout.shape.Line`\n instance or dict with compatible properties\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n opacity\n Sets the opacity of the shape.\n path\n For `type` "path" - a valid SVG path with the pixel\n values replaced by data values in\n `xsizemode`/`ysizemode` being "scaled" and taken\n unmodified as pixels relative to `xanchor` and\n `yanchor` in case of "pixel" size mode. There are a few\n restrictions / quirks only absolute instructions, not\n relative. So the allowed segments are: M, L, H, V, Q,\n C, T, S, and Z arcs (A) are not allowed because radius\n rx and ry are relative. In the future we could consider\n supporting relative commands, but we would have to\n decide on how to handle date and log axes. Note that\n even as is, Q and C Bezier paths that are smooth on\n linear axes may not be smooth on log, and vice versa.\n no chained "polybezier" commands - specify the segment\n type for each one. On category axes, values are numbers\n scaled to the serial numbers of categories because\n using the categories themselves there would be no way\n to describe fractional positions On data axes: because\n space and T are both normal components of path strings,\n we can't use either to separate date from time parts.\n Therefore we'll use underscore for this purpose:\n 2015-02-21_13:45:56.789\n showlegend\n Determines whether or not this shape is shown in the\n legend.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n type\n Specifies the shape type to be drawn. If "line", a line\n is drawn from (`x0`,`y0`) to (`x1`,`y1`) with respect\n to the axes' sizing mode. If "circle", a circle is\n drawn from ((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius\n (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|) with\n respect to the axes' sizing mode. If "rect", a\n rectangle is drawn linking (`x0`,`y0`), (`x1`,`y0`),\n (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`) with respect to\n the axes' sizing mode. If "path", draw a custom SVG\n path using `path`. with respect to the axes' sizing\n mode.\n visible\n Determines whether or not this shape is visible. If\n "legendonly", the shape is not drawn, but can appear as\n a legend item (provided that the legend itself is\n visible).\n x0\n Sets the shape's starting x position. See `type` and\n `xsizemode` for more info.\n x0shift\n Shifts `x0` away from the center of the category when\n `xref` is a "category" or "multicategory" axis. -0.5\n corresponds to the start of the category and 0.5\n corresponds to the end of the category.\n x1\n Sets the shape's end x position. See `type` and\n `xsizemode` for more info.\n x1shift\n Shifts `x1` away from the center of the category when\n `xref` is a "category" or "multicategory" axis. -0.5\n corresponds to the start of the category and 0.5\n corresponds to the end of the category.\n xanchor\n Only relevant in conjunction with `xsizemode` set to\n "pixel". Specifies the anchor point on the x axis to\n which `x0`, `x1` and x coordinates within `path` are\n relative to. E.g. useful to attach a pixel sized shape\n to a certain data value. No effect when `xsizemode` not\n set to "pixel".\n xref\n Sets the shape's x coordinate axis. If set to a x axis\n id (e.g. "x" or "x2"), the `x` position refers to a x\n coordinate. If set to "paper", the `x` position refers\n to the distance from the left of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n left (right). If set to a x axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the left of the\n domain of that axis: e.g., *x2 domain* refers to the\n domain of the second x axis and a x position of 0.5\n refers to the point between the left and the right of\n the domain of the second x axis.\n xsizemode\n Sets the shapes's sizing mode along the x axis. If set\n to "scaled", `x0`, `x1` and x coordinates within `path`\n refer to data values on the x axis or a fraction of the\n plot area's width (`xref` set to "paper"). If set to\n "pixel", `xanchor` specifies the x position in terms of\n data or plot fraction but `x0`, `x1` and x coordinates\n within `path` are pixels relative to `xanchor`. This\n way, the shape can have a fixed width while maintaining\n a position relative to data or plot fraction.\n y0\n Sets the shape's starting y position. See `type` and\n `ysizemode` for more info.\n y0shift\n Shifts `y0` away from the center of the category when\n `yref` is a "category" or "multicategory" axis. -0.5\n corresponds to the start of the category and 0.5\n corresponds to the end of the category.\n y1\n Sets the shape's end y position. See `type` and\n `ysizemode` for more info.\n y1shift\n Shifts `y1` away from the center of the category when\n `yref` is a "category" or "multicategory" axis. -0.5\n corresponds to the start of the category and 0.5\n corresponds to the end of the category.\n yanchor\n Only relevant in conjunction with `ysizemode` set to\n "pixel". Specifies the anchor point on the y axis to\n which `y0`, `y1` and y coordinates within `path` are\n relative to. E.g. useful to attach a pixel sized shape\n to a certain data value. No effect when `ysizemode` not\n set to "pixel".\n yref\n Sets the shape's y coordinate axis. If set to a y axis\n id (e.g. "y" or "y2"), the `y` position refers to a y\n coordinate. If set to "paper", the `y` position refers\n to the distance from the bottom of the plotting area in\n normalized coordinates where 0 (1) corresponds to the\n bottom (top). If set to a y axis ID followed by\n "domain" (separated by a space), the position behaves\n like for "paper", but refers to the distance in\n fractions of the domain length from the bottom of the\n domain of that axis: e.g., *y2 domain* refers to the\n domain of the second y axis and a y position of 0.5\n refers to the point between the bottom and the top of\n the domain of the second y axis.\n ysizemode\n Sets the shapes's sizing mode along the y axis. If set\n to "scaled", `y0`, `y1` and y coordinates within `path`\n refer to data values on the y axis or a fraction of the\n plot area's height (`yref` set to "paper"). If set to\n "pixel", `yanchor` specifies the y position in terms of\n data or plot fraction but `y0`, `y1` and y coordinates\n within `path` are pixels relative to `yanchor`. This\n way, the shape can have a fixed height while\n maintaining a position relative to data or plot\n fraction.\n\n Returns\n -------\n Shape\n """\n super().__init__("shapes")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Shape\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Shape`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("editable", arg, editable)\n self._set_property("fillcolor", arg, fillcolor)\n self._set_property("fillrule", arg, fillrule)\n self._set_property("label", arg, label)\n self._set_property("layer", arg, layer)\n self._set_property("legend", arg, legend)\n self._set_property("legendgroup", arg, legendgroup)\n self._set_property("legendgrouptitle", arg, legendgrouptitle)\n self._set_property("legendrank", arg, legendrank)\n self._set_property("legendwidth", arg, legendwidth)\n self._set_property("line", arg, line)\n self._set_property("name", arg, name)\n self._set_property("opacity", arg, opacity)\n self._set_property("path", arg, path)\n self._set_property("showlegend", arg, showlegend)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("type", arg, type)\n self._set_property("visible", arg, visible)\n self._set_property("x0", arg, x0)\n self._set_property("x0shift", arg, x0shift)\n self._set_property("x1", arg, x1)\n self._set_property("x1shift", arg, x1shift)\n self._set_property("xanchor", arg, xanchor)\n self._set_property("xref", arg, xref)\n self._set_property("xsizemode", arg, xsizemode)\n self._set_property("y0", arg, y0)\n self._set_property("y0shift", arg, y0shift)\n self._set_property("y1", arg, y1)\n self._set_property("y1shift", arg, y1shift)\n self._set_property("yanchor", arg, yanchor)\n self._set_property("yref", arg, yref)\n self._set_property("ysizemode", arg, ysizemode)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_shape.py
_shape.py
Python
48,186
0.95
0.100233
0.003472
node-utils
500
2023-08-15T23:14:03.531192
MIT
false
4a0d8cfe06fedd566ca0f4211d8160ed
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Slider(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.slider"\n _valid_props = {\n "active",\n "activebgcolor",\n "bgcolor",\n "bordercolor",\n "borderwidth",\n "currentvalue",\n "font",\n "len",\n "lenmode",\n "minorticklen",\n "name",\n "pad",\n "stepdefaults",\n "steps",\n "templateitemname",\n "tickcolor",\n "ticklen",\n "tickwidth",\n "transition",\n "visible",\n "x",\n "xanchor",\n "y",\n "yanchor",\n }\n\n @property\n def active(self):\n """\n Determines which button (by index starting from 0) is\n considered active.\n\n The 'active' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["active"]\n\n @active.setter\n def active(self, val):\n self["active"] = val\n\n @property\n def activebgcolor(self):\n """\n Sets the background color of the slider grip while dragging.\n\n The 'activebgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["activebgcolor"]\n\n @activebgcolor.setter\n def activebgcolor(self, val):\n self["activebgcolor"] = val\n\n @property\n def bgcolor(self):\n """\n Sets the background color of the slider.\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the color of the border enclosing the slider.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def borderwidth(self):\n """\n Sets the width (in px) of the border enclosing the slider.\n\n The 'borderwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["borderwidth"]\n\n @borderwidth.setter\n def borderwidth(self, val):\n self["borderwidth"] = val\n\n @property\n def currentvalue(self):\n """\n The 'currentvalue' property is an instance of Currentvalue\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.slider.Currentvalue`\n - A dict of string/value properties that will be passed\n to the Currentvalue constructor\n\n Returns\n -------\n plotly.graph_objs.layout.slider.Currentvalue\n """\n return self["currentvalue"]\n\n @currentvalue.setter\n def currentvalue(self, val):\n self["currentvalue"] = val\n\n @property\n def font(self):\n """\n Sets the font of the slider step labels.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.slider.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.layout.slider.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def len(self):\n """\n Sets the length of the slider This measure excludes the padding\n of both ends. That is, the slider's length is this length minus\n the padding on both ends.\n\n The 'len' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["len"]\n\n @len.setter\n def len(self, val):\n self["len"] = val\n\n @property\n def lenmode(self):\n """\n Determines whether this slider length is set in units of plot\n "fraction" or in *pixels. Use `len` to set the value.\n\n The 'lenmode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['fraction', 'pixels']\n\n Returns\n -------\n Any\n """\n return self["lenmode"]\n\n @lenmode.setter\n def lenmode(self, val):\n self["lenmode"] = val\n\n @property\n def minorticklen(self):\n """\n Sets the length in pixels of minor step tick marks\n\n The 'minorticklen' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["minorticklen"]\n\n @minorticklen.setter\n def minorticklen(self, val):\n self["minorticklen"] = val\n\n @property\n def name(self):\n """\n When used in a template, named items are created in the output\n figure in addition to any items the figure already has in this\n array. You can modify these items in the output figure by\n making your own item with `templateitemname` matching this\n `name` alongside your modifications (including `visible: false`\n or `enabled: false` to hide it). Has no effect outside of a\n template.\n\n The 'name' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["name"]\n\n @name.setter\n def name(self, val):\n self["name"] = val\n\n @property\n def pad(self):\n """\n Set the padding of the slider component along each side.\n\n The 'pad' property is an instance of Pad\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.slider.Pad`\n - A dict of string/value properties that will be passed\n to the Pad constructor\n\n Returns\n -------\n plotly.graph_objs.layout.slider.Pad\n """\n return self["pad"]\n\n @pad.setter\n def pad(self, val):\n self["pad"] = val\n\n @property\n def steps(self):\n """\n The 'steps' property is a tuple of instances of\n Step that may be specified as:\n - A list or tuple of instances of plotly.graph_objs.layout.slider.Step\n - A list or tuple of dicts of string/value properties that\n will be passed to the Step constructor\n\n Returns\n -------\n tuple[plotly.graph_objs.layout.slider.Step]\n """\n return self["steps"]\n\n @steps.setter\n def steps(self, val):\n self["steps"] = val\n\n @property\n def stepdefaults(self):\n """\n When used in a template (as\n layout.template.layout.slider.stepdefaults), sets the default\n property values to use for elements of layout.slider.steps\n\n The 'stepdefaults' property is an instance of Step\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.slider.Step`\n - A dict of string/value properties that will be passed\n to the Step constructor\n\n Returns\n -------\n plotly.graph_objs.layout.slider.Step\n """\n return self["stepdefaults"]\n\n @stepdefaults.setter\n def stepdefaults(self, val):\n self["stepdefaults"] = val\n\n @property\n def templateitemname(self):\n """\n Used to refer to a named item in this array in the template.\n Named items from the template will be created even without a\n matching item in the input figure, but you can modify one by\n making an item with `templateitemname` matching its `name`,\n alongside your modifications (including `visible: false` or\n `enabled: false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you explicitly\n show it with `visible: true`.\n\n The 'templateitemname' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["templateitemname"]\n\n @templateitemname.setter\n def templateitemname(self, val):\n self["templateitemname"] = val\n\n @property\n def tickcolor(self):\n """\n Sets the color of the border enclosing the slider.\n\n The 'tickcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["tickcolor"]\n\n @tickcolor.setter\n def tickcolor(self, val):\n self["tickcolor"] = val\n\n @property\n def ticklen(self):\n """\n Sets the length in pixels of step tick marks\n\n The 'ticklen' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["ticklen"]\n\n @ticklen.setter\n def ticklen(self, val):\n self["ticklen"] = val\n\n @property\n def tickwidth(self):\n """\n Sets the tick width (in px).\n\n The 'tickwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["tickwidth"]\n\n @tickwidth.setter\n def tickwidth(self, val):\n self["tickwidth"] = val\n\n @property\n def transition(self):\n """\n The 'transition' property is an instance of Transition\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.slider.Transition`\n - A dict of string/value properties that will be passed\n to the Transition constructor\n\n Returns\n -------\n plotly.graph_objs.layout.slider.Transition\n """\n return self["transition"]\n\n @transition.setter\n def transition(self, val):\n self["transition"] = val\n\n @property\n def visible(self):\n """\n Determines whether or not the slider is visible.\n\n The 'visible' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def x(self):\n """\n Sets the x position (in normalized coordinates) of the slider.\n\n The 'x' property is a number and may be specified as:\n - An int or float in the interval [-2, 3]\n\n Returns\n -------\n int|float\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def xanchor(self):\n """\n Sets the slider's horizontal position anchor. This anchor binds\n the `x` position to the "left", "center" or "right" of the\n range selector.\n\n The 'xanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'left', 'center', 'right']\n\n Returns\n -------\n Any\n """\n return self["xanchor"]\n\n @xanchor.setter\n def xanchor(self, val):\n self["xanchor"] = val\n\n @property\n def y(self):\n """\n Sets the y position (in normalized coordinates) of the slider.\n\n The 'y' property is a number and may be specified as:\n - An int or float in the interval [-2, 3]\n\n Returns\n -------\n int|float\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def yanchor(self):\n """\n Sets the slider's vertical position anchor This anchor binds\n the `y` position to the "top", "middle" or "bottom" of the\n range selector.\n\n The 'yanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'top', 'middle', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["yanchor"]\n\n @yanchor.setter\n def yanchor(self, val):\n self["yanchor"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n active\n Determines which button (by index starting from 0) is\n considered active.\n activebgcolor\n Sets the background color of the slider grip while\n dragging.\n bgcolor\n Sets the background color of the slider.\n bordercolor\n Sets the color of the border enclosing the slider.\n borderwidth\n Sets the width (in px) of the border enclosing the\n slider.\n currentvalue\n :class:`plotly.graph_objects.layout.slider.Currentvalue\n ` instance or dict with compatible properties\n font\n Sets the font of the slider step labels.\n len\n Sets the length of the slider This measure excludes the\n padding of both ends. That is, the slider's length is\n this length minus the padding on both ends.\n lenmode\n Determines whether this slider length is set in units\n of plot "fraction" or in *pixels. Use `len` to set the\n value.\n minorticklen\n Sets the length in pixels of minor step tick marks\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n pad\n Set the padding of the slider component along each\n side.\n steps\n A tuple of\n :class:`plotly.graph_objects.layout.slider.Step`\n instances or dicts with compatible properties\n stepdefaults\n When used in a template (as\n layout.template.layout.slider.stepdefaults), sets the\n default property values to use for elements of\n layout.slider.steps\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n tickcolor\n Sets the color of the border enclosing the slider.\n ticklen\n Sets the length in pixels of step tick marks\n tickwidth\n Sets the tick width (in px).\n transition\n :class:`plotly.graph_objects.layout.slider.Transition`\n instance or dict with compatible properties\n visible\n Determines whether or not the slider is visible.\n x\n Sets the x position (in normalized coordinates) of the\n slider.\n xanchor\n Sets the slider's horizontal position anchor. This\n anchor binds the `x` position to the "left", "center"\n or "right" of the range selector.\n y\n Sets the y position (in normalized coordinates) of the\n slider.\n yanchor\n Sets the slider's vertical position anchor This anchor\n binds the `y` position to the "top", "middle" or\n "bottom" of the range selector.\n """\n\n def __init__(\n self,\n arg=None,\n active=None,\n activebgcolor=None,\n bgcolor=None,\n bordercolor=None,\n borderwidth=None,\n currentvalue=None,\n font=None,\n len=None,\n lenmode=None,\n minorticklen=None,\n name=None,\n pad=None,\n steps=None,\n stepdefaults=None,\n templateitemname=None,\n tickcolor=None,\n ticklen=None,\n tickwidth=None,\n transition=None,\n visible=None,\n x=None,\n xanchor=None,\n y=None,\n yanchor=None,\n **kwargs,\n ):\n """\n Construct a new Slider object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Slider`\n active\n Determines which button (by index starting from 0) is\n considered active.\n activebgcolor\n Sets the background color of the slider grip while\n dragging.\n bgcolor\n Sets the background color of the slider.\n bordercolor\n Sets the color of the border enclosing the slider.\n borderwidth\n Sets the width (in px) of the border enclosing the\n slider.\n currentvalue\n :class:`plotly.graph_objects.layout.slider.Currentvalue\n ` instance or dict with compatible properties\n font\n Sets the font of the slider step labels.\n len\n Sets the length of the slider This measure excludes the\n padding of both ends. That is, the slider's length is\n this length minus the padding on both ends.\n lenmode\n Determines whether this slider length is set in units\n of plot "fraction" or in *pixels. Use `len` to set the\n value.\n minorticklen\n Sets the length in pixels of minor step tick marks\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n pad\n Set the padding of the slider component along each\n side.\n steps\n A tuple of\n :class:`plotly.graph_objects.layout.slider.Step`\n instances or dicts with compatible properties\n stepdefaults\n When used in a template (as\n layout.template.layout.slider.stepdefaults), sets the\n default property values to use for elements of\n layout.slider.steps\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n tickcolor\n Sets the color of the border enclosing the slider.\n ticklen\n Sets the length in pixels of step tick marks\n tickwidth\n Sets the tick width (in px).\n transition\n :class:`plotly.graph_objects.layout.slider.Transition`\n instance or dict with compatible properties\n visible\n Determines whether or not the slider is visible.\n x\n Sets the x position (in normalized coordinates) of the\n slider.\n xanchor\n Sets the slider's horizontal position anchor. This\n anchor binds the `x` position to the "left", "center"\n or "right" of the range selector.\n y\n Sets the y position (in normalized coordinates) of the\n slider.\n yanchor\n Sets the slider's vertical position anchor This anchor\n binds the `y` position to the "top", "middle" or\n "bottom" of the range selector.\n\n Returns\n -------\n Slider\n """\n super().__init__("sliders")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Slider\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Slider`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("active", arg, active)\n self._set_property("activebgcolor", arg, activebgcolor)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("borderwidth", arg, borderwidth)\n self._set_property("currentvalue", arg, currentvalue)\n self._set_property("font", arg, font)\n self._set_property("len", arg, len)\n self._set_property("lenmode", arg, lenmode)\n self._set_property("minorticklen", arg, minorticklen)\n self._set_property("name", arg, name)\n self._set_property("pad", arg, pad)\n self._set_property("steps", arg, steps)\n self._set_property("stepdefaults", arg, stepdefaults)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("tickcolor", arg, tickcolor)\n self._set_property("ticklen", arg, ticklen)\n self._set_property("tickwidth", arg, tickwidth)\n self._set_property("transition", arg, transition)\n self._set_property("visible", arg, visible)\n self._set_property("x", arg, x)\n self._set_property("xanchor", arg, xanchor)\n self._set_property("y", arg, y)\n self._set_property("yanchor", arg, yanchor)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_slider.py
_slider.py
Python
24,393
0.95
0.096692
0.004392
python-kit
989
2025-04-04T04:14:52.106502
MIT
false
4c34060c520d3f998084c3c5eb65dfa7
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Smith(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.smith"\n _valid_props = {"bgcolor", "domain", "imaginaryaxis", "realaxis"}\n\n @property\n def bgcolor(self):\n """\n Set the background color of the subplot\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def domain(self):\n """\n The 'domain' property is an instance of Domain\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.smith.Domain`\n - A dict of string/value properties that will be passed\n to the Domain constructor\n\n Returns\n -------\n plotly.graph_objs.layout.smith.Domain\n """\n return self["domain"]\n\n @domain.setter\n def domain(self, val):\n self["domain"] = val\n\n @property\n def imaginaryaxis(self):\n """\n The 'imaginaryaxis' property is an instance of Imaginaryaxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.smith.Imaginaryaxis`\n - A dict of string/value properties that will be passed\n to the Imaginaryaxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.smith.Imaginaryaxis\n """\n return self["imaginaryaxis"]\n\n @imaginaryaxis.setter\n def imaginaryaxis(self, val):\n self["imaginaryaxis"] = val\n\n @property\n def realaxis(self):\n """\n The 'realaxis' property is an instance of Realaxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.smith.Realaxis`\n - A dict of string/value properties that will be passed\n to the Realaxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.smith.Realaxis\n """\n return self["realaxis"]\n\n @realaxis.setter\n def realaxis(self, val):\n self["realaxis"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n bgcolor\n Set the background color of the subplot\n domain\n :class:`plotly.graph_objects.layout.smith.Domain`\n instance or dict with compatible properties\n imaginaryaxis\n :class:`plotly.graph_objects.layout.smith.Imaginaryaxis\n ` instance or dict with compatible properties\n realaxis\n :class:`plotly.graph_objects.layout.smith.Realaxis`\n instance or dict with compatible properties\n """\n\n def __init__(\n self,\n arg=None,\n bgcolor=None,\n domain=None,\n imaginaryaxis=None,\n realaxis=None,\n **kwargs,\n ):\n """\n Construct a new Smith object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Smith`\n bgcolor\n Set the background color of the subplot\n domain\n :class:`plotly.graph_objects.layout.smith.Domain`\n instance or dict with compatible properties\n imaginaryaxis\n :class:`plotly.graph_objects.layout.smith.Imaginaryaxis\n ` instance or dict with compatible properties\n realaxis\n :class:`plotly.graph_objects.layout.smith.Realaxis`\n instance or dict with compatible properties\n\n Returns\n -------\n Smith\n """\n super().__init__("smith")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Smith\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Smith`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("domain", arg, domain)\n self._set_property("imaginaryaxis", arg, imaginaryaxis)\n self._set_property("realaxis", arg, realaxis)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_smith.py
_smith.py
Python
5,129
0.95
0.150602
0.020979
vue-tools
306
2024-12-31T20:37:05.952364
GPL-3.0
false
334f85b142e484e89c90aedeeda68b00
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\nimport warnings\n\n\nclass Template(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.template"\n _valid_props = {"data", "layout"}\n\n @property\n def data(self):\n """\n The 'data' property is an instance of Data\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.template.Data`\n - A dict of string/value properties that will be passed\n to the Data constructor\n\n Returns\n -------\n plotly.graph_objs.layout.template.Data\n """\n return self["data"]\n\n @data.setter\n def data(self, val):\n self["data"] = val\n\n @property\n def layout(self):\n """\n The 'layout' property is an instance of Layout\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.Layout`\n - A dict of string/value properties that will be passed\n to the Layout constructor\n\n Returns\n -------\n plotly.graph_objs.layout.template.Layout\n """\n return self["layout"]\n\n @layout.setter\n def layout(self, val):\n self["layout"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n data\n :class:`plotly.graph_objects.layout.template.Data`\n instance or dict with compatible properties\n layout\n :class:`plotly.graph_objects.Layout` instance or dict\n with compatible properties\n """\n\n def __init__(self, arg=None, data=None, layout=None, **kwargs):\n """\n Construct a new Template object\n\n Default attributes to be applied to the plot. This should be a\n dict with format: `{'layout': layoutTemplate, 'data':\n {trace_type: [traceTemplate, ...], ...}}` where\n `layoutTemplate` is a dict matching the structure of\n `figure.layout` and `traceTemplate` is a dict matching the\n structure of the trace with type `trace_type` (e.g. 'scatter').\n Alternatively, this may be specified as an instance of\n plotly.graph_objs.layout.Template. Trace templates are applied\n cyclically to traces of each type. Container arrays (eg\n `annotations`) have special handling: An object ending in\n `defaults` (eg `annotationdefaults`) is applied to each array\n item. But if an item has a `templateitemname` key we look in\n the template array for an item with matching `name` and apply\n that instead. If no matching `name` is found we mark the item\n invisible. Any named template item not referenced is appended\n to the end of the array, so this can be used to add a watermark\n annotation or a logo image, for example. To omit one of these\n items on the plot, make an item with matching\n `templateitemname` and `visible: false`.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Template`\n data\n :class:`plotly.graph_objects.layout.template.Data`\n instance or dict with compatible properties\n layout\n :class:`plotly.graph_objects.Layout` instance or dict\n with compatible properties\n\n Returns\n -------\n Template\n """\n super().__init__("template")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Template\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Template`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n # Template.data contains a 'scattermapbox' key, which causes a\n # go.Scattermapbox trace object to be created during validation.\n # In order to prevent false deprecation warnings from surfacing,\n # we suppress deprecation warnings for this line only.\n with warnings.catch_warnings():\n warnings.filterwarnings("ignore", category=DeprecationWarning)\n self._set_property("data", arg, data)\n self._set_property("layout", arg, layout)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_template.py
_template.py
Python
4,852
0.95
0.157895
0.051724
node-utils
998
2024-03-25T20:33:30.720771
BSD-3-Clause
false
8eaebeb899b82916806e3e3d20cca92c
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Ternary(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.ternary"\n _valid_props = {"aaxis", "baxis", "bgcolor", "caxis", "domain", "sum", "uirevision"}\n\n @property\n def aaxis(self):\n """\n The 'aaxis' property is an instance of Aaxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.ternary.Aaxis`\n - A dict of string/value properties that will be passed\n to the Aaxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.ternary.Aaxis\n """\n return self["aaxis"]\n\n @aaxis.setter\n def aaxis(self, val):\n self["aaxis"] = val\n\n @property\n def baxis(self):\n """\n The 'baxis' property is an instance of Baxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.ternary.Baxis`\n - A dict of string/value properties that will be passed\n to the Baxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.ternary.Baxis\n """\n return self["baxis"]\n\n @baxis.setter\n def baxis(self, val):\n self["baxis"] = val\n\n @property\n def bgcolor(self):\n """\n Set the background color of the subplot\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def caxis(self):\n """\n The 'caxis' property is an instance of Caxis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.ternary.Caxis`\n - A dict of string/value properties that will be passed\n to the Caxis constructor\n\n Returns\n -------\n plotly.graph_objs.layout.ternary.Caxis\n """\n return self["caxis"]\n\n @caxis.setter\n def caxis(self, val):\n self["caxis"] = val\n\n @property\n def domain(self):\n """\n The 'domain' property is an instance of Domain\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.ternary.Domain`\n - A dict of string/value properties that will be passed\n to the Domain constructor\n\n Returns\n -------\n plotly.graph_objs.layout.ternary.Domain\n """\n return self["domain"]\n\n @domain.setter\n def domain(self, val):\n self["domain"] = val\n\n @property\n def sum(self):\n """\n The number each triplet should sum to, and the maximum range of\n each axis\n\n The 'sum' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["sum"]\n\n @sum.setter\n def sum(self, val):\n self["sum"] = val\n\n @property\n def uirevision(self):\n """\n Controls persistence of user-driven changes in axis `min` and\n `title`, if not overridden in the individual axes. Defaults to\n `layout.uirevision`.\n\n The 'uirevision' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["uirevision"]\n\n @uirevision.setter\n def uirevision(self, val):\n self["uirevision"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n aaxis\n :class:`plotly.graph_objects.layout.ternary.Aaxis`\n instance or dict with compatible properties\n baxis\n :class:`plotly.graph_objects.layout.ternary.Baxis`\n instance or dict with compatible properties\n bgcolor\n Set the background color of the subplot\n caxis\n :class:`plotly.graph_objects.layout.ternary.Caxis`\n instance or dict with compatible properties\n domain\n :class:`plotly.graph_objects.layout.ternary.Domain`\n instance or dict with compatible properties\n sum\n The number each triplet should sum to, and the maximum\n range of each axis\n uirevision\n Controls persistence of user-driven changes in axis\n `min` and `title`, if not overridden in the individual\n axes. Defaults to `layout.uirevision`.\n """\n\n def __init__(\n self,\n arg=None,\n aaxis=None,\n baxis=None,\n bgcolor=None,\n caxis=None,\n domain=None,\n sum=None,\n uirevision=None,\n **kwargs,\n ):\n """\n Construct a new Ternary object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Ternary`\n aaxis\n :class:`plotly.graph_objects.layout.ternary.Aaxis`\n instance or dict with compatible properties\n baxis\n :class:`plotly.graph_objects.layout.ternary.Baxis`\n instance or dict with compatible properties\n bgcolor\n Set the background color of the subplot\n caxis\n :class:`plotly.graph_objects.layout.ternary.Caxis`\n instance or dict with compatible properties\n domain\n :class:`plotly.graph_objects.layout.ternary.Domain`\n instance or dict with compatible properties\n sum\n The number each triplet should sum to, and the maximum\n range of each axis\n uirevision\n Controls persistence of user-driven changes in axis\n `min` and `title`, if not overridden in the individual\n axes. Defaults to `layout.uirevision`.\n\n Returns\n -------\n Ternary\n """\n super().__init__("ternary")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Ternary\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Ternary`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("aaxis", arg, aaxis)\n self._set_property("baxis", arg, baxis)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("caxis", arg, caxis)\n self._set_property("domain", arg, domain)\n self._set_property("sum", arg, sum)\n self._set_property("uirevision", arg, uirevision)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_ternary.py
_ternary.py
Python
7,494
0.95
0.148
0.013889
vue-tools
981
2024-02-15T07:27:11.451313
BSD-3-Clause
false
3c07d0f22d861746320a3e5106f95efa
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Title(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.title"\n _valid_props = {\n "automargin",\n "font",\n "pad",\n "subtitle",\n "text",\n "x",\n "xanchor",\n "xref",\n "y",\n "yanchor",\n "yref",\n }\n\n @property\n def automargin(self):\n """\n Determines whether the title can automatically push the figure\n margins. If `yref='paper'` then the margin will expand to\n ensure that the title doesn’t overlap with the edges of the\n container. If `yref='container'` then the margins will ensure\n that the title doesn’t overlap with the plot area, tick labels,\n and axis titles. If `automargin=true` and the margins need to\n be expanded, then y will be set to a default 1 and yanchor will\n be set to an appropriate default to ensure that minimal margin\n space is needed. Note that when `yref='paper'`, only 1 or 0 are\n allowed y values. Invalid values will be reset to the default\n 1.\n\n The 'automargin' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["automargin"]\n\n @automargin.setter\n def automargin(self, val):\n self["automargin"] = val\n\n @property\n def font(self):\n """\n Sets the title font.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.title.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.layout.title.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def pad(self):\n """\n Sets the padding of the title. Each padding value only applies\n when the corresponding `xanchor`/`yanchor` value is set\n accordingly. E.g. for left padding to take effect, `xanchor`\n must be set to "left". The same rule applies if\n `xanchor`/`yanchor` is determined automatically. Padding is\n muted if the respective anchor value is "middle*/*center".\n\n The 'pad' property is an instance of Pad\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.title.Pad`\n - A dict of string/value properties that will be passed\n to the Pad constructor\n\n Returns\n -------\n plotly.graph_objs.layout.title.Pad\n """\n return self["pad"]\n\n @pad.setter\n def pad(self, val):\n self["pad"] = val\n\n @property\n def subtitle(self):\n """\n The 'subtitle' property is an instance of Subtitle\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.title.Subtitle`\n - A dict of string/value properties that will be passed\n to the Subtitle constructor\n\n Returns\n -------\n plotly.graph_objs.layout.title.Subtitle\n """\n return self["subtitle"]\n\n @subtitle.setter\n def subtitle(self, val):\n self["subtitle"] = val\n\n @property\n def text(self):\n """\n Sets the plot's title.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def x(self):\n """\n Sets the x position with respect to `xref` in normalized\n coordinates from 0 (left) to 1 (right).\n\n The 'x' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def xanchor(self):\n """\n Sets the title's horizontal alignment with respect to its x\n position. "left" means that the title starts at x, "right"\n means that the title ends at x and "center" means that the\n title's center is at x. "auto" divides `xref` by three and\n calculates the `xanchor` value automatically based on the value\n of `x`.\n\n The 'xanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'left', 'center', 'right']\n\n Returns\n -------\n Any\n """\n return self["xanchor"]\n\n @xanchor.setter\n def xanchor(self, val):\n self["xanchor"] = val\n\n @property\n def xref(self):\n """\n Sets the container `x` refers to. "container" spans the entire\n `width` of the plot. "paper" refers to the width of the\n plotting area only.\n\n The 'xref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['container', 'paper']\n\n Returns\n -------\n Any\n """\n return self["xref"]\n\n @xref.setter\n def xref(self, val):\n self["xref"] = val\n\n @property\n def y(self):\n """\n Sets the y position with respect to `yref` in normalized\n coordinates from 0 (bottom) to 1 (top). "auto" places the\n baseline of the title onto the vertical center of the top\n margin.\n\n The 'y' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def yanchor(self):\n """\n Sets the title's vertical alignment with respect to its y\n position. "top" means that the title's cap line is at y,\n "bottom" means that the title's baseline is at y and "middle"\n means that the title's midline is at y. "auto" divides `yref`\n by three and calculates the `yanchor` value automatically based\n on the value of `y`.\n\n The 'yanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'top', 'middle', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["yanchor"]\n\n @yanchor.setter\n def yanchor(self, val):\n self["yanchor"] = val\n\n @property\n def yref(self):\n """\n Sets the container `y` refers to. "container" spans the entire\n `height` of the plot. "paper" refers to the height of the\n plotting area only.\n\n The 'yref' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['container', 'paper']\n\n Returns\n -------\n Any\n """\n return self["yref"]\n\n @yref.setter\n def yref(self, val):\n self["yref"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n automargin\n Determines whether the title can automatically push the\n figure margins. If `yref='paper'` then the margin will\n expand to ensure that the title doesn’t overlap with\n the edges of the container. If `yref='container'` then\n the margins will ensure that the title doesn’t overlap\n with the plot area, tick labels, and axis titles. If\n `automargin=true` and the margins need to be expanded,\n then y will be set to a default 1 and yanchor will be\n set to an appropriate default to ensure that minimal\n margin space is needed. Note that when `yref='paper'`,\n only 1 or 0 are allowed y values. Invalid values will\n be reset to the default 1.\n font\n Sets the title font.\n pad\n Sets the padding of the title. Each padding value only\n applies when the corresponding `xanchor`/`yanchor`\n value is set accordingly. E.g. for left padding to take\n effect, `xanchor` must be set to "left". The same rule\n applies if `xanchor`/`yanchor` is determined\n automatically. Padding is muted if the respective\n anchor value is "middle*/*center".\n subtitle\n :class:`plotly.graph_objects.layout.title.Subtitle`\n instance or dict with compatible properties\n text\n Sets the plot's title.\n x\n Sets the x position with respect to `xref` in\n normalized coordinates from 0 (left) to 1 (right).\n xanchor\n Sets the title's horizontal alignment with respect to\n its x position. "left" means that the title starts at\n x, "right" means that the title ends at x and "center"\n means that the title's center is at x. "auto" divides\n `xref` by three and calculates the `xanchor` value\n automatically based on the value of `x`.\n xref\n Sets the container `x` refers to. "container" spans the\n entire `width` of the plot. "paper" refers to the width\n of the plotting area only.\n y\n Sets the y position with respect to `yref` in\n normalized coordinates from 0 (bottom) to 1 (top).\n "auto" places the baseline of the title onto the\n vertical center of the top margin.\n yanchor\n Sets the title's vertical alignment with respect to its\n y position. "top" means that the title's cap line is at\n y, "bottom" means that the title's baseline is at y and\n "middle" means that the title's midline is at y. "auto"\n divides `yref` by three and calculates the `yanchor`\n value automatically based on the value of `y`.\n yref\n Sets the container `y` refers to. "container" spans the\n entire `height` of the plot. "paper" refers to the\n height of the plotting area only.\n """\n\n def __init__(\n self,\n arg=None,\n automargin=None,\n font=None,\n pad=None,\n subtitle=None,\n text=None,\n x=None,\n xanchor=None,\n xref=None,\n y=None,\n yanchor=None,\n yref=None,\n **kwargs,\n ):\n """\n Construct a new Title object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.Title`\n automargin\n Determines whether the title can automatically push the\n figure margins. If `yref='paper'` then the margin will\n expand to ensure that the title doesn’t overlap with\n the edges of the container. If `yref='container'` then\n the margins will ensure that the title doesn’t overlap\n with the plot area, tick labels, and axis titles. If\n `automargin=true` and the margins need to be expanded,\n then y will be set to a default 1 and yanchor will be\n set to an appropriate default to ensure that minimal\n margin space is needed. Note that when `yref='paper'`,\n only 1 or 0 are allowed y values. Invalid values will\n be reset to the default 1.\n font\n Sets the title font.\n pad\n Sets the padding of the title. Each padding value only\n applies when the corresponding `xanchor`/`yanchor`\n value is set accordingly. E.g. for left padding to take\n effect, `xanchor` must be set to "left". The same rule\n applies if `xanchor`/`yanchor` is determined\n automatically. Padding is muted if the respective\n anchor value is "middle*/*center".\n subtitle\n :class:`plotly.graph_objects.layout.title.Subtitle`\n instance or dict with compatible properties\n text\n Sets the plot's title.\n x\n Sets the x position with respect to `xref` in\n normalized coordinates from 0 (left) to 1 (right).\n xanchor\n Sets the title's horizontal alignment with respect to\n its x position. "left" means that the title starts at\n x, "right" means that the title ends at x and "center"\n means that the title's center is at x. "auto" divides\n `xref` by three and calculates the `xanchor` value\n automatically based on the value of `x`.\n xref\n Sets the container `x` refers to. "container" spans the\n entire `width` of the plot. "paper" refers to the width\n of the plotting area only.\n y\n Sets the y position with respect to `yref` in\n normalized coordinates from 0 (bottom) to 1 (top).\n "auto" places the baseline of the title onto the\n vertical center of the top margin.\n yanchor\n Sets the title's vertical alignment with respect to its\n y position. "top" means that the title's cap line is at\n y, "bottom" means that the title's baseline is at y and\n "middle" means that the title's midline is at y. "auto"\n divides `yref` by three and calculates the `yanchor`\n value automatically based on the value of `y`.\n yref\n Sets the container `y` refers to. "container" spans the\n entire `height` of the plot. "paper" refers to the\n height of the plotting area only.\n\n Returns\n -------\n Title\n """\n super().__init__("title")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Title\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Title`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("automargin", arg, automargin)\n self._set_property("font", arg, font)\n self._set_property("pad", arg, pad)\n self._set_property("subtitle", arg, subtitle)\n self._set_property("text", arg, text)\n self._set_property("x", arg, x)\n self._set_property("xanchor", arg, xanchor)\n self._set_property("xref", arg, xref)\n self._set_property("y", arg, y)\n self._set_property("yanchor", arg, yanchor)\n self._set_property("yref", arg, yref)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_title.py
_title.py
Python
15,403
0.95
0.095556
0.007557
react-lib
604
2023-12-21T15:57:46.227928
Apache-2.0
false
7c15bc6e2043ed3e06a254dca8da0454
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Transition(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.transition"\n _valid_props = {"duration", "easing", "ordering"}\n\n @property\n def duration(self):\n """\n The duration of the transition, in milliseconds. If equal to\n zero, updates are synchronous.\n\n The 'duration' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["duration"]\n\n @duration.setter\n def duration(self, val):\n self["duration"] = val\n\n @property\n def easing(self):\n """\n The easing function used for the transition\n\n The 'easing' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['linear', 'quad', 'cubic', 'sin', 'exp', 'circle',\n 'elastic', 'back', 'bounce', 'linear-in', 'quad-in',\n 'cubic-in', 'sin-in', 'exp-in', 'circle-in', 'elastic-in',\n 'back-in', 'bounce-in', 'linear-out', 'quad-out',\n 'cubic-out', 'sin-out', 'exp-out', 'circle-out',\n 'elastic-out', 'back-out', 'bounce-out', 'linear-in-out',\n 'quad-in-out', 'cubic-in-out', 'sin-in-out', 'exp-in-out',\n 'circle-in-out', 'elastic-in-out', 'back-in-out',\n 'bounce-in-out']\n\n Returns\n -------\n Any\n """\n return self["easing"]\n\n @easing.setter\n def easing(self, val):\n self["easing"] = val\n\n @property\n def ordering(self):\n """\n Determines whether the figure's layout or traces smoothly\n transitions during updates that make both traces and layout\n change.\n\n The 'ordering' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['layout first', 'traces first']\n\n Returns\n -------\n Any\n """\n return self["ordering"]\n\n @ordering.setter\n def ordering(self, val):\n self["ordering"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n duration\n The duration of the transition, in milliseconds. If\n equal to zero, updates are synchronous.\n easing\n The easing function used for the transition\n ordering\n Determines whether the figure's layout or traces\n smoothly transitions during updates that make both\n traces and layout change.\n """\n\n def __init__(self, arg=None, duration=None, easing=None, ordering=None, **kwargs):\n """\n Construct a new Transition object\n\n Sets transition options used during Plotly.react updates.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Transition`\n duration\n The duration of the transition, in milliseconds. If\n equal to zero, updates are synchronous.\n easing\n The easing function used for the transition\n ordering\n Determines whether the figure's layout or traces\n smoothly transitions during updates that make both\n traces and layout change.\n\n Returns\n -------\n Transition\n """\n super().__init__("transition")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Transition\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Transition`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("duration", arg, duration)\n self._set_property("easing", arg, easing)\n self._set_property("ordering", arg, ordering)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_transition.py
_transition.py
Python
4,621
0.95
0.131944
0.016529
python-kit
566
2024-11-29T03:19:17.490891
GPL-3.0
false
c1ca66b253c02b91d4694e2f7ad0c648
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Uniformtext(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.uniformtext"\n _valid_props = {"minsize", "mode"}\n\n @property\n def minsize(self):\n """\n Sets the minimum text size between traces of the same type.\n\n The 'minsize' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["minsize"]\n\n @minsize.setter\n def minsize(self, val):\n self["minsize"] = val\n\n @property\n def mode(self):\n """\n Determines how the font size for various text elements are\n uniformed between each trace type. If the computed text sizes\n were smaller than the minimum size defined by\n `uniformtext.minsize` using "hide" option hides the text; and\n using "show" option shows the text without further downscaling.\n Please note that if the size defined by `minsize` is greater\n than the font size defined by trace, then the `minsize` is\n used.\n\n The 'mode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n [False, 'hide', 'show']\n\n Returns\n -------\n Any\n """\n return self["mode"]\n\n @mode.setter\n def mode(self, val):\n self["mode"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n minsize\n Sets the minimum text size between traces of the same\n type.\n mode\n Determines how the font size for various text elements\n are uniformed between each trace type. If the computed\n text sizes were smaller than the minimum size defined\n by `uniformtext.minsize` using "hide" option hides the\n text; and using "show" option shows the text without\n further downscaling. Please note that if the size\n defined by `minsize` is greater than the font size\n defined by trace, then the `minsize` is used.\n """\n\n def __init__(self, arg=None, minsize=None, mode=None, **kwargs):\n """\n Construct a new Uniformtext object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Uniformtext`\n minsize\n Sets the minimum text size between traces of the same\n type.\n mode\n Determines how the font size for various text elements\n are uniformed between each trace type. If the computed\n text sizes were smaller than the minimum size defined\n by `uniformtext.minsize` using "hide" option hides the\n text; and using "show" option shows the text without\n further downscaling. Please note that if the size\n defined by `minsize` is greater than the font size\n defined by trace, then the `minsize` is used.\n\n Returns\n -------\n Uniformtext\n """\n super().__init__("uniformtext")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Uniformtext\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Uniformtext`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("minsize", arg, minsize)\n self._set_property("mode", arg, mode)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_uniformtext.py
_uniformtext.py
Python
4,230
0.95
0.137097
0.018868
react-lib
456
2023-08-31T12:43:47.506941
BSD-3-Clause
false
a2a7140fe872876c3de121539d34dd23
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType\nimport copy as _copy\n\n\nclass Updatemenu(_BaseLayoutHierarchyType):\n _parent_path_str = "layout"\n _path_str = "layout.updatemenu"\n _valid_props = {\n "active",\n "bgcolor",\n "bordercolor",\n "borderwidth",\n "buttondefaults",\n "buttons",\n "direction",\n "font",\n "name",\n "pad",\n "showactive",\n "templateitemname",\n "type",\n "visible",\n "x",\n "xanchor",\n "y",\n "yanchor",\n }\n\n @property\n def active(self):\n """\n Determines which button (by index starting from 0) is\n considered active.\n\n The 'active' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [-1, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["active"]\n\n @active.setter\n def active(self, val):\n self["active"] = val\n\n @property\n def bgcolor(self):\n """\n Sets the background color of the update menu buttons.\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the color of the border enclosing the update menu.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def borderwidth(self):\n """\n Sets the width (in px) of the border enclosing the update menu.\n\n The 'borderwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["borderwidth"]\n\n @borderwidth.setter\n def borderwidth(self, val):\n self["borderwidth"] = val\n\n @property\n def buttons(self):\n """\n The 'buttons' property is a tuple of instances of\n Button that may be specified as:\n - A list or tuple of instances of plotly.graph_objs.layout.updatemenu.Button\n - A list or tuple of dicts of string/value properties that\n will be passed to the Button constructor\n\n Returns\n -------\n tuple[plotly.graph_objs.layout.updatemenu.Button]\n """\n return self["buttons"]\n\n @buttons.setter\n def buttons(self, val):\n self["buttons"] = val\n\n @property\n def buttondefaults(self):\n """\n When used in a template (as\n layout.template.layout.updatemenu.buttondefaults), sets the\n default property values to use for elements of\n layout.updatemenu.buttons\n\n The 'buttondefaults' property is an instance of Button\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.updatemenu.Button`\n - A dict of string/value properties that will be passed\n to the Button constructor\n\n Returns\n -------\n plotly.graph_objs.layout.updatemenu.Button\n """\n return self["buttondefaults"]\n\n @buttondefaults.setter\n def buttondefaults(self, val):\n self["buttondefaults"] = val\n\n @property\n def direction(self):\n """\n Determines the direction in which the buttons are laid out,\n whether in a dropdown menu or a row/column of buttons. For\n `left` and `up`, the buttons will still appear in left-to-right\n or top-to-bottom order respectively.\n\n The 'direction' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'right', 'up', 'down']\n\n Returns\n -------\n Any\n """\n return self["direction"]\n\n @direction.setter\n def direction(self, val):\n self["direction"] = val\n\n @property\n def font(self):\n """\n Sets the font of the update menu button text.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.updatemenu.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.layout.updatemenu.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def name(self):\n """\n When used in a template, named items are created in the output\n figure in addition to any items the figure already has in this\n array. You can modify these items in the output figure by\n making your own item with `templateitemname` matching this\n `name` alongside your modifications (including `visible: false`\n or `enabled: false` to hide it). Has no effect outside of a\n template.\n\n The 'name' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["name"]\n\n @name.setter\n def name(self, val):\n self["name"] = val\n\n @property\n def pad(self):\n """\n Sets the padding around the buttons or dropdown menu.\n\n The 'pad' property is an instance of Pad\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.updatemenu.Pad`\n - A dict of string/value properties that will be passed\n to the Pad constructor\n\n Returns\n -------\n plotly.graph_objs.layout.updatemenu.Pad\n """\n return self["pad"]\n\n @pad.setter\n def pad(self, val):\n self["pad"] = val\n\n @property\n def showactive(self):\n """\n Highlights active dropdown item or active button if true.\n\n The 'showactive' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showactive"]\n\n @showactive.setter\n def showactive(self, val):\n self["showactive"] = val\n\n @property\n def templateitemname(self):\n """\n Used to refer to a named item in this array in the template.\n Named items from the template will be created even without a\n matching item in the input figure, but you can modify one by\n making an item with `templateitemname` matching its `name`,\n alongside your modifications (including `visible: false` or\n `enabled: false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you explicitly\n show it with `visible: true`.\n\n The 'templateitemname' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["templateitemname"]\n\n @templateitemname.setter\n def templateitemname(self, val):\n self["templateitemname"] = val\n\n @property\n def type(self):\n """\n Determines whether the buttons are accessible via a dropdown\n menu or whether the buttons are stacked horizontally or\n vertically\n\n The 'type' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['dropdown', 'buttons']\n\n Returns\n -------\n Any\n """\n return self["type"]\n\n @type.setter\n def type(self, val):\n self["type"] = val\n\n @property\n def visible(self):\n """\n Determines whether or not the update menu is visible.\n\n The 'visible' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def x(self):\n """\n Sets the x position (in normalized coordinates) of the update\n menu.\n\n The 'x' property is a number and may be specified as:\n - An int or float in the interval [-2, 3]\n\n Returns\n -------\n int|float\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def xanchor(self):\n """\n Sets the update menu's horizontal position anchor. This anchor\n binds the `x` position to the "left", "center" or "right" of\n the range selector.\n\n The 'xanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'left', 'center', 'right']\n\n Returns\n -------\n Any\n """\n return self["xanchor"]\n\n @xanchor.setter\n def xanchor(self, val):\n self["xanchor"] = val\n\n @property\n def y(self):\n """\n Sets the y position (in normalized coordinates) of the update\n menu.\n\n The 'y' property is a number and may be specified as:\n - An int or float in the interval [-2, 3]\n\n Returns\n -------\n int|float\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def yanchor(self):\n """\n Sets the update menu's vertical position anchor This anchor\n binds the `y` position to the "top", "middle" or "bottom" of\n the range selector.\n\n The 'yanchor' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'top', 'middle', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["yanchor"]\n\n @yanchor.setter\n def yanchor(self, val):\n self["yanchor"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n active\n Determines which button (by index starting from 0) is\n considered active.\n bgcolor\n Sets the background color of the update menu buttons.\n bordercolor\n Sets the color of the border enclosing the update menu.\n borderwidth\n Sets the width (in px) of the border enclosing the\n update menu.\n buttons\n A tuple of\n :class:`plotly.graph_objects.layout.updatemenu.Button`\n instances or dicts with compatible properties\n buttondefaults\n When used in a template (as\n layout.template.layout.updatemenu.buttondefaults), sets\n the default property values to use for elements of\n layout.updatemenu.buttons\n direction\n Determines the direction in which the buttons are laid\n out, whether in a dropdown menu or a row/column of\n buttons. For `left` and `up`, the buttons will still\n appear in left-to-right or top-to-bottom order\n respectively.\n font\n Sets the font of the update menu button text.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n pad\n Sets the padding around the buttons or dropdown menu.\n showactive\n Highlights active dropdown item or active button if\n true.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n type\n Determines whether the buttons are accessible via a\n dropdown menu or whether the buttons are stacked\n horizontally or vertically\n visible\n Determines whether or not the update menu is visible.\n x\n Sets the x position (in normalized coordinates) of the\n update menu.\n xanchor\n Sets the update menu's horizontal position anchor. This\n anchor binds the `x` position to the "left", "center"\n or "right" of the range selector.\n y\n Sets the y position (in normalized coordinates) of the\n update menu.\n yanchor\n Sets the update menu's vertical position anchor This\n anchor binds the `y` position to the "top", "middle" or\n "bottom" of the range selector.\n """\n\n def __init__(\n self,\n arg=None,\n active=None,\n bgcolor=None,\n bordercolor=None,\n borderwidth=None,\n buttons=None,\n buttondefaults=None,\n direction=None,\n font=None,\n name=None,\n pad=None,\n showactive=None,\n templateitemname=None,\n type=None,\n visible=None,\n x=None,\n xanchor=None,\n y=None,\n yanchor=None,\n **kwargs,\n ):\n """\n Construct a new Updatemenu object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.layout.Updatemenu`\n active\n Determines which button (by index starting from 0) is\n considered active.\n bgcolor\n Sets the background color of the update menu buttons.\n bordercolor\n Sets the color of the border enclosing the update menu.\n borderwidth\n Sets the width (in px) of the border enclosing the\n update menu.\n buttons\n A tuple of\n :class:`plotly.graph_objects.layout.updatemenu.Button`\n instances or dicts with compatible properties\n buttondefaults\n When used in a template (as\n layout.template.layout.updatemenu.buttondefaults), sets\n the default property values to use for elements of\n layout.updatemenu.buttons\n direction\n Determines the direction in which the buttons are laid\n out, whether in a dropdown menu or a row/column of\n buttons. For `left` and `up`, the buttons will still\n appear in left-to-right or top-to-bottom order\n respectively.\n font\n Sets the font of the update menu button text.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n pad\n Sets the padding around the buttons or dropdown menu.\n showactive\n Highlights active dropdown item or active button if\n true.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n type\n Determines whether the buttons are accessible via a\n dropdown menu or whether the buttons are stacked\n horizontally or vertically\n visible\n Determines whether or not the update menu is visible.\n x\n Sets the x position (in normalized coordinates) of the\n update menu.\n xanchor\n Sets the update menu's horizontal position anchor. This\n anchor binds the `x` position to the "left", "center"\n or "right" of the range selector.\n y\n Sets the y position (in normalized coordinates) of the\n update menu.\n yanchor\n Sets the update menu's vertical position anchor This\n anchor binds the `y` position to the "top", "middle" or\n "bottom" of the range selector.\n\n Returns\n -------\n Updatemenu\n """\n super().__init__("updatemenus")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.layout.Updatemenu\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.Updatemenu`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("active", arg, active)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("borderwidth", arg, borderwidth)\n self._set_property("buttons", arg, buttons)\n self._set_property("buttondefaults", arg, buttondefaults)\n self._set_property("direction", arg, direction)\n self._set_property("font", arg, font)\n self._set_property("name", arg, name)\n self._set_property("pad", arg, pad)\n self._set_property("showactive", arg, showactive)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("type", arg, type)\n self._set_property("visible", arg, visible)\n self._set_property("x", arg, x)\n self._set_property("xanchor", arg, xanchor)\n self._set_property("y", arg, y)\n self._set_property("yanchor", arg, yanchor)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\_updatemenu.py
_updatemenu.py
Python
20,055
0.95
0.088608
0.005445
vue-tools
666
2024-07-31T21:40:12.341132
Apache-2.0
false
3717675aa09b64007a72516429f44986
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._activeselection import Activeselection\n from ._activeshape import Activeshape\n from ._annotation import Annotation\n from ._coloraxis import Coloraxis\n from ._colorscale import Colorscale\n from ._font import Font\n from ._geo import Geo\n from ._grid import Grid\n from ._hoverlabel import Hoverlabel\n from ._image import Image\n from ._legend import Legend\n from ._map import Map\n from ._mapbox import Mapbox\n from ._margin import Margin\n from ._modebar import Modebar\n from ._newselection import Newselection\n from ._newshape import Newshape\n from ._polar import Polar\n from ._scene import Scene\n from ._selection import Selection\n from ._shape import Shape\n from ._slider import Slider\n from ._smith import Smith\n from ._template import Template\n from ._ternary import Ternary\n from ._title import Title\n from ._transition import Transition\n from ._uniformtext import Uniformtext\n from ._updatemenu import Updatemenu\n from ._xaxis import XAxis\n from ._yaxis import YAxis\n from . import annotation\n from . import coloraxis\n from . import geo\n from . import grid\n from . import hoverlabel\n from . import legend\n from . import map\n from . import mapbox\n from . import newselection\n from . import newshape\n from . import polar\n from . import scene\n from . import selection\n from . import shape\n from . import slider\n from . import smith\n from . import template\n from . import ternary\n from . import title\n from . import updatemenu\n from . import xaxis\n from . import yaxis\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [\n ".annotation",\n ".coloraxis",\n ".geo",\n ".grid",\n ".hoverlabel",\n ".legend",\n ".map",\n ".mapbox",\n ".newselection",\n ".newshape",\n ".polar",\n ".scene",\n ".selection",\n ".shape",\n ".slider",\n ".smith",\n ".template",\n ".ternary",\n ".title",\n ".updatemenu",\n ".xaxis",\n ".yaxis",\n ],\n [\n "._activeselection.Activeselection",\n "._activeshape.Activeshape",\n "._annotation.Annotation",\n "._coloraxis.Coloraxis",\n "._colorscale.Colorscale",\n "._font.Font",\n "._geo.Geo",\n "._grid.Grid",\n "._hoverlabel.Hoverlabel",\n "._image.Image",\n "._legend.Legend",\n "._map.Map",\n "._mapbox.Mapbox",\n "._margin.Margin",\n "._modebar.Modebar",\n "._newselection.Newselection",\n "._newshape.Newshape",\n "._polar.Polar",\n "._scene.Scene",\n "._selection.Selection",\n "._shape.Shape",\n "._slider.Slider",\n "._smith.Smith",\n "._template.Template",\n "._ternary.Ternary",\n "._title.Title",\n "._transition.Transition",\n "._uniformtext.Uniformtext",\n "._updatemenu.Updatemenu",\n "._xaxis.XAxis",\n "._yaxis.YAxis",\n ],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\__init__.py
__init__.py
Python
3,438
0.85
0.008333
0
react-lib
358
2025-02-27T07:58:39.001554
Apache-2.0
false
ca2750639f371badbb7da4121d220d89