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
# --- 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.annotation"\n _path_str = "layout.annotation.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 annotation text 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.layout.annotation.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.annotation.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.annotation.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\annotation\_font.py
_font.py
Python
9,888
0.95
0.10479
0.010526
awesome-app
918
2025-05-13T00:10:50.635676
Apache-2.0
false
f1ada6d61515c069554ed4ee9d339a7a
# --- 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.annotation"\n _path_str = "layout.annotation.hoverlabel"\n _valid_props = {"bgcolor", "bordercolor", "font"}\n\n @property\n def bgcolor(self):\n """\n Sets the background color of the hover label. By default uses\n the annotation's `bgcolor` made opaque, or white if it was\n transparent.\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 the hover label. By default uses\n either dark grey or white, for maximum contrast with\n `hoverlabel.bgcolor`.\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 hover label text font. By default uses the global\n hover font and size, with color from `hoverlabel.bordercolor`.\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.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.annotation.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 _prop_descriptions(self):\n return """\\n bgcolor\n Sets the background color of the hover label. By\n default uses the annotation's `bgcolor` made opaque, or\n white if it was transparent.\n bordercolor\n Sets the border color of the hover label. By default\n uses either dark grey or white, for maximum contrast\n with `hoverlabel.bgcolor`.\n font\n Sets the hover label text font. By default uses the\n global hover font and size, with color from\n `hoverlabel.bordercolor`.\n """\n\n def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs):\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.annotation.Hoverlabel`\n bgcolor\n Sets the background color of the hover label. By\n default uses the annotation's `bgcolor` made opaque, or\n white if it was transparent.\n bordercolor\n Sets the border color of the hover label. By default\n uses either dark grey or white, for maximum contrast\n with `hoverlabel.bgcolor`.\n font\n Sets the hover label text font. By default uses the\n global hover font and size, with color from\n `hoverlabel.bordercolor`.\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.annotation.Hoverlabel\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.annotation.Hoverlabel`""")\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("font", arg, font)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\annotation\_hoverlabel.py
_hoverlabel.py
Python
5,099
0.95
0.145695
0.015504
python-kit
209
2023-11-05T12:49:09.018670
Apache-2.0
false
c46b612a38bc86aae0ba764ea4610062
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\n from ._hoverlabel import Hoverlabel\n from . import hoverlabel\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [".hoverlabel"], ["._font.Font", "._hoverlabel.Hoverlabel"]\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\annotation\__init__.py
__init__.py
Python
360
0.85
0.076923
0
vue-tools
770
2023-11-22T16:41:22.072690
Apache-2.0
false
90ab5334e2e863a8f5b34a884f818098
# --- 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.annotation.hoverlabel"\n _path_str = "layout.annotation.hoverlabel.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 hover label text font. By default uses the global\n hover font and size, with color from `hoverlabel.bordercolor`.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.layout.annotat\n ion.hoverlabel.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.annotation.hoverlabel.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.annotation.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("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\annotation\hoverlabel\_font.py
_font.py
Python
10,043
0.95
0.104478
0.01049
python-kit
831
2024-11-25T10:30:19.639892
GPL-3.0
false
fd7c041bfd3b86668ddbc69b138fba3f
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\layout\annotation\hoverlabel\__init__.py
__init__.py
Python
237
0.85
0.111111
0
node-utils
45
2024-11-06T18:06:26.798770
BSD-3-Clause
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\annotation\hoverlabel\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
11,044
0.8
0.048387
0
react-lib
166
2024-06-17T05:45:14.827979
Apache-2.0
false
f1347915ebe28e175bc510b232d44d0d
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\annotation\hoverlabel\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
514
0.85
0
0
react-lib
85
2024-05-26T09:12:43.289337
Apache-2.0
false
988f029204fca3def226635b039d2497
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\annotation\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,886
0.8
0.048583
0
python-kit
740
2025-03-25T23:06:00.283934
MIT
false
3d5fdb13b71ca1ea2b1fb3fff24379ff
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\annotation\__pycache__\_hoverlabel.cpython-313.pyc
_hoverlabel.cpython-313.pyc
Other
5,905
0.8
0.094017
0
react-lib
647
2024-05-20T06:48:48.003650
GPL-3.0
false
9662538a2eeb4333e9f37e34336b090f
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\annotation\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
637
0.95
0
0
python-kit
492
2024-12-26T23:53:09.035543
BSD-3-Clause
false
8a79536719656b224535432854737cf0
# --- 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 ColorBar(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.coloraxis"\n _path_str = "layout.coloraxis.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.layout.coloraxis.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.layout.coloraxis.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.layout.coloraxis.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.layout.coloraxis.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.layout.coloraxis.co\n lorbar.tickformatstopdefaults), sets the default property\n values to use for elements of\n layout.coloraxis.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.layout.coloraxis.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.layout.coloraxis.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.layout.coloraxis.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.layout.coloraxis.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.layout.coloraxi\n s.colorbar.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.layout.colo\n raxis.colorbar.tickformatstopdefaults), sets the\n default property values to use for elements of\n layout.coloraxis.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.layout.coloraxis.colorbar.\n Title` 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.layout.coloraxis.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.layout.coloraxi\n s.colorbar.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.layout.colo\n raxis.colorbar.tickformatstopdefaults), sets the\n default property values to use for elements of\n layout.coloraxis.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.layout.coloraxis.colorbar.\n Title` 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.layout.coloraxis.ColorBar\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.coloraxis.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\layout\coloraxis\_colorbar.py
_colorbar.py
Python
60,542
0.75
0.116144
0.001976
vue-tools
79
2025-04-26T16:37:25.965008
MIT
false
0586551b705e510fa5644c3202eacbff
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._colorbar import ColorBar\n from . import colorbar\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [".colorbar"], ["._colorbar.ColorBar"]\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\coloraxis\__init__.py
__init__.py
Python
305
0.85
0.083333
0
node-utils
849
2024-03-07T14:41:52.473701
MIT
false
58d0b245dbde5254948ab4b57af782c9
# --- 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 Tickfont(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.coloraxis.colorbar"\n _path_str = "layout.coloraxis.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 :class:`plotly.graph_objs.layout.colorax\n is.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.layout.coloraxis.colorbar.Tickfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.coloraxis.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\layout\coloraxis\colorbar\_tickfont.py
_tickfont.py
Python
9,967
0.95
0.10479
0.010526
react-lib
87
2025-03-14T21:29:14.868522
BSD-3-Clause
false
0f597a7caf2c4b32f3e54700aa831819
# --- 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 Tickformatstop(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.coloraxis.colorbar"\n _path_str = "layout.coloraxis.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.layout.colorax\n is.colorbar.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.layout.coloraxis.colorbar.Tickformatstop\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.coloraxis.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\layout\coloraxis\colorbar\_tickformatstop.py
_tickformatstop.py
Python
8,562
0.95
0.082988
0.019048
awesome-app
912
2024-08-17T13:17:34.736940
BSD-3-Clause
false
b40396ec9a82eaf9fa95b0fb57302bad
# --- 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.coloraxis.colorbar"\n _path_str = "layout.coloraxis.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.layout.coloraxis.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.layout.coloraxis.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 :class:`plotly.graph_objs.layout.colorax\n is.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.layout.coloraxis.colorbar.Title\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.coloraxis.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\layout\coloraxis\colorbar\_title.py
_title.py
Python
4,038
0.95
0.147059
0.017544
vue-tools
544
2024-07-12T18:31:49.938210
MIT
false
4aee7e8c72922ff2330e2992479d848c
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\layout\coloraxis\colorbar\__init__.py
__init__.py
Python
446
0.85
0.0625
0
react-lib
747
2024-12-12T22:31:11.451511
Apache-2.0
false
c1c51c7cdaa97ba16b501a938689f435
# --- 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.coloraxis.colorbar.title"\n _path_str = "layout.coloraxis.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.layout.colorax\n is.colorbar.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.layout.coloraxis.colorbar.title.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.coloraxis.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\layout\coloraxis\colorbar\title\_font.py
_font.py
Python
9,962
0.95
0.10479
0.010526
react-lib
398
2024-01-19T08:41:24.172858
MIT
false
16882b9482c9ea164e620a35be980d1c
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\layout\coloraxis\colorbar\title\__init__.py
__init__.py
Python
237
0.85
0.111111
0
awesome-app
592
2025-01-14T18:42:00.701384
BSD-3-Clause
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\coloraxis\colorbar\title\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,974
0.8
0.048583
0
awesome-app
771
2025-06-09T16:58:48.948575
MIT
false
9761e0917bcb020c5e3e3b741736b296
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\coloraxis\colorbar\title\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
517
0.85
0
0
react-lib
642
2025-02-26T00:50:44.465522
GPL-3.0
false
ef04d81c65e516a0f9debddd401230e9
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\coloraxis\colorbar\__pycache__\_tickfont.cpython-313.pyc
_tickfont.cpython-313.pyc
Other
11,021
0.8
0.04918
0
awesome-app
33
2025-03-10T19:56:25.536512
MIT
false
433948549166256dd2c9b9e13bb2011d
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\coloraxis\colorbar\__pycache__\_tickformatstop.cpython-313.pyc
_tickformatstop.cpython-313.pyc
Other
9,347
0.8
0.024876
0.005348
awesome-app
917
2023-09-14T03:55:21.432177
MIT
false
3841d3fc3cb33fb4ce68df6743d24061
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\coloraxis\colorbar\__pycache__\_title.cpython-313.pyc
_title.cpython-313.pyc
Other
4,949
0.8
0.087379
0
vue-tools
56
2025-01-03T05:55:01.644358
BSD-3-Clause
false
f92d067f19f5fd73f966a62b5d7ecbd0
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\coloraxis\colorbar\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
717
0.95
0
0
react-lib
60
2023-09-16T22:32:03.427652
BSD-3-Clause
false
7129c6bae94a3b431479080e803c2227
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\coloraxis\__pycache__\_colorbar.cpython-313.pyc
_colorbar.cpython-313.pyc
Other
61,392
0.6
0.082413
0
python-kit
137
2025-06-02T07:26:01.167941
Apache-2.0
false
fbed536ef7370c5e261325a57c4b38a7
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\coloraxis\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
572
0.95
0
0
awesome-app
774
2025-02-04T09:57:18.017209
GPL-3.0
false
5aa2fb8bc2faa595912f63dcce3b0dc4
# --- 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 Center(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.geo"\n _path_str = "layout.geo.center"\n _valid_props = {"lat", "lon"}\n\n @property\n def lat(self):\n """\n Sets the latitude of the map's center. For all projection\n types, the map's latitude center lies at the middle of the\n latitude range by default.\n\n The 'lat' 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["lat"]\n\n @lat.setter\n def lat(self, val):\n self["lat"] = val\n\n @property\n def lon(self):\n """\n Sets the longitude of the map's center. By default, the map's\n longitude center lies at the middle of the longitude range for\n scoped projection and above `projection.rotation.lon`\n otherwise.\n\n The 'lon' 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["lon"]\n\n @lon.setter\n def lon(self, val):\n self["lon"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n lat\n Sets the latitude of the map's center. For all\n projection types, the map's latitude center lies at the\n middle of the latitude range by default.\n lon\n Sets the longitude of the map's center. By default, the\n map's longitude center lies at the middle of the\n longitude range for scoped projection and above\n `projection.rotation.lon` otherwise.\n """\n\n def __init__(self, arg=None, lat=None, lon=None, **kwargs):\n """\n Construct a new Center 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.geo.Center`\n lat\n Sets the latitude of the map's center. For all\n projection types, the map's latitude center lies at the\n middle of the latitude range by default.\n lon\n Sets the longitude of the map's center. By default, the\n map's longitude center lies at the middle of the\n longitude range for scoped projection and above\n `projection.rotation.lon` otherwise.\n\n Returns\n -------\n Center\n """\n super().__init__("center")\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.Center\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.geo.Center`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("lat", arg, lat)\n self._set_property("lon", arg, lon)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\_center.py
_center.py
Python
3,536
0.95
0.121739
0.020619
vue-tools
118
2024-04-09T16:43:28.289350
BSD-3-Clause
false
feca20ca1f2816cb6e7e7cb69de061ba
# --- 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 Domain(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.geo"\n _path_str = "layout.geo.domain"\n _valid_props = {"column", "row", "x", "y"}\n\n @property\n def column(self):\n """\n If there is a layout grid, use the domain for this column in\n the grid for this geo subplot . Note that geo subplots are\n constrained by domain. In general, when `projection.scale` is\n set to 1. a map will fit either its x or y domain, but not\n both.\n\n The 'column' 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["column"]\n\n @column.setter\n def column(self, val):\n self["column"] = val\n\n @property\n def row(self):\n """\n If there is a layout grid, use the domain for this row in the\n grid for this geo subplot . Note that geo subplots are\n constrained by domain. In general, when `projection.scale` is\n set to 1. a map will fit either its x or y domain, but not\n both.\n\n The 'row' 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["row"]\n\n @row.setter\n def row(self, val):\n self["row"] = val\n\n @property\n def x(self):\n """\n Sets the horizontal domain of this geo subplot (in plot\n fraction). Note that geo subplots are constrained by domain. In\n general, when `projection.scale` is set to 1. a map will fit\n either its x or y domain, but not both.\n\n The 'x' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'x[0]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n (1) The 'x[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\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 Sets the vertical domain of this geo subplot (in plot\n fraction). Note that geo subplots are constrained by domain. In\n general, when `projection.scale` is set to 1. a map will fit\n either its x or y domain, but not both.\n\n The 'y' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'y[0]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n (1) The 'y[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n column\n If there is a layout grid, use the domain for this\n column in the grid for this geo subplot . Note that geo\n subplots are constrained by domain. In general, when\n `projection.scale` is set to 1. a map will fit either\n its x or y domain, but not both.\n row\n If there is a layout grid, use the domain for this row\n in the grid for this geo subplot . Note that geo\n subplots are constrained by domain. In general, when\n `projection.scale` is set to 1. a map will fit either\n its x or y domain, but not both.\n x\n Sets the horizontal domain of this geo subplot (in plot\n fraction). Note that geo subplots are constrained by\n domain. In general, when `projection.scale` is set to\n 1. a map will fit either its x or y domain, but not\n both.\n y\n Sets the vertical domain of this geo subplot (in plot\n fraction). Note that geo subplots are constrained by\n domain. In general, when `projection.scale` is set to\n 1. a map will fit either its x or y domain, but not\n both.\n """\n\n def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs):\n """\n Construct a new Domain 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.geo.Domain`\n column\n If there is a layout grid, use the domain for this\n column in the grid for this geo subplot . Note that geo\n subplots are constrained by domain. In general, when\n `projection.scale` is set to 1. a map will fit either\n its x or y domain, but not both.\n row\n If there is a layout grid, use the domain for this row\n in the grid for this geo subplot . Note that geo\n subplots are constrained by domain. In general, when\n `projection.scale` is set to 1. a map will fit either\n its x or y domain, but not both.\n x\n Sets the horizontal domain of this geo subplot (in plot\n fraction). Note that geo subplots are constrained by\n domain. In general, when `projection.scale` is set to\n 1. a map will fit either its x or y domain, but not\n both.\n y\n Sets the vertical domain of this geo subplot (in plot\n fraction). Note that geo subplots are constrained by\n domain. In general, when `projection.scale` is set to\n 1. a map will fit either its x or y domain, but not\n both.\n\n Returns\n -------\n Domain\n """\n super().__init__("domain")\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.Domain\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.geo.Domain`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("column", arg, column)\n self._set_property("row", arg, row)\n self._set_property("x", arg, x)\n self._set_property("y", arg, y)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\_domain.py
_domain.py
Python
7,243
0.95
0.132353
0.022727
vue-tools
168
2024-08-15T03:13:47.567376
Apache-2.0
false
6b07d5eceb42db20c148bf8f2aed7c17
# --- 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 Lataxis(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.geo"\n _path_str = "layout.geo.lataxis"\n _valid_props = {\n "dtick",\n "gridcolor",\n "griddash",\n "gridwidth",\n "range",\n "showgrid",\n "tick0",\n }\n\n @property\n def dtick(self):\n """\n Sets the graticule's longitude/latitude tick step.\n\n The 'dtick' 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["dtick"]\n\n @dtick.setter\n def dtick(self, val):\n self["dtick"] = val\n\n @property\n def gridcolor(self):\n """\n Sets the graticule's stroke color.\n\n The 'gridcolor' 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["gridcolor"]\n\n @gridcolor.setter\n def gridcolor(self, val):\n self["gridcolor"] = val\n\n @property\n def griddash(self):\n """\n Sets the dash style of lines. Set to a dash type string\n ("solid", "dot", "dash", "longdash", "dashdot", or\n "longdashdot") or a dash length list in px (eg\n "5px,10px,2px,2px").\n\n The 'griddash' property is an enumeration that may be specified as:\n - One of the following dash styles:\n ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']\n - A string containing a dash length list in pixels or percentages\n (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.)\n\n Returns\n -------\n str\n """\n return self["griddash"]\n\n @griddash.setter\n def griddash(self, val):\n self["griddash"] = val\n\n @property\n def gridwidth(self):\n """\n Sets the graticule's stroke width (in px).\n\n The 'gridwidth' 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["gridwidth"]\n\n @gridwidth.setter\n def gridwidth(self, val):\n self["gridwidth"] = val\n\n @property\n def range(self):\n """\n Sets the range of this axis (in degrees), sets the map's\n clipped coordinates.\n\n The 'range' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'range[0]' property is a number and may be specified as:\n - An int or float\n (1) The 'range[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["range"]\n\n @range.setter\n def range(self, val):\n self["range"] = val\n\n @property\n def showgrid(self):\n """\n Sets whether or not graticule are shown on the map.\n\n The 'showgrid' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showgrid"]\n\n @showgrid.setter\n def showgrid(self, val):\n self["showgrid"] = val\n\n @property\n def tick0(self):\n """\n Sets the graticule's starting tick longitude/latitude.\n\n The 'tick0' 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["tick0"]\n\n @tick0.setter\n def tick0(self, val):\n self["tick0"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n dtick\n Sets the graticule's longitude/latitude tick step.\n gridcolor\n Sets the graticule's stroke color.\n griddash\n Sets the dash style of lines. Set to a dash type string\n ("solid", "dot", "dash", "longdash", "dashdot", or\n "longdashdot") or a dash length list in px (eg\n "5px,10px,2px,2px").\n gridwidth\n Sets the graticule's stroke width (in px).\n range\n Sets the range of this axis (in degrees), sets the\n map's clipped coordinates.\n showgrid\n Sets whether or not graticule are shown on the map.\n tick0\n Sets the graticule's starting tick longitude/latitude.\n """\n\n def __init__(\n self,\n arg=None,\n dtick=None,\n gridcolor=None,\n griddash=None,\n gridwidth=None,\n range=None,\n showgrid=None,\n tick0=None,\n **kwargs,\n ):\n """\n Construct a new Lataxis 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.geo.Lataxis`\n dtick\n Sets the graticule's longitude/latitude tick step.\n gridcolor\n Sets the graticule's stroke color.\n griddash\n Sets the dash style of lines. Set to a dash type string\n ("solid", "dot", "dash", "longdash", "dashdot", or\n "longdashdot") or a dash length list in px (eg\n "5px,10px,2px,2px").\n gridwidth\n Sets the graticule's stroke width (in px).\n range\n Sets the range of this axis (in degrees), sets the\n map's clipped coordinates.\n showgrid\n Sets whether or not graticule are shown on the map.\n tick0\n Sets the graticule's starting tick longitude/latitude.\n\n Returns\n -------\n Lataxis\n """\n super().__init__("lataxis")\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.Lataxis\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.geo.Lataxis`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("dtick", arg, dtick)\n self._set_property("gridcolor", arg, gridcolor)\n self._set_property("griddash", arg, griddash)\n self._set_property("gridwidth", arg, gridwidth)\n self._set_property("range", arg, range)\n self._set_property("showgrid", arg, showgrid)\n self._set_property("tick0", arg, tick0)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\_lataxis.py
_lataxis.py
Python
7,311
0.95
0.085271
0.018265
awesome-app
638
2025-05-28T14:17:53.097716
BSD-3-Clause
false
4b574194dd1e1c2375f5ffb5c5b8a52c
# --- 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 Lonaxis(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.geo"\n _path_str = "layout.geo.lonaxis"\n _valid_props = {\n "dtick",\n "gridcolor",\n "griddash",\n "gridwidth",\n "range",\n "showgrid",\n "tick0",\n }\n\n @property\n def dtick(self):\n """\n Sets the graticule's longitude/latitude tick step.\n\n The 'dtick' 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["dtick"]\n\n @dtick.setter\n def dtick(self, val):\n self["dtick"] = val\n\n @property\n def gridcolor(self):\n """\n Sets the graticule's stroke color.\n\n The 'gridcolor' 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["gridcolor"]\n\n @gridcolor.setter\n def gridcolor(self, val):\n self["gridcolor"] = val\n\n @property\n def griddash(self):\n """\n Sets the dash style of lines. Set to a dash type string\n ("solid", "dot", "dash", "longdash", "dashdot", or\n "longdashdot") or a dash length list in px (eg\n "5px,10px,2px,2px").\n\n The 'griddash' property is an enumeration that may be specified as:\n - One of the following dash styles:\n ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']\n - A string containing a dash length list in pixels or percentages\n (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.)\n\n Returns\n -------\n str\n """\n return self["griddash"]\n\n @griddash.setter\n def griddash(self, val):\n self["griddash"] = val\n\n @property\n def gridwidth(self):\n """\n Sets the graticule's stroke width (in px).\n\n The 'gridwidth' 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["gridwidth"]\n\n @gridwidth.setter\n def gridwidth(self, val):\n self["gridwidth"] = val\n\n @property\n def range(self):\n """\n Sets the range of this axis (in degrees), sets the map's\n clipped coordinates.\n\n The 'range' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'range[0]' property is a number and may be specified as:\n - An int or float\n (1) The 'range[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["range"]\n\n @range.setter\n def range(self, val):\n self["range"] = val\n\n @property\n def showgrid(self):\n """\n Sets whether or not graticule are shown on the map.\n\n The 'showgrid' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showgrid"]\n\n @showgrid.setter\n def showgrid(self, val):\n self["showgrid"] = val\n\n @property\n def tick0(self):\n """\n Sets the graticule's starting tick longitude/latitude.\n\n The 'tick0' 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["tick0"]\n\n @tick0.setter\n def tick0(self, val):\n self["tick0"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n dtick\n Sets the graticule's longitude/latitude tick step.\n gridcolor\n Sets the graticule's stroke color.\n griddash\n Sets the dash style of lines. Set to a dash type string\n ("solid", "dot", "dash", "longdash", "dashdot", or\n "longdashdot") or a dash length list in px (eg\n "5px,10px,2px,2px").\n gridwidth\n Sets the graticule's stroke width (in px).\n range\n Sets the range of this axis (in degrees), sets the\n map's clipped coordinates.\n showgrid\n Sets whether or not graticule are shown on the map.\n tick0\n Sets the graticule's starting tick longitude/latitude.\n """\n\n def __init__(\n self,\n arg=None,\n dtick=None,\n gridcolor=None,\n griddash=None,\n gridwidth=None,\n range=None,\n showgrid=None,\n tick0=None,\n **kwargs,\n ):\n """\n Construct a new Lonaxis 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.geo.Lonaxis`\n dtick\n Sets the graticule's longitude/latitude tick step.\n gridcolor\n Sets the graticule's stroke color.\n griddash\n Sets the dash style of lines. Set to a dash type string\n ("solid", "dot", "dash", "longdash", "dashdot", or\n "longdashdot") or a dash length list in px (eg\n "5px,10px,2px,2px").\n gridwidth\n Sets the graticule's stroke width (in px).\n range\n Sets the range of this axis (in degrees), sets the\n map's clipped coordinates.\n showgrid\n Sets whether or not graticule are shown on the map.\n tick0\n Sets the graticule's starting tick longitude/latitude.\n\n Returns\n -------\n Lonaxis\n """\n super().__init__("lonaxis")\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.Lonaxis\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.geo.Lonaxis`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("dtick", arg, dtick)\n self._set_property("gridcolor", arg, gridcolor)\n self._set_property("griddash", arg, griddash)\n self._set_property("gridwidth", arg, gridwidth)\n self._set_property("range", arg, range)\n self._set_property("showgrid", arg, showgrid)\n self._set_property("tick0", arg, tick0)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\_lonaxis.py
_lonaxis.py
Python
7,311
0.95
0.085271
0.018265
awesome-app
627
2025-03-24T20:47:22.104254
BSD-3-Clause
false
63cb10fdfb8dcff00a0066e29b4976fc
# --- 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 Projection(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.geo"\n _path_str = "layout.geo.projection"\n _valid_props = {"distance", "parallels", "rotation", "scale", "tilt", "type"}\n\n @property\n def distance(self):\n """\n For satellite projection type only. Sets the distance from the\n center of the sphere to the point of view as a proportion of\n the sphere’s radius.\n\n The 'distance' property is a number and may be specified as:\n - An int or float in the interval [1.001, inf]\n\n Returns\n -------\n int|float\n """\n return self["distance"]\n\n @distance.setter\n def distance(self, val):\n self["distance"] = val\n\n @property\n def parallels(self):\n """\n For conic projection types only. Sets the parallels (tangent,\n secant) where the cone intersects the sphere.\n\n The 'parallels' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'parallels[0]' property is a number and may be specified as:\n - An int or float\n (1) The 'parallels[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["parallels"]\n\n @parallels.setter\n def parallels(self, val):\n self["parallels"] = val\n\n @property\n def rotation(self):\n """\n The 'rotation' property is an instance of Rotation\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.geo.projection.Rotation`\n - A dict of string/value properties that will be passed\n to the Rotation constructor\n\n Returns\n -------\n plotly.graph_objs.layout.geo.projection.Rotation\n """\n return self["rotation"]\n\n @rotation.setter\n def rotation(self, val):\n self["rotation"] = val\n\n @property\n def scale(self):\n """\n Zooms in or out on the map view. A scale of 1 corresponds to\n the largest zoom level that fits the map's lon and lat ranges.\n\n The 'scale' 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["scale"]\n\n @scale.setter\n def scale(self, val):\n self["scale"] = val\n\n @property\n def tilt(self):\n """\n For satellite projection type only. Sets the tilt angle of\n perspective projection.\n\n The 'tilt' 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["tilt"]\n\n @tilt.setter\n def tilt(self, val):\n self["tilt"] = val\n\n @property\n def type(self):\n """\n Sets the projection type.\n\n The 'type' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['airy', 'aitoff', 'albers', 'albers usa', 'august',\n 'azimuthal equal area', 'azimuthal equidistant', 'baker',\n 'bertin1953', 'boggs', 'bonne', 'bottomley', 'bromley',\n 'collignon', 'conic conformal', 'conic equal area', 'conic\n equidistant', 'craig', 'craster', 'cylindrical equal\n area', 'cylindrical stereographic', 'eckert1', 'eckert2',\n 'eckert3', 'eckert4', 'eckert5', 'eckert6', 'eisenlohr',\n 'equal earth', 'equirectangular', 'fahey', 'foucaut',\n 'foucaut sinusoidal', 'ginzburg4', 'ginzburg5',\n 'ginzburg6', 'ginzburg8', 'ginzburg9', 'gnomonic',\n 'gringorten', 'gringorten quincuncial', 'guyou', 'hammer',\n 'hill', 'homolosine', 'hufnagel', 'hyperelliptical',\n 'kavrayskiy7', 'lagrange', 'larrivee', 'laskowski',\n 'loximuthal', 'mercator', 'miller', 'mollweide', 'mt flat\n polar parabolic', 'mt flat polar quartic', 'mt flat polar\n sinusoidal', 'natural earth', 'natural earth1', 'natural\n earth2', 'nell hammer', 'nicolosi', 'orthographic',\n 'patterson', 'peirce quincuncial', 'polyconic',\n 'rectangular polyconic', 'robinson', 'satellite', 'sinu\n mollweide', 'sinusoidal', 'stereographic', 'times',\n 'transverse mercator', 'van der grinten', 'van der\n grinten2', 'van der grinten3', 'van der grinten4',\n 'wagner4', 'wagner6', 'wiechel', 'winkel tripel',\n 'winkel3']\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 _prop_descriptions(self):\n return """\\n distance\n For satellite projection type only. Sets the distance\n from the center of the sphere to the point of view as a\n proportion of the sphere’s radius.\n parallels\n For conic projection types only. Sets the parallels\n (tangent, secant) where the cone intersects the sphere.\n rotation\n :class:`plotly.graph_objects.layout.geo.projection.Rota\n tion` instance or dict with compatible properties\n scale\n Zooms in or out on the map view. A scale of 1\n corresponds to the largest zoom level that fits the\n map's lon and lat ranges.\n tilt\n For satellite projection type only. Sets the tilt angle\n of perspective projection.\n type\n Sets the projection type.\n """\n\n def __init__(\n self,\n arg=None,\n distance=None,\n parallels=None,\n rotation=None,\n scale=None,\n tilt=None,\n type=None,\n **kwargs,\n ):\n """\n Construct a new Projection 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.geo.Projection`\n distance\n For satellite projection type only. Sets the distance\n from the center of the sphere to the point of view as a\n proportion of the sphere’s radius.\n parallels\n For conic projection types only. Sets the parallels\n (tangent, secant) where the cone intersects the sphere.\n rotation\n :class:`plotly.graph_objects.layout.geo.projection.Rota\n tion` instance or dict with compatible properties\n scale\n Zooms in or out on the map view. A scale of 1\n corresponds to the largest zoom level that fits the\n map's lon and lat ranges.\n tilt\n For satellite projection type only. Sets the tilt angle\n of perspective projection.\n type\n Sets the projection type.\n\n Returns\n -------\n Projection\n """\n super().__init__("projection")\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.Projection\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.geo.Projection`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("distance", arg, distance)\n self._set_property("parallels", arg, parallels)\n self._set_property("rotation", arg, rotation)\n self._set_property("scale", arg, scale)\n self._set_property("tilt", arg, tilt)\n self._set_property("type", arg, type)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\_projection.py
_projection.py
Python
8,464
0.95
0.087649
0.018433
awesome-app
781
2025-04-26T22:54:31.623842
GPL-3.0
false
04aecf9924d4b71502f0154c802af44d
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._center import Center\n from ._domain import Domain\n from ._lataxis import Lataxis\n from ._lonaxis import Lonaxis\n from ._projection import Projection\n from . import projection\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".projection"],\n [\n "._center.Center",\n "._domain.Domain",\n "._lataxis.Lataxis",\n "._lonaxis.Lonaxis",\n "._projection.Projection",\n ],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\__init__.py
__init__.py
Python
617
0.85
0.041667
0
vue-tools
762
2025-04-13T04:10:49.407991
Apache-2.0
false
11bceabc1790c7ace1bea24705757f3b
# --- 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 Rotation(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.geo.projection"\n _path_str = "layout.geo.projection.rotation"\n _valid_props = {"lat", "lon", "roll"}\n\n @property\n def lat(self):\n """\n Rotates the map along meridians (in degrees North).\n\n The 'lat' 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["lat"]\n\n @lat.setter\n def lat(self, val):\n self["lat"] = val\n\n @property\n def lon(self):\n """\n Rotates the map along parallels (in degrees East). Defaults to\n the center of the `lonaxis.range` values.\n\n The 'lon' 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["lon"]\n\n @lon.setter\n def lon(self, val):\n self["lon"] = val\n\n @property\n def roll(self):\n """\n Roll the map (in degrees) For example, a roll of 180 makes the\n map appear upside down.\n\n The 'roll' 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["roll"]\n\n @roll.setter\n def roll(self, val):\n self["roll"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n lat\n Rotates the map along meridians (in degrees North).\n lon\n Rotates the map along parallels (in degrees East).\n Defaults to the center of the `lonaxis.range` values.\n roll\n Roll the map (in degrees) For example, a roll of 180\n makes the map appear upside down.\n """\n\n def __init__(self, arg=None, lat=None, lon=None, roll=None, **kwargs):\n """\n Construct a new Rotation 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.pro\n jection.Rotation`\n lat\n Rotates the map along meridians (in degrees North).\n lon\n Rotates the map along parallels (in degrees East).\n Defaults to the center of the `lonaxis.range` values.\n roll\n Roll the map (in degrees) For example, a roll of 180\n makes the map appear upside down.\n\n Returns\n -------\n Rotation\n """\n super().__init__("rotation")\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.projection.Rotation\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.geo.projection.Rotation`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("lat", arg, lat)\n self._set_property("lon", arg, lon)\n self._set_property("roll", arg, roll)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\projection\_rotation.py
_rotation.py
Python
3,667
0.95
0.100775
0.018692
awesome-app
80
2025-06-21T02:24:01.673092
BSD-3-Clause
false
8f6648e7d8ef7d82be13fa644d1f5c28
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._rotation import Rotation\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [], ["._rotation.Rotation"]\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\projection\__init__.py
__init__.py
Python
267
0.85
0.090909
0
node-utils
94
2023-11-25T03:11:59.051625
GPL-3.0
false
617876c9dcdff6a2d2ee67be324ea4a2
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\projection\__pycache__\_rotation.cpython-313.pyc
_rotation.cpython-313.pyc
Other
4,671
0.8
0.021505
0
react-lib
980
2024-08-28T08:31:17.389003
BSD-3-Clause
false
9d93c92c396504671e8cf217343022ba
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\projection\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
528
0.95
0
0
node-utils
0
2024-07-14T05:01:58.100238
GPL-3.0
false
f3c14146b2a97be369bca6b50c747f98
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\__pycache__\_center.cpython-313.pyc
_center.cpython-313.pyc
Other
4,369
0.8
0.048544
0
node-utils
35
2023-08-14T02:06:22.461119
MIT
false
8f85105286be9acd2cedbfdc9560732f
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\__pycache__\_domain.cpython-313.pyc
_domain.cpython-313.pyc
Other
8,058
0.8
0.083832
0.012987
react-lib
321
2024-02-02T01:30:50.202682
BSD-3-Clause
false
2aeff23957f2993a68b91a66a909cbe5
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\__pycache__\_lataxis.cpython-313.pyc
_lataxis.cpython-313.pyc
Other
8,302
0.8
0.016667
0.006173
python-kit
897
2024-01-23T09:55:24.762263
BSD-3-Clause
false
e0e79be548442dc956a06dfe8e7fda8e
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\__pycache__\_lonaxis.cpython-313.pyc
_lonaxis.cpython-313.pyc
Other
8,302
0.8
0.016667
0.006173
awesome-app
115
2025-06-26T17:46:42.349904
GPL-3.0
false
c364659ffba5a28b1138157151138956
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\__pycache__\_projection.cpython-313.pyc
_projection.cpython-313.pyc
Other
9,344
0.8
0.025907
0.00565
node-utils
91
2025-04-15T04:52:09.712236
BSD-3-Clause
false
d8c4d748b935cd597605d6684e42d55f
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\geo\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
814
0.85
0
0
node-utils
985
2024-09-10T02:20:05.645718
GPL-3.0
false
a842428ea6e2f06a58c23b0c8dd92852
# --- 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 Domain(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.grid"\n _path_str = "layout.grid.domain"\n _valid_props = {"x", "y"}\n\n @property\n def x(self):\n """\n Sets the horizontal domain of this grid subplot (in plot\n fraction). The first and last cells end exactly at the domain\n edges, with no grout around the edges.\n\n The 'x' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'x[0]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n (1) The 'x[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\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 Sets the vertical domain of this grid subplot (in plot\n fraction). The first and last cells end exactly at the domain\n edges, with no grout around the edges.\n\n The 'y' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'y[0]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n (1) The 'y[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n x\n Sets the horizontal domain of this grid subplot (in\n plot fraction). The first and last cells end exactly at\n the domain edges, with no grout around the edges.\n y\n Sets the vertical domain of this grid subplot (in plot\n fraction). The first and last cells end exactly at the\n domain edges, with no grout around the edges.\n """\n\n def __init__(self, arg=None, x=None, y=None, **kwargs):\n """\n Construct a new Domain 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.grid.Domain`\n x\n Sets the horizontal domain of this grid subplot (in\n plot fraction). The first and last cells end exactly at\n the domain edges, with no grout around the edges.\n y\n Sets the vertical domain of this grid subplot (in plot\n fraction). The first and last cells end exactly at the\n domain edges, with no grout around the edges.\n\n Returns\n -------\n Domain\n """\n super().__init__("domain")\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.Domain\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.grid.Domain`""")\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._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\grid\_domain.py
_domain.py
Python
4,003
0.95
0.090164
0.039216
vue-tools
413
2024-06-10T08:39:28.168325
GPL-3.0
false
b9310a7de7bb5f49bb368ed0167354e9
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._domain import Domain\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._domain.Domain"])\n
.venv\Lib\site-packages\plotly\graph_objs\layout\grid\__init__.py
__init__.py
Python
245
0.85
0.111111
0
awesome-app
693
2024-04-11T14:03:16.139486
GPL-3.0
false
b76f92e9445f02bfaced1266fd515c1d
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\grid\__pycache__\_domain.cpython-313.pyc
_domain.cpython-313.pyc
Other
4,807
0.8
0.019048
0.020833
python-kit
253
2023-07-27T00:42:30.615681
BSD-3-Clause
false
d7c6947fc70140c0d000a2c2d3f21c54
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\grid\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
507
0.85
0
0
node-utils
277
2025-01-17T02:31:51.223478
BSD-3-Clause
false
c28e307a535443c4e81f6f0f09e13c34
# --- 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.hoverlabel"\n _path_str = "layout.hoverlabel.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 default hover label font used by all traces on the\n graph.\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.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.hoverlabel.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.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("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\hoverlabel\_font.py
_font.py
Python
9,932
0.95
0.104478
0.01049
react-lib
287
2024-11-22T11:50:32.039428
BSD-3-Clause
false
08292fa219c31b73f75339b8d8bad529
# --- 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 Grouptitlefont(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.hoverlabel"\n _path_str = "layout.hoverlabel.grouptitlefont"\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 Grouptitlefont object\n\n Sets the font for group titles in hover (unified modes).\n Defaults to `hoverlabel.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.hoverla\n bel.Grouptitlefont`\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 Grouptitlefont\n """\n super().__init__("grouptitlefont")\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.Grouptitlefont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.hoverlabel.Grouptitlefont`""")\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\hoverlabel\_grouptitlefont.py
_grouptitlefont.py
Python
10,034
0.95
0.107463
0.01049
python-kit
282
2024-09-23T01:47:04.975418
GPL-3.0
false
392b1a1f74d4bca439b4c43b1385a736
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\n from ._grouptitlefont import Grouptitlefont\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [], ["._font.Font", "._grouptitlefont.Grouptitlefont"]\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\hoverlabel\__init__.py
__init__.py
Python
334
0.85
0.083333
0
awesome-app
51
2025-03-16T15:59:00.685893
Apache-2.0
false
f33d89b1c73b97f5f1c47a696557127a
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\hoverlabel\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,922
0.8
0.048387
0
node-utils
656
2025-05-13T03:01:42.905233
BSD-3-Clause
false
a8a8b92b02fbc2c98002104e99828dd5
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\hoverlabel\__pycache__\_grouptitlefont.cpython-313.pyc
_grouptitlefont.cpython-313.pyc
Other
11,145
0.8
0.053279
0
awesome-app
416
2023-11-19T12:04:05.593763
BSD-3-Clause
false
015f95c7d655bb06dbe856d72bd7c1f3
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\hoverlabel\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
600
0.85
0
0
react-lib
198
2024-01-31T12:01:07.068137
GPL-3.0
false
c7022643106e8f47f48dd57a85759f45
# --- 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.legend"\n _path_str = "layout.legend.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 font used to text the legend items.\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.legend.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.legend.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.legend.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\legend\_font.py
_font.py
Python
9,882
0.95
0.10479
0.010526
awesome-app
1
2023-10-05T00:14:51.783466
BSD-3-Clause
false
9efa36d0eb3d12ae9b830af869e7edfe
# --- 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 Grouptitlefont(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.legend"\n _path_str = "layout.legend.grouptitlefont"\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 Grouptitlefont object\n\n Sets the font for group titles in legend. Defaults to\n `legend.font` with its size increased about 10%.\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.legend.Grouptitlefont`\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 Grouptitlefont\n """\n super().__init__("grouptitlefont")\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.Grouptitlefont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.legend.Grouptitlefont`""")\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\legend\_grouptitlefont.py
_grouptitlefont.py
Python
10,028
0.95
0.107463
0.01049
awesome-app
5
2025-05-17T18:11:53.421666
GPL-3.0
false
31f77de304f39af6662ae65561fd4deb
# --- 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.legend"\n _path_str = "layout.legend.title"\n _valid_props = {"font", "side", "text"}\n\n @property\n def font(self):\n """\n Sets this legend's title font. Defaults to `legend.font` with\n its size increased about 20%.\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.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.legend.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 legend's title with respect to the\n legend items. Defaulted to "top" with `orientation` is "h".\n Defaulted to "left" with `orientation` is "v". The *top left*\n options could be used to expand top center and top right are\n for horizontal alignment legend area in both x and y sides.\n\n The 'side' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['top', 'left', 'top left', 'top center', 'top right']\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 legend.\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's title font. Defaults to\n `legend.font` with its size increased about 20%.\n side\n Determines the location of legend's title with respect\n to the legend items. Defaulted to "top" with\n `orientation` is "h". Defaulted to "left" with\n `orientation` is "v". The *top left* options could be\n used to expand top center and top right are for\n horizontal alignment legend area in both x and y sides.\n text\n Sets the title of the legend.\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.layout.legend.Title`\n font\n Sets this legend's title font. Defaults to\n `legend.font` with its size increased about 20%.\n side\n Determines the location of legend's title with respect\n to the legend items. Defaulted to "top" with\n `orientation` is "h". Defaulted to "left" with\n `orientation` is "v". The *top left* options could be\n used to expand top center and top right are for\n horizontal alignment legend area in both x and y sides.\n text\n Sets the title of the legend.\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.legend.Title\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.legend.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\layout\legend\_title.py
_title.py
Python
4,642
0.95
0.117241
0.01626
python-kit
235
2023-08-17T10:16:14.489926
BSD-3-Clause
false
de4a1208a2fa13f2898790bba9a240a2
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\n from ._grouptitlefont import Grouptitlefont\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 ["._font.Font", "._grouptitlefont.Grouptitlefont", "._title.Title"],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\legend\__init__.py
__init__.py
Python
430
0.85
0.0625
0
python-kit
37
2025-06-22T15:02:11.103209
Apache-2.0
false
aa7637fd781a5c064feff45a38a2a308
# --- 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.legend.title"\n _path_str = "layout.legend.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 legend's title font. Defaults to `legend.font` with\n its size increased about 20%.\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.legend.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.layout.legend.title.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.legend.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\layout\legend\title\_font.py
_font.py
Python
9,967
0.95
0.104478
0.01049
awesome-app
778
2025-04-28T13:27:09.442472
GPL-3.0
false
6f0e400efe4cfb686f41fc7f34f1336c
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\layout\legend\title\__init__.py
__init__.py
Python
237
0.85
0.111111
0
node-utils
352
2025-01-01T00:08:29.382095
BSD-3-Clause
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\legend\title\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,959
0.8
0.048387
0
awesome-app
337
2024-10-16T18:07:45.008689
MIT
false
d36c8f95821e7d398e0daad357c64cc3
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\legend\title\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
505
0.85
0
0
react-lib
133
2024-01-20T21:40:59.466027
BSD-3-Clause
false
4f539ca88a8707e91537653c38c2b969
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\legend\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,876
0.8
0.048387
0
python-kit
310
2024-07-05T03:00:00.353131
MIT
false
972c57e1de67e14162d4027d845f9531
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\legend\__pycache__\_grouptitlefont.cpython-313.pyc
_grouptitlefont.cpython-313.pyc
Other
11,135
0.8
0.053061
0
awesome-app
991
2025-01-03T11:16:47.968119
BSD-3-Clause
false
cb578519d4089f83ca8b056af26313fc
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\legend\__pycache__\_title.cpython-313.pyc
_title.cpython-313.pyc
Other
5,507
0.8
0.053097
0
node-utils
27
2024-04-26T18:15:47.840057
GPL-3.0
false
c682c3833088d5729edf9aff92a57e94
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\legend\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
689
0.85
0
0
node-utils
577
2024-02-19T14:47:39.351029
MIT
false
0039e3e32cd1d1dd987ff66f7cd21b00
# --- 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 Bounds(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.map"\n _path_str = "layout.map.bounds"\n _valid_props = {"east", "north", "south", "west"}\n\n @property\n def east(self):\n """\n Sets the maximum longitude of the map (in degrees East) if\n `west`, `south` and `north` are declared.\n\n The 'east' 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["east"]\n\n @east.setter\n def east(self, val):\n self["east"] = val\n\n @property\n def north(self):\n """\n Sets the maximum latitude of the map (in degrees North) if\n `east`, `west` and `south` are declared.\n\n The 'north' 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["north"]\n\n @north.setter\n def north(self, val):\n self["north"] = val\n\n @property\n def south(self):\n """\n Sets the minimum latitude of the map (in degrees North) if\n `east`, `west` and `north` are declared.\n\n The 'south' 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["south"]\n\n @south.setter\n def south(self, val):\n self["south"] = val\n\n @property\n def west(self):\n """\n Sets the minimum longitude of the map (in degrees East) if\n `east`, `south` and `north` are declared.\n\n The 'west' 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["west"]\n\n @west.setter\n def west(self, val):\n self["west"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n east\n Sets the maximum longitude of the map (in degrees East)\n if `west`, `south` and `north` are declared.\n north\n Sets the maximum latitude of the map (in degrees North)\n if `east`, `west` and `south` are declared.\n south\n Sets the minimum latitude of the map (in degrees North)\n if `east`, `west` and `north` are declared.\n west\n Sets the minimum longitude of the map (in degrees East)\n if `east`, `south` and `north` are declared.\n """\n\n def __init__(\n self, arg=None, east=None, north=None, south=None, west=None, **kwargs\n ):\n """\n Construct a new Bounds 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.map.Bounds`\n east\n Sets the maximum longitude of the map (in degrees East)\n if `west`, `south` and `north` are declared.\n north\n Sets the maximum latitude of the map (in degrees North)\n if `east`, `west` and `south` are declared.\n south\n Sets the minimum latitude of the map (in degrees North)\n if `east`, `west` and `north` are declared.\n west\n Sets the minimum longitude of the map (in degrees East)\n if `east`, `south` and `north` are declared.\n\n Returns\n -------\n Bounds\n """\n super().__init__("bounds")\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.Bounds\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.map.Bounds`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("east", arg, east)\n self._set_property("north", arg, north)\n self._set_property("south", arg, south)\n self._set_property("west", arg, west)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\_bounds.py
_bounds.py
Python
4,620
0.95
0.16875
0.014925
awesome-app
231
2024-01-08T07:41:14.107318
GPL-3.0
false
202736a8c0ae0345523178a3a6108fc5
# --- 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 Center(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.map"\n _path_str = "layout.map.center"\n _valid_props = {"lat", "lon"}\n\n @property\n def lat(self):\n """\n Sets the latitude of the center of the map (in degrees North).\n\n The 'lat' 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["lat"]\n\n @lat.setter\n def lat(self, val):\n self["lat"] = val\n\n @property\n def lon(self):\n """\n Sets the longitude of the center of the map (in degrees East).\n\n The 'lon' 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["lon"]\n\n @lon.setter\n def lon(self, val):\n self["lon"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n lat\n Sets the latitude of the center of the map (in degrees\n North).\n lon\n Sets the longitude of the center of the map (in degrees\n East).\n """\n\n def __init__(self, arg=None, lat=None, lon=None, **kwargs):\n """\n Construct a new Center 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.map.Center`\n lat\n Sets the latitude of the center of the map (in degrees\n North).\n lon\n Sets the longitude of the center of the map (in degrees\n East).\n\n Returns\n -------\n Center\n """\n super().__init__("center")\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.Center\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.map.Center`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("lat", arg, lat)\n self._set_property("lon", arg, lon)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\_center.py
_center.py
Python
2,800
0.95
0.105769
0.023256
awesome-app
52
2024-11-12T22:07:10.748311
BSD-3-Clause
false
10a863d5029e66099fdc49d5696daaf4
# --- 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 Domain(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.map"\n _path_str = "layout.map.domain"\n _valid_props = {"column", "row", "x", "y"}\n\n @property\n def column(self):\n """\n If there is a layout grid, use the domain for this column in\n the grid for this map subplot .\n\n The 'column' 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["column"]\n\n @column.setter\n def column(self, val):\n self["column"] = val\n\n @property\n def row(self):\n """\n If there is a layout grid, use the domain for this row in the\n grid for this map subplot .\n\n The 'row' 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["row"]\n\n @row.setter\n def row(self, val):\n self["row"] = val\n\n @property\n def x(self):\n """\n Sets the horizontal domain of this map subplot (in plot\n fraction).\n\n The 'x' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'x[0]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n (1) The 'x[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\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 Sets the vertical domain of this map subplot (in plot\n fraction).\n\n The 'y' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'y[0]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n (1) The 'y[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n column\n If there is a layout grid, use the domain for this\n column in the grid for this map subplot .\n row\n If there is a layout grid, use the domain for this row\n in the grid for this map subplot .\n x\n Sets the horizontal domain of this map subplot (in plot\n fraction).\n y\n Sets the vertical domain of this map subplot (in plot\n fraction).\n """\n\n def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs):\n """\n Construct a new Domain 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.map.Domain`\n column\n If there is a layout grid, use the domain for this\n column in the grid for this map subplot .\n row\n If there is a layout grid, use the domain for this row\n in the grid for this map subplot .\n x\n Sets the horizontal domain of this map subplot (in plot\n fraction).\n y\n Sets the vertical domain of this map subplot (in plot\n fraction).\n\n Returns\n -------\n Domain\n """\n super().__init__("domain")\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.Domain\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.map.Domain`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("column", arg, column)\n self._set_property("row", arg, row)\n self._set_property("x", arg, x)\n self._set_property("y", arg, y)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\_domain.py
_domain.py
Python
5,011
0.95
0.158824
0.028169
vue-tools
161
2024-02-09T19:48:46.329370
GPL-3.0
false
e7ce91043f15825c685cf9e81f9a1a7e
# --- 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 Layer(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.map"\n _path_str = "layout.map.layer"\n _valid_props = {\n "below",\n "circle",\n "color",\n "coordinates",\n "fill",\n "line",\n "maxzoom",\n "minzoom",\n "name",\n "opacity",\n "source",\n "sourceattribution",\n "sourcelayer",\n "sourcetype",\n "symbol",\n "templateitemname",\n "type",\n "visible",\n }\n\n @property\n def below(self):\n """\n Determines if the layer will be inserted before the layer with\n the specified ID. If omitted or set to '', the layer will be\n inserted above every existing layer.\n\n The 'below' 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["below"]\n\n @below.setter\n def below(self, val):\n self["below"] = val\n\n @property\n def circle(self):\n """\n The 'circle' property is an instance of Circle\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.map.layer.Circle`\n - A dict of string/value properties that will be passed\n to the Circle constructor\n\n Returns\n -------\n plotly.graph_objs.layout.map.layer.Circle\n """\n return self["circle"]\n\n @circle.setter\n def circle(self, val):\n self["circle"] = val\n\n @property\n def color(self):\n """\n Sets the primary layer color. If `type` is "circle", color\n corresponds to the circle color (map.layer.paint.circle-color)\n If `type` is "line", color corresponds to the line color\n (map.layer.paint.line-color) If `type` is "fill", color\n corresponds to the fill color (map.layer.paint.fill-color) If\n `type` is "symbol", color corresponds to the icon color\n (map.layer.paint.icon-color)\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 coordinates(self):\n """\n Sets the coordinates array contains [longitude, latitude] pairs\n for the image corners listed in clockwise order: top left, top\n right, bottom right, bottom left. Only has an effect for\n "image" `sourcetype`.\n\n The 'coordinates' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["coordinates"]\n\n @coordinates.setter\n def coordinates(self, val):\n self["coordinates"] = val\n\n @property\n def fill(self):\n """\n The 'fill' property is an instance of Fill\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.map.layer.Fill`\n - A dict of string/value properties that will be passed\n to the Fill constructor\n\n Returns\n -------\n plotly.graph_objs.layout.map.layer.Fill\n """\n return self["fill"]\n\n @fill.setter\n def fill(self, val):\n self["fill"] = 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.map.layer.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.map.layer.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def maxzoom(self):\n """\n Sets the maximum zoom level (map.layer.maxzoom). At zoom levels\n equal to or greater than the maxzoom, the layer will be hidden.\n\n The 'maxzoom' property is a number and may be specified as:\n - An int or float in the interval [0, 24]\n\n Returns\n -------\n int|float\n """\n return self["maxzoom"]\n\n @maxzoom.setter\n def maxzoom(self, val):\n self["maxzoom"] = val\n\n @property\n def minzoom(self):\n """\n Sets the minimum zoom level (map.layer.minzoom). At zoom levels\n less than the minzoom, the layer will be hidden.\n\n The 'minzoom' property is a number and may be specified as:\n - An int or float in the interval [0, 24]\n\n Returns\n -------\n int|float\n """\n return self["minzoom"]\n\n @minzoom.setter\n def minzoom(self, val):\n self["minzoom"] = 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 layer. If `type` is "circle", opacity\n corresponds to the circle opacity (map.layer.paint.circle-\n opacity) If `type` is "line", opacity corresponds to the line\n opacity (map.layer.paint.line-opacity) If `type` is "fill",\n opacity corresponds to the fill opacity (map.layer.paint.fill-\n opacity) If `type` is "symbol", opacity corresponds to the\n icon/text opacity (map.layer.paint.text-opacity)\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 source(self):\n """\n Sets the source data for this layer (map.layer.source). When\n `sourcetype` is set to "geojson", `source` can be a URL to a\n GeoJSON or a GeoJSON object. When `sourcetype` is set to\n "vector" or "raster", `source` can be a URL or an array of tile\n URLs. When `sourcetype` is set to "image", `source` can be a\n URL to an image.\n\n The 'source' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["source"]\n\n @source.setter\n def source(self, val):\n self["source"] = val\n\n @property\n def sourceattribution(self):\n """\n Sets the attribution for this source.\n\n The 'sourceattribution' 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["sourceattribution"]\n\n @sourceattribution.setter\n def sourceattribution(self, val):\n self["sourceattribution"] = val\n\n @property\n def sourcelayer(self):\n """\n Specifies the layer to use from a vector tile source\n (map.layer.source-layer). Required for "vector" source type\n that supports multiple layers.\n\n The 'sourcelayer' 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["sourcelayer"]\n\n @sourcelayer.setter\n def sourcelayer(self, val):\n self["sourcelayer"] = val\n\n @property\n def sourcetype(self):\n """\n Sets the source type for this layer, that is the type of the\n layer data.\n\n The 'sourcetype' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['geojson', 'vector', 'raster', 'image']\n\n Returns\n -------\n Any\n """\n return self["sourcetype"]\n\n @sourcetype.setter\n def sourcetype(self, val):\n self["sourcetype"] = val\n\n @property\n def symbol(self):\n """\n The 'symbol' property is an instance of Symbol\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.map.layer.Symbol`\n - A dict of string/value properties that will be passed\n to the Symbol constructor\n\n Returns\n -------\n plotly.graph_objs.layout.map.layer.Symbol\n """\n return self["symbol"]\n\n @symbol.setter\n def symbol(self, val):\n self["symbol"] = 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 Sets the layer type, that is the how the layer data set in\n `source` will be rendered With `sourcetype` set to "geojson",\n the following values are allowed: "circle", "line", "fill" and\n "symbol". but note that "line" and "fill" are not compatible\n with Point GeoJSON geometries. With `sourcetype` set to\n "vector", the following values are allowed: "circle", "line",\n "fill" and "symbol". With `sourcetype` set to "raster" or\n `*image*`, only the "raster" value is allowed.\n\n The 'type' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['circle', 'line', 'fill', 'symbol', 'raster']\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 this layer is displayed\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 below\n Determines if the layer will be inserted before the\n layer with the specified ID. If omitted or set to '',\n the layer will be inserted above every existing layer.\n circle\n :class:`plotly.graph_objects.layout.map.layer.Circle`\n instance or dict with compatible properties\n color\n Sets the primary layer color. If `type` is "circle",\n color corresponds to the circle color\n (map.layer.paint.circle-color) If `type` is "line",\n color corresponds to the line color\n (map.layer.paint.line-color) If `type` is "fill", color\n corresponds to the fill color (map.layer.paint.fill-\n color) If `type` is "symbol", color corresponds to the\n icon color (map.layer.paint.icon-color)\n coordinates\n Sets the coordinates array contains [longitude,\n latitude] pairs for the image corners listed in\n clockwise order: top left, top right, bottom right,\n bottom left. Only has an effect for "image"\n `sourcetype`.\n fill\n :class:`plotly.graph_objects.layout.map.layer.Fill`\n instance or dict with compatible properties\n line\n :class:`plotly.graph_objects.layout.map.layer.Line`\n instance or dict with compatible properties\n maxzoom\n Sets the maximum zoom level (map.layer.maxzoom). At\n zoom levels equal to or greater than the maxzoom, the\n layer will be hidden.\n minzoom\n Sets the minimum zoom level (map.layer.minzoom). At\n zoom levels less than the minzoom, the layer will be\n hidden.\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 layer. If `type` is "circle",\n opacity corresponds to the circle opacity\n (map.layer.paint.circle-opacity) If `type` is "line",\n opacity corresponds to the line opacity\n (map.layer.paint.line-opacity) If `type` is "fill",\n opacity corresponds to the fill opacity\n (map.layer.paint.fill-opacity) If `type` is "symbol",\n opacity corresponds to the icon/text opacity\n (map.layer.paint.text-opacity)\n source\n Sets the source data for this layer (map.layer.source).\n When `sourcetype` is set to "geojson", `source` can be\n a URL to a GeoJSON or a GeoJSON object. When\n `sourcetype` is set to "vector" or "raster", `source`\n can be a URL or an array of tile URLs. When\n `sourcetype` is set to "image", `source` can be a URL\n to an image.\n sourceattribution\n Sets the attribution for this source.\n sourcelayer\n Specifies the layer to use from a vector tile source\n (map.layer.source-layer). Required for "vector" source\n type that supports multiple layers.\n sourcetype\n Sets the source type for this layer, that is the type\n of the layer data.\n symbol\n :class:`plotly.graph_objects.layout.map.layer.Symbol`\n instance or dict with compatible properties\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 Sets the layer type, that is the how the layer data set\n in `source` will be rendered With `sourcetype` set to\n "geojson", the following values are allowed: "circle",\n "line", "fill" and "symbol". but note that "line" and\n "fill" are not compatible with Point GeoJSON\n geometries. With `sourcetype` set to "vector", the\n following values are allowed: "circle", "line", "fill"\n and "symbol". With `sourcetype` set to "raster" or\n `*image*`, only the "raster" value is allowed.\n visible\n Determines whether this layer is displayed\n """\n\n def __init__(\n self,\n arg=None,\n below=None,\n circle=None,\n color=None,\n coordinates=None,\n fill=None,\n line=None,\n maxzoom=None,\n minzoom=None,\n name=None,\n opacity=None,\n source=None,\n sourceattribution=None,\n sourcelayer=None,\n sourcetype=None,\n symbol=None,\n templateitemname=None,\n type=None,\n visible=None,\n **kwargs,\n ):\n """\n Construct a new Layer 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.map.Layer`\n below\n Determines if the layer will be inserted before the\n layer with the specified ID. If omitted or set to '',\n the layer will be inserted above every existing layer.\n circle\n :class:`plotly.graph_objects.layout.map.layer.Circle`\n instance or dict with compatible properties\n color\n Sets the primary layer color. If `type` is "circle",\n color corresponds to the circle color\n (map.layer.paint.circle-color) If `type` is "line",\n color corresponds to the line color\n (map.layer.paint.line-color) If `type` is "fill", color\n corresponds to the fill color (map.layer.paint.fill-\n color) If `type` is "symbol", color corresponds to the\n icon color (map.layer.paint.icon-color)\n coordinates\n Sets the coordinates array contains [longitude,\n latitude] pairs for the image corners listed in\n clockwise order: top left, top right, bottom right,\n bottom left. Only has an effect for "image"\n `sourcetype`.\n fill\n :class:`plotly.graph_objects.layout.map.layer.Fill`\n instance or dict with compatible properties\n line\n :class:`plotly.graph_objects.layout.map.layer.Line`\n instance or dict with compatible properties\n maxzoom\n Sets the maximum zoom level (map.layer.maxzoom). At\n zoom levels equal to or greater than the maxzoom, the\n layer will be hidden.\n minzoom\n Sets the minimum zoom level (map.layer.minzoom). At\n zoom levels less than the minzoom, the layer will be\n hidden.\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 layer. If `type` is "circle",\n opacity corresponds to the circle opacity\n (map.layer.paint.circle-opacity) If `type` is "line",\n opacity corresponds to the line opacity\n (map.layer.paint.line-opacity) If `type` is "fill",\n opacity corresponds to the fill opacity\n (map.layer.paint.fill-opacity) If `type` is "symbol",\n opacity corresponds to the icon/text opacity\n (map.layer.paint.text-opacity)\n source\n Sets the source data for this layer (map.layer.source).\n When `sourcetype` is set to "geojson", `source` can be\n a URL to a GeoJSON or a GeoJSON object. When\n `sourcetype` is set to "vector" or "raster", `source`\n can be a URL or an array of tile URLs. When\n `sourcetype` is set to "image", `source` can be a URL\n to an image.\n sourceattribution\n Sets the attribution for this source.\n sourcelayer\n Specifies the layer to use from a vector tile source\n (map.layer.source-layer). Required for "vector" source\n type that supports multiple layers.\n sourcetype\n Sets the source type for this layer, that is the type\n of the layer data.\n symbol\n :class:`plotly.graph_objects.layout.map.layer.Symbol`\n instance or dict with compatible properties\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 Sets the layer type, that is the how the layer data set\n in `source` will be rendered With `sourcetype` set to\n "geojson", the following values are allowed: "circle",\n "line", "fill" and "symbol". but note that "line" and\n "fill" are not compatible with Point GeoJSON\n geometries. With `sourcetype` set to "vector", the\n following values are allowed: "circle", "line", "fill"\n and "symbol". With `sourcetype` set to "raster" or\n `*image*`, only the "raster" value is allowed.\n visible\n Determines whether this layer is displayed\n\n Returns\n -------\n Layer\n """\n super().__init__("layers")\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.Layer\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.map.Layer`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("below", arg, below)\n self._set_property("circle", arg, circle)\n self._set_property("color", arg, color)\n self._set_property("coordinates", arg, coordinates)\n self._set_property("fill", arg, fill)\n self._set_property("line", arg, line)\n self._set_property("maxzoom", arg, maxzoom)\n self._set_property("minzoom", arg, minzoom)\n self._set_property("name", arg, name)\n self._set_property("opacity", arg, opacity)\n self._set_property("source", arg, source)\n self._set_property("sourceattribution", arg, sourceattribution)\n self._set_property("sourcelayer", arg, sourcelayer)\n self._set_property("sourcetype", arg, sourcetype)\n self._set_property("symbol", arg, symbol)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("type", arg, type)\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\map\_layer.py
_layer.py
Python
24,285
0.95
0.111433
0.004894
python-kit
530
2023-09-02T07:19:15.736513
MIT
false
20953bb3f7e013e03812189ab4406749
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._bounds import Bounds\n from ._center import Center\n from ._domain import Domain\n from ._layer import Layer\n from . import layer\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".layer"],\n ["._bounds.Bounds", "._center.Center", "._domain.Domain", "._layer.Layer"],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\__init__.py
__init__.py
Python
457
0.85
0.058824
0
vue-tools
396
2024-07-15T12:31:05.391924
GPL-3.0
false
9b566c0d5c0d70c9a44d897902249f31
# --- 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 Circle(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.map.layer"\n _path_str = "layout.map.layer.circle"\n _valid_props = {"radius"}\n\n @property\n def radius(self):\n """\n Sets the circle radius (map.layer.paint.circle-radius). Has an\n effect only when `type` is set to "circle".\n\n The 'radius' 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["radius"]\n\n @radius.setter\n def radius(self, val):\n self["radius"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n radius\n Sets the circle radius (map.layer.paint.circle-radius).\n Has an effect only when `type` is set to "circle".\n """\n\n def __init__(self, arg=None, radius=None, **kwargs):\n """\n Construct a new Circle 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.map.layer.Circle`\n radius\n Sets the circle radius (map.layer.paint.circle-radius).\n Has an effect only when `type` is set to "circle".\n\n Returns\n -------\n Circle\n """\n super().__init__("circle")\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.layer.Circle\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.map.layer.Circle`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("radius", arg, radius)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\_circle.py
_circle.py
Python
2,380
0.95
0.1125
0.030303
vue-tools
551
2024-05-05T17:07:11.494867
MIT
false
f4223efbabe80314772a92bfe156609e
# --- 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 Fill(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.map.layer"\n _path_str = "layout.map.layer.fill"\n _valid_props = {"outlinecolor"}\n\n @property\n def outlinecolor(self):\n """\n Sets the fill outline color (map.layer.paint.fill-outline-\n color). Has an effect only when `type` is set to "fill".\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 _prop_descriptions(self):\n return """\\n outlinecolor\n Sets the fill outline color (map.layer.paint.fill-\n outline-color). Has an effect only when `type` is set\n to "fill".\n """\n\n def __init__(self, arg=None, outlinecolor=None, **kwargs):\n """\n Construct a new Fill 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.map.layer.Fill`\n outlinecolor\n Sets the fill outline color (map.layer.paint.fill-\n outline-color). Has an effect only when `type` is set\n to "fill".\n\n Returns\n -------\n Fill\n """\n super().__init__("fill")\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.layer.Fill\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.map.layer.Fill`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("outlinecolor", arg, outlinecolor)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\_fill.py
_fill.py
Python
2,744
0.95
0.116279
0.027778
python-kit
95
2025-04-03T01:26:58.090823
BSD-3-Clause
false
6aa38279b4823a49cf5a32920f1566d7
# --- 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 Line(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.map.layer"\n _path_str = "layout.map.layer.line"\n _valid_props = {"dash", "dashsrc", "width"}\n\n @property\n def dash(self):\n """\n Sets the length of dashes and gaps (map.layer.paint.line-\n dasharray). Has an effect only when `type` is set to "line".\n\n The 'dash' 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["dash"]\n\n @dash.setter\n def dash(self, val):\n self["dash"] = val\n\n @property\n def dashsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `dash`.\n\n The 'dashsrc' 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["dashsrc"]\n\n @dashsrc.setter\n def dashsrc(self, val):\n self["dashsrc"] = val\n\n @property\n def width(self):\n """\n Sets the line width (map.layer.paint.line-width). Has an effect\n only when `type` is set to "line".\n\n The 'width' 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["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 dash\n Sets the length of dashes and gaps\n (map.layer.paint.line-dasharray). Has an effect only\n when `type` is set to "line".\n dashsrc\n Sets the source reference on Chart Studio Cloud for\n `dash`.\n width\n Sets the line width (map.layer.paint.line-width). Has\n an effect only when `type` is set to "line".\n """\n\n def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs):\n """\n Construct a new Line 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.map.layer.Line`\n dash\n Sets the length of dashes and gaps\n (map.layer.paint.line-dasharray). Has an effect only\n when `type` is set to "line".\n dashsrc\n Sets the source reference on Chart Studio Cloud for\n `dash`.\n width\n Sets the line width (map.layer.paint.line-width). Has\n an effect only when `type` is set to "line".\n\n Returns\n -------\n Line\n """\n super().__init__("line")\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.layer.Line\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.map.layer.Line`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("dash", arg, dash)\n self._set_property("dashsrc", arg, dashsrc)\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\layout\map\layer\_line.py
_line.py
Python
3,864
0.95
0.120301
0.018018
react-lib
956
2024-06-08T21:02:36.615594
Apache-2.0
false
7e6302f63b62efaa0f19c96edc0aba51
# --- 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 Symbol(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.map.layer"\n _path_str = "layout.map.layer.symbol"\n _valid_props = {"icon", "iconsize", "placement", "text", "textfont", "textposition"}\n\n @property\n def icon(self):\n """\n Sets the symbol icon image (map.layer.layout.icon-image). Full\n list: https://www.map.com/maki-icons/\n\n The 'icon' 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["icon"]\n\n @icon.setter\n def icon(self, val):\n self["icon"] = val\n\n @property\n def iconsize(self):\n """\n Sets the symbol icon size (map.layer.layout.icon-size). Has an\n effect only when `type` is set to "symbol".\n\n The 'iconsize' 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["iconsize"]\n\n @iconsize.setter\n def iconsize(self, val):\n self["iconsize"] = val\n\n @property\n def placement(self):\n """\n Sets the symbol and/or text placement (map.layer.layout.symbol-\n placement). If `placement` is "point", the label is placed\n where the geometry is located If `placement` is "line", the\n label is placed along the line of the geometry If `placement`\n is "line-center", the label is placed on the center of the\n geometry\n\n The 'placement' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['point', 'line', 'line-center']\n\n Returns\n -------\n Any\n """\n return self["placement"]\n\n @placement.setter\n def placement(self, val):\n self["placement"] = val\n\n @property\n def text(self):\n """\n Sets the symbol text (map.layer.layout.text-field).\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 textfont(self):\n """\n Sets the icon text font (color=map.layer.paint.text-color,\n size=map.layer.layout.text-size). Has an effect only when\n `type` is set to "symbol".\n\n The 'textfont' property is an instance of Textfont\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.map.layer.symbol.Textfont`\n - A dict of string/value properties that will be passed\n to the Textfont constructor\n\n Returns\n -------\n plotly.graph_objs.layout.map.layer.symbol.Textfont\n """\n return self["textfont"]\n\n @textfont.setter\n def textfont(self, val):\n self["textfont"] = val\n\n @property\n def textposition(self):\n """\n Sets the positions of the `text` elements with respects to the\n (x,y) coordinates.\n\n The 'textposition' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['top left', 'top center', 'top right', 'middle left',\n 'middle center', 'middle right', 'bottom left', 'bottom\n center', 'bottom right']\n\n Returns\n -------\n Any\n """\n return self["textposition"]\n\n @textposition.setter\n def textposition(self, val):\n self["textposition"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n icon\n Sets the symbol icon image (map.layer.layout.icon-\n image). Full list: https://www.map.com/maki-icons/\n iconsize\n Sets the symbol icon size (map.layer.layout.icon-size).\n Has an effect only when `type` is set to "symbol".\n placement\n Sets the symbol and/or text placement\n (map.layer.layout.symbol-placement). If `placement` is\n "point", the label is placed where the geometry is\n located If `placement` is "line", the label is placed\n along the line of the geometry If `placement` is "line-\n center", the label is placed on the center of the\n geometry\n text\n Sets the symbol text (map.layer.layout.text-field).\n textfont\n Sets the icon text font (color=map.layer.paint.text-\n color, size=map.layer.layout.text-size). Has an effect\n only when `type` is set to "symbol".\n textposition\n Sets the positions of the `text` elements with respects\n to the (x,y) coordinates.\n """\n\n def __init__(\n self,\n arg=None,\n icon=None,\n iconsize=None,\n placement=None,\n text=None,\n textfont=None,\n textposition=None,\n **kwargs,\n ):\n """\n Construct a new Symbol 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.map.layer.Symbol`\n icon\n Sets the symbol icon image (map.layer.layout.icon-\n image). Full list: https://www.map.com/maki-icons/\n iconsize\n Sets the symbol icon size (map.layer.layout.icon-size).\n Has an effect only when `type` is set to "symbol".\n placement\n Sets the symbol and/or text placement\n (map.layer.layout.symbol-placement). If `placement` is\n "point", the label is placed where the geometry is\n located If `placement` is "line", the label is placed\n along the line of the geometry If `placement` is "line-\n center", the label is placed on the center of the\n geometry\n text\n Sets the symbol text (map.layer.layout.text-field).\n textfont\n Sets the icon text font (color=map.layer.paint.text-\n color, size=map.layer.layout.text-size). Has an effect\n only when `type` is set to "symbol".\n textposition\n Sets the positions of the `text` elements with respects\n to the (x,y) coordinates.\n\n Returns\n -------\n Symbol\n """\n super().__init__("symbol")\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.layer.Symbol\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.map.layer.Symbol`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("icon", arg, icon)\n self._set_property("iconsize", arg, iconsize)\n self._set_property("placement", arg, placement)\n self._set_property("text", arg, text)\n self._set_property("textfont", arg, textfont)\n self._set_property("textposition", arg, textposition)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\_symbol.py
_symbol.py
Python
7,807
0.95
0.082305
0.014354
python-kit
308
2024-04-02T07:59:47.095345
MIT
false
adff219f06e16c3f8ab7a627ab573709
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._circle import Circle\n from ._fill import Fill\n from ._line import Line\n from ._symbol import Symbol\n from . import symbol\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".symbol"],\n ["._circle.Circle", "._fill.Fill", "._line.Line", "._symbol.Symbol"],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\__init__.py
__init__.py
Python
447
0.85
0.058824
0
vue-tools
250
2023-10-14T09:49:47.009053
GPL-3.0
false
71b0fdfe5a1ed0aceb0a4ec4153bb8d0
# --- 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 Textfont(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.map.layer.symbol"\n _path_str = "layout.map.layer.symbol.textfont"\n _valid_props = {"color", "family", "size", "style", "weight"}\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 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 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 size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\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 size=None,\n style=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Textfont object\n\n Sets the icon text font (color=map.layer.paint.text-color,\n size=map.layer.layout.text-size). Has an effect only when\n `type` is set to "symbol".\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.lay\n er.symbol.Textfont`\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 size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Textfont\n """\n super().__init__("textfont")\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.layer.symbol.Textfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.map.layer.symbol.Textfont`""")\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("size", arg, size)\n self._set_property("style", arg, style)\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\map\layer\symbol\_textfont.py
_textfont.py
Python
5,888
0.95
0.118812
0.017751
react-lib
788
2024-11-27T13:15:23.839330
Apache-2.0
false
d43c49119c3b254b0add635fca0e0ae5
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._textfont import Textfont\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [], ["._textfont.Textfont"]\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\symbol\__init__.py
__init__.py
Python
267
0.85
0.090909
0
node-utils
655
2024-01-03T05:05:02.630240
BSD-3-Clause
false
5be2d129f4ac0c2ab7e40d722b6b818b
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\symbol\__pycache__\_textfont.cpython-313.pyc
_textfont.cpython-313.pyc
Other
6,890
0.8
0.055215
0
vue-tools
193
2025-05-06T02:45:17.362008
MIT
false
246b4d8998e32547e7155247bddd37e2
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\symbol\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
530
0.95
0
0
node-utils
909
2023-09-07T07:21:29.037292
BSD-3-Clause
false
3130f5016e0f74cc8d86fb09559b3550
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\__pycache__\_circle.cpython-313.pyc
_circle.cpython-313.pyc
Other
3,154
0.8
0.034483
0
vue-tools
142
2025-02-05T06:49:13.638682
BSD-3-Clause
false
4f84f53c100f3f74d8f0912838366094
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\__pycache__\_fill.cpython-313.pyc
_fill.cpython-313.pyc
Other
3,436
0.8
0.046154
0
python-kit
353
2023-10-23T03:03:59.137710
Apache-2.0
false
0c83ab3f5ce471bc90171810f1775da7
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\__pycache__\_line.cpython-313.pyc
_line.cpython-313.pyc
Other
4,790
0.8
0.05102
0
vue-tools
574
2024-08-15T04:14:01.205577
GPL-3.0
false
d11c2b387dc6aa478d610a8f7721b4bb
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\__pycache__\_symbol.cpython-313.pyc
_symbol.cpython-313.pyc
Other
8,700
0.8
0.016393
0
vue-tools
555
2025-04-23T20:33:30.332473
MIT
false
a341d6dcdd6d4e1f712f03954d97f932
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\layer\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
714
0.85
0
0
vue-tools
648
2025-07-09T06:28:40.431003
Apache-2.0
false
17ef25fe638db7283e877ce363c52839
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\__pycache__\_bounds.cpython-313.pyc
_bounds.cpython-313.pyc
Other
5,599
0.8
0.113821
0
awesome-app
952
2023-09-05T22:52:02.852637
BSD-3-Clause
false
f216accfc525ed2e29f81a797ba1edb5
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\__pycache__\_center.cpython-313.pyc
_center.cpython-313.pyc
Other
3,677
0.8
0.022472
0
vue-tools
351
2024-03-28T20:21:09.815228
GPL-3.0
false
63f3e13949574c61ef895a556dc1aeb8
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\__pycache__\_domain.cpython-313.pyc
_domain.cpython-313.pyc
Other
5,999
0.8
0.101449
0.016
awesome-app
890
2025-06-20T19:19:45.770022
MIT
false
ce2c918530afdac0e0fefa4b24398a7c
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\__pycache__\_layer.cpython-313.pyc
_layer.cpython-313.pyc
Other
25,066
0.8
0.071146
0
react-lib
512
2024-09-22T02:09:35.298922
GPL-3.0
false
e7f2f4a65f9cb096e15262daf97722a2
\n\n
.venv\Lib\site-packages\plotly\graph_objs\layout\map\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
718
0.85
0
0
node-utils
210
2025-03-28T22:27:08.661430
BSD-3-Clause
false
c300c636d0a3d38b311a5fa1b5ff1bca
# --- 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 Bounds(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.mapbox"\n _path_str = "layout.mapbox.bounds"\n _valid_props = {"east", "north", "south", "west"}\n\n @property\n def east(self):\n """\n Sets the maximum longitude of the map (in degrees East) if\n `west`, `south` and `north` are declared.\n\n The 'east' 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["east"]\n\n @east.setter\n def east(self, val):\n self["east"] = val\n\n @property\n def north(self):\n """\n Sets the maximum latitude of the map (in degrees North) if\n `east`, `west` and `south` are declared.\n\n The 'north' 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["north"]\n\n @north.setter\n def north(self, val):\n self["north"] = val\n\n @property\n def south(self):\n """\n Sets the minimum latitude of the map (in degrees North) if\n `east`, `west` and `north` are declared.\n\n The 'south' 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["south"]\n\n @south.setter\n def south(self, val):\n self["south"] = val\n\n @property\n def west(self):\n """\n Sets the minimum longitude of the map (in degrees East) if\n `east`, `south` and `north` are declared.\n\n The 'west' 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["west"]\n\n @west.setter\n def west(self, val):\n self["west"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n east\n Sets the maximum longitude of the map (in degrees East)\n if `west`, `south` and `north` are declared.\n north\n Sets the maximum latitude of the map (in degrees North)\n if `east`, `west` and `south` are declared.\n south\n Sets the minimum latitude of the map (in degrees North)\n if `east`, `west` and `north` are declared.\n west\n Sets the minimum longitude of the map (in degrees East)\n if `east`, `south` and `north` are declared.\n """\n\n def __init__(\n self, arg=None, east=None, north=None, south=None, west=None, **kwargs\n ):\n """\n Construct a new Bounds 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.mapbox.Bounds`\n east\n Sets the maximum longitude of the map (in degrees East)\n if `west`, `south` and `north` are declared.\n north\n Sets the maximum latitude of the map (in degrees North)\n if `east`, `west` and `south` are declared.\n south\n Sets the minimum latitude of the map (in degrees North)\n if `east`, `west` and `north` are declared.\n west\n Sets the minimum longitude of the map (in degrees East)\n if `east`, `south` and `north` are declared.\n\n Returns\n -------\n Bounds\n """\n super().__init__("bounds")\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.Bounds\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.mapbox.Bounds`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("east", arg, east)\n self._set_property("north", arg, north)\n self._set_property("south", arg, south)\n self._set_property("west", arg, west)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\mapbox\_bounds.py
_bounds.py
Python
4,635
0.95
0.16875
0.014925
node-utils
702
2024-09-29T02:07:04.277629
Apache-2.0
false
0044e8bf64addc458e53f46b2806eec3
# --- 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 Center(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.mapbox"\n _path_str = "layout.mapbox.center"\n _valid_props = {"lat", "lon"}\n\n @property\n def lat(self):\n """\n Sets the latitude of the center of the map (in degrees North).\n\n The 'lat' 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["lat"]\n\n @lat.setter\n def lat(self, val):\n self["lat"] = val\n\n @property\n def lon(self):\n """\n Sets the longitude of the center of the map (in degrees East).\n\n The 'lon' 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["lon"]\n\n @lon.setter\n def lon(self, val):\n self["lon"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n lat\n Sets the latitude of the center of the map (in degrees\n North).\n lon\n Sets the longitude of the center of the map (in degrees\n East).\n """\n\n def __init__(self, arg=None, lat=None, lon=None, **kwargs):\n """\n Construct a new Center 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.mapbox.Center`\n lat\n Sets the latitude of the center of the map (in degrees\n North).\n lon\n Sets the longitude of the center of the map (in degrees\n East).\n\n Returns\n -------\n Center\n """\n super().__init__("center")\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.Center\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.mapbox.Center`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("lat", arg, lat)\n self._set_property("lon", arg, lon)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\mapbox\_center.py
_center.py
Python
2,815
0.95
0.105769
0.023256
python-kit
578
2023-12-26T17:16:54.820212
BSD-3-Clause
false
7e9187c10c1813362f8e4b45cdb6ae7e
# --- 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 Domain(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.mapbox"\n _path_str = "layout.mapbox.domain"\n _valid_props = {"column", "row", "x", "y"}\n\n @property\n def column(self):\n """\n If there is a layout grid, use the domain for this column in\n the grid for this mapbox subplot .\n\n The 'column' 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["column"]\n\n @column.setter\n def column(self, val):\n self["column"] = val\n\n @property\n def row(self):\n """\n If there is a layout grid, use the domain for this row in the\n grid for this mapbox subplot .\n\n The 'row' 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["row"]\n\n @row.setter\n def row(self, val):\n self["row"] = val\n\n @property\n def x(self):\n """\n Sets the horizontal domain of this mapbox subplot (in plot\n fraction).\n\n The 'x' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'x[0]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n (1) The 'x[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\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 Sets the vertical domain of this mapbox subplot (in plot\n fraction).\n\n The 'y' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'y[0]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n (1) The 'y[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n column\n If there is a layout grid, use the domain for this\n column in the grid for this mapbox subplot .\n row\n If there is a layout grid, use the domain for this row\n in the grid for this mapbox subplot .\n x\n Sets the horizontal domain of this mapbox subplot (in\n plot fraction).\n y\n Sets the vertical domain of this mapbox subplot (in\n plot fraction).\n """\n\n def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs):\n """\n Construct a new Domain 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.mapbox.Domain`\n column\n If there is a layout grid, use the domain for this\n column in the grid for this mapbox subplot .\n row\n If there is a layout grid, use the domain for this row\n in the grid for this mapbox subplot .\n x\n Sets the horizontal domain of this mapbox subplot (in\n plot fraction).\n y\n Sets the vertical domain of this mapbox subplot (in\n plot fraction).\n\n Returns\n -------\n Domain\n """\n super().__init__("domain")\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.Domain\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.mapbox.Domain`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("column", arg, column)\n self._set_property("row", arg, row)\n self._set_property("x", arg, x)\n self._set_property("y", arg, y)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\mapbox\_domain.py
_domain.py
Python
5,062
0.95
0.158824
0.028169
node-utils
867
2024-04-14T22:52:52.291821
Apache-2.0
false
7b5669bf18aef756f1c96f02376e8a8c
# --- 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 Layer(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.mapbox"\n _path_str = "layout.mapbox.layer"\n _valid_props = {\n "below",\n "circle",\n "color",\n "coordinates",\n "fill",\n "line",\n "maxzoom",\n "minzoom",\n "name",\n "opacity",\n "source",\n "sourceattribution",\n "sourcelayer",\n "sourcetype",\n "symbol",\n "templateitemname",\n "type",\n "visible",\n }\n\n @property\n def below(self):\n """\n Determines if the layer will be inserted before the layer with\n the specified ID. If omitted or set to '', the layer will be\n inserted above every existing layer.\n\n The 'below' 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["below"]\n\n @below.setter\n def below(self, val):\n self["below"] = val\n\n @property\n def circle(self):\n """\n The 'circle' property is an instance of Circle\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Circle`\n - A dict of string/value properties that will be passed\n to the Circle constructor\n\n Returns\n -------\n plotly.graph_objs.layout.mapbox.layer.Circle\n """\n return self["circle"]\n\n @circle.setter\n def circle(self, val):\n self["circle"] = val\n\n @property\n def color(self):\n """\n Sets the primary layer color. If `type` is "circle", color\n corresponds to the circle color (mapbox.layer.paint.circle-\n color) If `type` is "line", color corresponds to the line color\n (mapbox.layer.paint.line-color) If `type` is "fill", color\n corresponds to the fill color (mapbox.layer.paint.fill-color)\n If `type` is "symbol", color corresponds to the icon color\n (mapbox.layer.paint.icon-color)\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 coordinates(self):\n """\n Sets the coordinates array contains [longitude, latitude] pairs\n for the image corners listed in clockwise order: top left, top\n right, bottom right, bottom left. Only has an effect for\n "image" `sourcetype`.\n\n The 'coordinates' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["coordinates"]\n\n @coordinates.setter\n def coordinates(self, val):\n self["coordinates"] = val\n\n @property\n def fill(self):\n """\n The 'fill' property is an instance of Fill\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Fill`\n - A dict of string/value properties that will be passed\n to the Fill constructor\n\n Returns\n -------\n plotly.graph_objs.layout.mapbox.layer.Fill\n """\n return self["fill"]\n\n @fill.setter\n def fill(self, val):\n self["fill"] = 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.mapbox.layer.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.mapbox.layer.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def maxzoom(self):\n """\n Sets the maximum zoom level (mapbox.layer.maxzoom). At zoom\n levels equal to or greater than the maxzoom, the layer will be\n hidden.\n\n The 'maxzoom' property is a number and may be specified as:\n - An int or float in the interval [0, 24]\n\n Returns\n -------\n int|float\n """\n return self["maxzoom"]\n\n @maxzoom.setter\n def maxzoom(self, val):\n self["maxzoom"] = val\n\n @property\n def minzoom(self):\n """\n Sets the minimum zoom level (mapbox.layer.minzoom). At zoom\n levels less than the minzoom, the layer will be hidden.\n\n The 'minzoom' property is a number and may be specified as:\n - An int or float in the interval [0, 24]\n\n Returns\n -------\n int|float\n """\n return self["minzoom"]\n\n @minzoom.setter\n def minzoom(self, val):\n self["minzoom"] = 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 layer. If `type` is "circle", opacity\n corresponds to the circle opacity (mapbox.layer.paint.circle-\n opacity) If `type` is "line", opacity corresponds to the line\n opacity (mapbox.layer.paint.line-opacity) If `type` is "fill",\n opacity corresponds to the fill opacity\n (mapbox.layer.paint.fill-opacity) If `type` is "symbol",\n opacity corresponds to the icon/text opacity\n (mapbox.layer.paint.text-opacity)\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 source(self):\n """\n Sets the source data for this layer (mapbox.layer.source). When\n `sourcetype` is set to "geojson", `source` can be a URL to a\n GeoJSON or a GeoJSON object. When `sourcetype` is set to\n "vector" or "raster", `source` can be a URL or an array of tile\n URLs. When `sourcetype` is set to "image", `source` can be a\n URL to an image.\n\n The 'source' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["source"]\n\n @source.setter\n def source(self, val):\n self["source"] = val\n\n @property\n def sourceattribution(self):\n """\n Sets the attribution for this source.\n\n The 'sourceattribution' 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["sourceattribution"]\n\n @sourceattribution.setter\n def sourceattribution(self, val):\n self["sourceattribution"] = val\n\n @property\n def sourcelayer(self):\n """\n Specifies the layer to use from a vector tile source\n (mapbox.layer.source-layer). Required for "vector" source type\n that supports multiple layers.\n\n The 'sourcelayer' 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["sourcelayer"]\n\n @sourcelayer.setter\n def sourcelayer(self, val):\n self["sourcelayer"] = val\n\n @property\n def sourcetype(self):\n """\n Sets the source type for this layer, that is the type of the\n layer data.\n\n The 'sourcetype' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['geojson', 'vector', 'raster', 'image']\n\n Returns\n -------\n Any\n """\n return self["sourcetype"]\n\n @sourcetype.setter\n def sourcetype(self, val):\n self["sourcetype"] = val\n\n @property\n def symbol(self):\n """\n The 'symbol' property is an instance of Symbol\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Symbol`\n - A dict of string/value properties that will be passed\n to the Symbol constructor\n\n Returns\n -------\n plotly.graph_objs.layout.mapbox.layer.Symbol\n """\n return self["symbol"]\n\n @symbol.setter\n def symbol(self, val):\n self["symbol"] = 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 Sets the layer type, that is the how the layer data set in\n `source` will be rendered With `sourcetype` set to "geojson",\n the following values are allowed: "circle", "line", "fill" and\n "symbol". but note that "line" and "fill" are not compatible\n with Point GeoJSON geometries. With `sourcetype` set to\n "vector", the following values are allowed: "circle", "line",\n "fill" and "symbol". With `sourcetype` set to "raster" or\n `*image*`, only the "raster" value is allowed.\n\n The 'type' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['circle', 'line', 'fill', 'symbol', 'raster']\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 this layer is displayed\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 below\n Determines if the layer will be inserted before the\n layer with the specified ID. If omitted or set to '',\n the layer will be inserted above every existing layer.\n circle\n :class:`plotly.graph_objects.layout.mapbox.layer.Circle\n ` instance or dict with compatible properties\n color\n Sets the primary layer color. If `type` is "circle",\n color corresponds to the circle color\n (mapbox.layer.paint.circle-color) If `type` is "line",\n color corresponds to the line color\n (mapbox.layer.paint.line-color) If `type` is "fill",\n color corresponds to the fill color\n (mapbox.layer.paint.fill-color) If `type` is "symbol",\n color corresponds to the icon color\n (mapbox.layer.paint.icon-color)\n coordinates\n Sets the coordinates array contains [longitude,\n latitude] pairs for the image corners listed in\n clockwise order: top left, top right, bottom right,\n bottom left. Only has an effect for "image"\n `sourcetype`.\n fill\n :class:`plotly.graph_objects.layout.mapbox.layer.Fill`\n instance or dict with compatible properties\n line\n :class:`plotly.graph_objects.layout.mapbox.layer.Line`\n instance or dict with compatible properties\n maxzoom\n Sets the maximum zoom level (mapbox.layer.maxzoom). At\n zoom levels equal to or greater than the maxzoom, the\n layer will be hidden.\n minzoom\n Sets the minimum zoom level (mapbox.layer.minzoom). At\n zoom levels less than the minzoom, the layer will be\n hidden.\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 layer. If `type` is "circle",\n opacity corresponds to the circle opacity\n (mapbox.layer.paint.circle-opacity) If `type` is\n "line", opacity corresponds to the line opacity\n (mapbox.layer.paint.line-opacity) If `type` is "fill",\n opacity corresponds to the fill opacity\n (mapbox.layer.paint.fill-opacity) If `type` is\n "symbol", opacity corresponds to the icon/text opacity\n (mapbox.layer.paint.text-opacity)\n source\n Sets the source data for this layer\n (mapbox.layer.source). When `sourcetype` is set to\n "geojson", `source` can be a URL to a GeoJSON or a\n GeoJSON object. When `sourcetype` is set to "vector" or\n "raster", `source` can be a URL or an array of tile\n URLs. When `sourcetype` is set to "image", `source` can\n be a URL to an image.\n sourceattribution\n Sets the attribution for this source.\n sourcelayer\n Specifies the layer to use from a vector tile source\n (mapbox.layer.source-layer). Required for "vector"\n source type that supports multiple layers.\n sourcetype\n Sets the source type for this layer, that is the type\n of the layer data.\n symbol\n :class:`plotly.graph_objects.layout.mapbox.layer.Symbol\n ` instance or dict with compatible properties\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 Sets the layer type, that is the how the layer data set\n in `source` will be rendered With `sourcetype` set to\n "geojson", the following values are allowed: "circle",\n "line", "fill" and "symbol". but note that "line" and\n "fill" are not compatible with Point GeoJSON\n geometries. With `sourcetype` set to "vector", the\n following values are allowed: "circle", "line", "fill"\n and "symbol". With `sourcetype` set to "raster" or\n `*image*`, only the "raster" value is allowed.\n visible\n Determines whether this layer is displayed\n """\n\n def __init__(\n self,\n arg=None,\n below=None,\n circle=None,\n color=None,\n coordinates=None,\n fill=None,\n line=None,\n maxzoom=None,\n minzoom=None,\n name=None,\n opacity=None,\n source=None,\n sourceattribution=None,\n sourcelayer=None,\n sourcetype=None,\n symbol=None,\n templateitemname=None,\n type=None,\n visible=None,\n **kwargs,\n ):\n """\n Construct a new Layer 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.mapbox.Layer`\n below\n Determines if the layer will be inserted before the\n layer with the specified ID. If omitted or set to '',\n the layer will be inserted above every existing layer.\n circle\n :class:`plotly.graph_objects.layout.mapbox.layer.Circle\n ` instance or dict with compatible properties\n color\n Sets the primary layer color. If `type` is "circle",\n color corresponds to the circle color\n (mapbox.layer.paint.circle-color) If `type` is "line",\n color corresponds to the line color\n (mapbox.layer.paint.line-color) If `type` is "fill",\n color corresponds to the fill color\n (mapbox.layer.paint.fill-color) If `type` is "symbol",\n color corresponds to the icon color\n (mapbox.layer.paint.icon-color)\n coordinates\n Sets the coordinates array contains [longitude,\n latitude] pairs for the image corners listed in\n clockwise order: top left, top right, bottom right,\n bottom left. Only has an effect for "image"\n `sourcetype`.\n fill\n :class:`plotly.graph_objects.layout.mapbox.layer.Fill`\n instance or dict with compatible properties\n line\n :class:`plotly.graph_objects.layout.mapbox.layer.Line`\n instance or dict with compatible properties\n maxzoom\n Sets the maximum zoom level (mapbox.layer.maxzoom). At\n zoom levels equal to or greater than the maxzoom, the\n layer will be hidden.\n minzoom\n Sets the minimum zoom level (mapbox.layer.minzoom). At\n zoom levels less than the minzoom, the layer will be\n hidden.\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 layer. If `type` is "circle",\n opacity corresponds to the circle opacity\n (mapbox.layer.paint.circle-opacity) If `type` is\n "line", opacity corresponds to the line opacity\n (mapbox.layer.paint.line-opacity) If `type` is "fill",\n opacity corresponds to the fill opacity\n (mapbox.layer.paint.fill-opacity) If `type` is\n "symbol", opacity corresponds to the icon/text opacity\n (mapbox.layer.paint.text-opacity)\n source\n Sets the source data for this layer\n (mapbox.layer.source). When `sourcetype` is set to\n "geojson", `source` can be a URL to a GeoJSON or a\n GeoJSON object. When `sourcetype` is set to "vector" or\n "raster", `source` can be a URL or an array of tile\n URLs. When `sourcetype` is set to "image", `source` can\n be a URL to an image.\n sourceattribution\n Sets the attribution for this source.\n sourcelayer\n Specifies the layer to use from a vector tile source\n (mapbox.layer.source-layer). Required for "vector"\n source type that supports multiple layers.\n sourcetype\n Sets the source type for this layer, that is the type\n of the layer data.\n symbol\n :class:`plotly.graph_objects.layout.mapbox.layer.Symbol\n ` instance or dict with compatible properties\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 Sets the layer type, that is the how the layer data set\n in `source` will be rendered With `sourcetype` set to\n "geojson", the following values are allowed: "circle",\n "line", "fill" and "symbol". but note that "line" and\n "fill" are not compatible with Point GeoJSON\n geometries. With `sourcetype` set to "vector", the\n following values are allowed: "circle", "line", "fill"\n and "symbol". With `sourcetype` set to "raster" or\n `*image*`, only the "raster" value is allowed.\n visible\n Determines whether this layer is displayed\n\n Returns\n -------\n Layer\n """\n super().__init__("layers")\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.Layer\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.mapbox.Layer`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("below", arg, below)\n self._set_property("circle", arg, circle)\n self._set_property("color", arg, color)\n self._set_property("coordinates", arg, coordinates)\n self._set_property("fill", arg, fill)\n self._set_property("line", arg, line)\n self._set_property("maxzoom", arg, maxzoom)\n self._set_property("minzoom", arg, minzoom)\n self._set_property("name", arg, name)\n self._set_property("opacity", arg, opacity)\n self._set_property("source", arg, source)\n self._set_property("sourceattribution", arg, sourceattribution)\n self._set_property("sourcelayer", arg, sourcelayer)\n self._set_property("sourcetype", arg, sourcetype)\n self._set_property("symbol", arg, symbol)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("type", arg, type)\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\mapbox\_layer.py
_layer.py
Python
24,498
0.95
0.110791
0.004862
react-lib
442
2025-02-10T03:05:48.682013
GPL-3.0
false
eb9048a7701f0713d8801255f60cf7b9
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._bounds import Bounds\n from ._center import Center\n from ._domain import Domain\n from ._layer import Layer\n from . import layer\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".layer"],\n ["._bounds.Bounds", "._center.Center", "._domain.Domain", "._layer.Layer"],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\mapbox\__init__.py
__init__.py
Python
457
0.85
0.058824
0
node-utils
206
2025-02-26T16:51:51.954811
BSD-3-Clause
false
9b566c0d5c0d70c9a44d897902249f31
# --- 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 Circle(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.mapbox.layer"\n _path_str = "layout.mapbox.layer.circle"\n _valid_props = {"radius"}\n\n @property\n def radius(self):\n """\n Sets the circle radius (mapbox.layer.paint.circle-radius). Has\n an effect only when `type` is set to "circle".\n\n The 'radius' 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["radius"]\n\n @radius.setter\n def radius(self, val):\n self["radius"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n radius\n Sets the circle radius (mapbox.layer.paint.circle-\n radius). Has an effect only when `type` is set to\n "circle".\n """\n\n def __init__(self, arg=None, radius=None, **kwargs):\n """\n Construct a new Circle 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.mapbox.layer.Circle`\n radius\n Sets the circle radius (mapbox.layer.paint.circle-\n radius). Has an effect only when `type` is set to\n "circle".\n\n Returns\n -------\n Circle\n """\n super().__init__("circle")\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.layer.Circle\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.mapbox.layer.Circle`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("radius", arg, radius)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\mapbox\layer\_circle.py
_circle.py
Python
2,430
0.95
0.109756
0.029412
awesome-app
667
2024-12-19T08:47:45.399999
Apache-2.0
false
c712e3ad058004dcf919b2a057accab0
# --- 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 Fill(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.mapbox.layer"\n _path_str = "layout.mapbox.layer.fill"\n _valid_props = {"outlinecolor"}\n\n @property\n def outlinecolor(self):\n """\n Sets the fill outline color (mapbox.layer.paint.fill-outline-\n color). Has an effect only when `type` is set to "fill".\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 _prop_descriptions(self):\n return """\\n outlinecolor\n Sets the fill outline color (mapbox.layer.paint.fill-\n outline-color). Has an effect only when `type` is set\n to "fill".\n """\n\n def __init__(self, arg=None, outlinecolor=None, **kwargs):\n """\n Construct a new Fill 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.mapbox.layer.Fill`\n outlinecolor\n Sets the fill outline color (mapbox.layer.paint.fill-\n outline-color). Has an effect only when `type` is set\n to "fill".\n\n Returns\n -------\n Fill\n """\n super().__init__("fill")\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.layer.Fill\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.mapbox.layer.Fill`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("outlinecolor", arg, outlinecolor)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\mapbox\layer\_fill.py
_fill.py
Python
2,768
0.95
0.116279
0.027778
node-utils
62
2024-09-23T05:42:21.775390
Apache-2.0
false
2ab0ffb873b43438e1144bc338d330a9
# --- 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 Line(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.mapbox.layer"\n _path_str = "layout.mapbox.layer.line"\n _valid_props = {"dash", "dashsrc", "width"}\n\n @property\n def dash(self):\n """\n Sets the length of dashes and gaps (mapbox.layer.paint.line-\n dasharray). Has an effect only when `type` is set to "line".\n\n The 'dash' 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["dash"]\n\n @dash.setter\n def dash(self, val):\n self["dash"] = val\n\n @property\n def dashsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `dash`.\n\n The 'dashsrc' 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["dashsrc"]\n\n @dashsrc.setter\n def dashsrc(self, val):\n self["dashsrc"] = val\n\n @property\n def width(self):\n """\n Sets the line width (mapbox.layer.paint.line-width). Has an\n effect only when `type` is set to "line".\n\n The 'width' 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["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 dash\n Sets the length of dashes and gaps\n (mapbox.layer.paint.line-dasharray). Has an effect only\n when `type` is set to "line".\n dashsrc\n Sets the source reference on Chart Studio Cloud for\n `dash`.\n width\n Sets the line width (mapbox.layer.paint.line-width).\n Has an effect only when `type` is set to "line".\n """\n\n def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs):\n """\n Construct a new Line 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.mapbox.layer.Line`\n dash\n Sets the length of dashes and gaps\n (mapbox.layer.paint.line-dasharray). Has an effect only\n when `type` is set to "line".\n dashsrc\n Sets the source reference on Chart Studio Cloud for\n `dash`.\n width\n Sets the line width (mapbox.layer.paint.line-width).\n Has an effect only when `type` is set to "line".\n\n Returns\n -------\n Line\n """\n super().__init__("line")\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.layer.Line\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.mapbox.layer.Line`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("dash", arg, dash)\n self._set_property("dashsrc", arg, dashsrc)\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\layout\mapbox\layer\_line.py
_line.py
Python
3,897
0.95
0.120301
0.018018
react-lib
616
2023-08-27T16:44:00.669156
GPL-3.0
false
2415e981b206ab97a59b2702c3b7bc3d
# --- 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 Symbol(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.mapbox.layer"\n _path_str = "layout.mapbox.layer.symbol"\n _valid_props = {"icon", "iconsize", "placement", "text", "textfont", "textposition"}\n\n @property\n def icon(self):\n """\n Sets the symbol icon image (mapbox.layer.layout.icon-image).\n Full list: https://www.mapbox.com/maki-icons/\n\n The 'icon' 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["icon"]\n\n @icon.setter\n def icon(self, val):\n self["icon"] = val\n\n @property\n def iconsize(self):\n """\n Sets the symbol icon size (mapbox.layer.layout.icon-size). Has\n an effect only when `type` is set to "symbol".\n\n The 'iconsize' 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["iconsize"]\n\n @iconsize.setter\n def iconsize(self, val):\n self["iconsize"] = val\n\n @property\n def placement(self):\n """\n Sets the symbol and/or text placement\n (mapbox.layer.layout.symbol-placement). If `placement` is\n "point", the label is placed where the geometry is located If\n `placement` is "line", the label is placed along the line of\n the geometry If `placement` is "line-center", the label is\n placed on the center of the geometry\n\n The 'placement' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['point', 'line', 'line-center']\n\n Returns\n -------\n Any\n """\n return self["placement"]\n\n @placement.setter\n def placement(self, val):\n self["placement"] = val\n\n @property\n def text(self):\n """\n Sets the symbol text (mapbox.layer.layout.text-field).\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 textfont(self):\n """\n Sets the icon text font (color=mapbox.layer.paint.text-color,\n size=mapbox.layer.layout.text-size). Has an effect only when\n `type` is set to "symbol".\n\n The 'textfont' property is an instance of Textfont\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.layout.mapbox.layer.symbol.Textfont`\n - A dict of string/value properties that will be passed\n to the Textfont constructor\n\n Returns\n -------\n plotly.graph_objs.layout.mapbox.layer.symbol.Textfont\n """\n return self["textfont"]\n\n @textfont.setter\n def textfont(self, val):\n self["textfont"] = val\n\n @property\n def textposition(self):\n """\n Sets the positions of the `text` elements with respects to the\n (x,y) coordinates.\n\n The 'textposition' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['top left', 'top center', 'top right', 'middle left',\n 'middle center', 'middle right', 'bottom left', 'bottom\n center', 'bottom right']\n\n Returns\n -------\n Any\n """\n return self["textposition"]\n\n @textposition.setter\n def textposition(self, val):\n self["textposition"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n icon\n Sets the symbol icon image (mapbox.layer.layout.icon-\n image). Full list: https://www.mapbox.com/maki-icons/\n iconsize\n Sets the symbol icon size (mapbox.layer.layout.icon-\n size). Has an effect only when `type` is set to\n "symbol".\n placement\n Sets the symbol and/or text placement\n (mapbox.layer.layout.symbol-placement). If `placement`\n is "point", the label is placed where the geometry is\n located If `placement` is "line", the label is placed\n along the line of the geometry If `placement` is "line-\n center", the label is placed on the center of the\n geometry\n text\n Sets the symbol text (mapbox.layer.layout.text-field).\n textfont\n Sets the icon text font (color=mapbox.layer.paint.text-\n color, size=mapbox.layer.layout.text-size). Has an\n effect only when `type` is set to "symbol".\n textposition\n Sets the positions of the `text` elements with respects\n to the (x,y) coordinates.\n """\n\n def __init__(\n self,\n arg=None,\n icon=None,\n iconsize=None,\n placement=None,\n text=None,\n textfont=None,\n textposition=None,\n **kwargs,\n ):\n """\n Construct a new Symbol 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.mapbox.layer.Symbol`\n icon\n Sets the symbol icon image (mapbox.layer.layout.icon-\n image). Full list: https://www.mapbox.com/maki-icons/\n iconsize\n Sets the symbol icon size (mapbox.layer.layout.icon-\n size). Has an effect only when `type` is set to\n "symbol".\n placement\n Sets the symbol and/or text placement\n (mapbox.layer.layout.symbol-placement). If `placement`\n is "point", the label is placed where the geometry is\n located If `placement` is "line", the label is placed\n along the line of the geometry If `placement` is "line-\n center", the label is placed on the center of the\n geometry\n text\n Sets the symbol text (mapbox.layer.layout.text-field).\n textfont\n Sets the icon text font (color=mapbox.layer.paint.text-\n color, size=mapbox.layer.layout.text-size). Has an\n effect only when `type` is set to "symbol".\n textposition\n Sets the positions of the `text` elements with respects\n to the (x,y) coordinates.\n\n Returns\n -------\n Symbol\n """\n super().__init__("symbol")\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.layer.Symbol\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.mapbox.layer.Symbol`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("icon", arg, icon)\n self._set_property("iconsize", arg, iconsize)\n self._set_property("placement", arg, placement)\n self._set_property("text", arg, text)\n self._set_property("textfont", arg, textfont)\n self._set_property("textposition", arg, textposition)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\layout\mapbox\layer\_symbol.py
_symbol.py
Python
7,916
0.95
0.081633
0.014218
awesome-app
130
2024-03-04T03:44:40.575822
Apache-2.0
false
74d037c618bc3b4dd4c9034e116a4dec
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._circle import Circle\n from ._fill import Fill\n from ._line import Line\n from ._symbol import Symbol\n from . import symbol\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".symbol"],\n ["._circle.Circle", "._fill.Fill", "._line.Line", "._symbol.Symbol"],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\mapbox\layer\__init__.py
__init__.py
Python
447
0.85
0.058824
0
awesome-app
766
2023-10-07T23:43:36.231307
MIT
false
71b0fdfe5a1ed0aceb0a4ec4153bb8d0
# --- 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 Textfont(_BaseLayoutHierarchyType):\n _parent_path_str = "layout.mapbox.layer.symbol"\n _path_str = "layout.mapbox.layer.symbol.textfont"\n _valid_props = {"color", "family", "size", "style", "weight"}\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 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 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 size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\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 size=None,\n style=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Textfont object\n\n Sets the icon text font (color=mapbox.layer.paint.text-color,\n size=mapbox.layer.layout.text-size). Has an effect only when\n `type` is set to "symbol".\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 layer.symbol.Textfont`\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 size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Textfont\n """\n super().__init__("textfont")\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.layer.symbol.Textfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.layout.mapbox.layer.symbol.Textfont`""")\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("size", arg, size)\n self._set_property("style", arg, style)\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\mapbox\layer\symbol\_textfont.py
_textfont.py
Python
5,909
0.95
0.118812
0.017751
vue-tools
367
2024-04-28T14:21:01.461595
Apache-2.0
false
b354689b9df38b6b5014787634e87f21
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._textfont import Textfont\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [], ["._textfont.Textfont"]\n )\n
.venv\Lib\site-packages\plotly\graph_objs\layout\mapbox\layer\symbol\__init__.py
__init__.py
Python
267
0.85
0.090909
0
python-kit
463
2024-07-01T09:49:07.096071
MIT
false
5be2d129f4ac0c2ab7e40d722b6b818b