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 BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Tickfont(_BaseTraceHierarchyType):\n _parent_path_str = "choropleth.colorbar"\n _path_str = "choropleth.colorbar.tickfont"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Tickfont object\n\n Sets the color bar's tick label font\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.choropleth.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.choropleth.colorbar.Tickfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choropleth.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\choropleth\colorbar\_tickfont.py | _tickfont.py | Python | 9,933 | 0.95 | 0.10479 | 0.010526 | vue-tools | 817 | 2024-04-01T19:33:45.201209 | Apache-2.0 | false | 91a21886787823094eb833e07100bc0a |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Tickformatstop(_BaseTraceHierarchyType):\n _parent_path_str = "choropleth.colorbar"\n _path_str = "choropleth.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.choropleth.col\n orbar.Tickformatstop`\n dtickrange\n range [*min*, *max*], where "min", "max" - dtick values\n which describe some zoom level, it is possible to omit\n "min" or "max" value by passing "null"\n enabled\n Determines whether or not this stop is used. If\n `false`, this stop is ignored even within its\n `dtickrange`.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n value\n string - dtickformat for described zoom level, the same\n as "tickformat"\n\n Returns\n -------\n Tickformatstop\n """\n super().__init__("tickformatstops")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choropleth.colorbar.Tickformatstop\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choropleth.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\choropleth\colorbar\_tickformatstop.py | _tickformatstop.py | Python | 8,529 | 0.95 | 0.082988 | 0.019048 | awesome-app | 427 | 2024-06-09T04:56:19.894173 | Apache-2.0 | false | 085d53211b3e8f64303e9346f31b0ca8 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Title(_BaseTraceHierarchyType):\n _parent_path_str = "choropleth.colorbar"\n _path_str = "choropleth.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.choropleth.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.choropleth.colorbar.title.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def side(self):\n """\n Determines the location of color bar's title with respect to\n the color bar. Defaults to "top" when `orientation` if "v" and\n defaults to "right" when `orientation` if "h".\n\n The 'side' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['right', 'top', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["side"]\n\n @side.setter\n def side(self, val):\n self["side"] = val\n\n @property\n def text(self):\n """\n Sets the title of the color bar.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Sets this color bar's title font.\n side\n Determines the location of color bar's title with\n respect to the color bar. Defaults to "top" when\n `orientation` if "v" and defaults to "right" when\n `orientation` if "h".\n text\n Sets the title of the color bar.\n """\n\n def __init__(self, arg=None, font=None, side=None, text=None, **kwargs):\n """\n Construct a new Title object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.choropleth.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.choropleth.colorbar.Title\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choropleth.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\choropleth\colorbar\_title.py | _title.py | Python | 3,992 | 0.95 | 0.147059 | 0.017544 | react-lib | 205 | 2024-09-03T02:45:24.173687 | BSD-3-Clause | false | 3c09363a33911cbe392bcba5a9a25b7b |
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\choropleth\colorbar\__init__.py | __init__.py | Python | 446 | 0.85 | 0.0625 | 0 | awesome-app | 831 | 2025-03-19T20:22:09.289720 | BSD-3-Clause | false | c1c51c7cdaa97ba16b501a938689f435 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "choropleth.colorbar.title"\n _path_str = "choropleth.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.choropleth.col\n orbar.title.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choropleth.colorbar.title.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choropleth.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\choropleth\colorbar\title\_font.py | _font.py | Python | 9,929 | 0.95 | 0.10479 | 0.010526 | python-kit | 800 | 2024-04-20T12:27:23.531833 | MIT | false | 004df68a538c8fff19fe6142b496e9b9 |
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\choropleth\colorbar\title\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | vue-tools | 821 | 2023-10-12T06:44:58.604256 | Apache-2.0 | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\colorbar\title\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 10,936 | 0.8 | 0.048583 | 0 | awesome-app | 444 | 2025-01-04T15:12:58.629717 | MIT | false | 593a663bd8bb58629ba1996aa257cfe7 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\colorbar\title\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 511 | 0.85 | 0 | 0 | awesome-app | 592 | 2025-06-17T10:41:18.472144 | MIT | false | 15dfd5bc5ae5a9d5db7394fff761c8ba |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\colorbar\__pycache__\_tickfont.cpython-313.pyc | _tickfont.cpython-313.pyc | Other | 10,982 | 0.8 | 0.04918 | 0 | react-lib | 821 | 2024-05-19T09:57:11.754145 | Apache-2.0 | false | 04655a208a46f1214f2e8eecc0269363 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\colorbar\__pycache__\_tickformatstop.cpython-313.pyc | _tickformatstop.cpython-313.pyc | Other | 9,309 | 0.8 | 0.024876 | 0.005348 | python-kit | 781 | 2023-12-01T06:50:05.497293 | Apache-2.0 | false | 763be16393654aa20b4a42089d9d541e |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\colorbar\__pycache__\_title.cpython-313.pyc | _title.cpython-313.pyc | Other | 4,898 | 0.8 | 0.087379 | 0 | vue-tools | 916 | 2024-07-23T01:31:30.537770 | Apache-2.0 | false | c355d1cf44b667b92e28f2cb7e9fd34f |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\colorbar\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 711 | 0.95 | 0 | 0 | vue-tools | 584 | 2023-12-24T05:00:37.114751 | GPL-3.0 | false | d1f2939ad53cd2f1407e104e1dfa1b5e |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "choropleth.hoverlabel"\n _path_str = "choropleth.hoverlabel.font"\n _valid_props = {\n "color",\n "colorsrc",\n "family",\n "familysrc",\n "lineposition",\n "linepositionsrc",\n "shadow",\n "shadowsrc",\n "size",\n "sizesrc",\n "style",\n "stylesrc",\n "textcase",\n "textcasesrc",\n "variant",\n "variantsrc",\n "weight",\n "weightsrc",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def colorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `color`.\n\n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["colorsrc"]\n\n @colorsrc.setter\n def colorsrc(self, val):\n self["colorsrc"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def familysrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `family`.\n\n The 'familysrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["familysrc"]\n\n @familysrc.setter\n def familysrc(self, val):\n self["familysrc"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n - A list or array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def linepositionsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n\n The 'linepositionsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["linepositionsrc"]\n\n @linepositionsrc.setter\n def linepositionsrc(self, val):\n self["linepositionsrc"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def shadowsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `shadow`.\n\n The 'shadowsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["shadowsrc"]\n\n @shadowsrc.setter\n def shadowsrc(self, val):\n self["shadowsrc"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def sizesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `size`.\n\n The 'sizesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["sizesrc"]\n\n @sizesrc.setter\n def sizesrc(self, val):\n self["sizesrc"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def stylesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `style`.\n\n The 'stylesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["stylesrc"]\n\n @stylesrc.setter\n def stylesrc(self, val):\n self["stylesrc"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def textcasesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `textcase`.\n\n The 'textcasesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["textcasesrc"]\n\n @textcasesrc.setter\n def textcasesrc(self, val):\n self["textcasesrc"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def variantsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `variant`.\n\n The 'variantsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["variantsrc"]\n\n @variantsrc.setter\n def variantsrc(self, val):\n self["variantsrc"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|numpy.ndarray\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def weightsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `weight`.\n\n The 'weightsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["weightsrc"]\n\n @weightsrc.setter\n def weightsrc(self, val):\n self["weightsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n familysrc\n Sets the source reference on Chart Studio Cloud for\n `family`.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n linepositionsrc\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n shadowsrc\n Sets the source reference on Chart Studio Cloud for\n `shadow`.\n size\n\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n stylesrc\n Sets the source reference on Chart Studio Cloud for\n `style`.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n textcasesrc\n Sets the source reference on Chart Studio Cloud for\n `textcase`.\n variant\n Sets the variant of the font.\n variantsrc\n Sets the source reference on Chart Studio Cloud for\n `variant`.\n weight\n Sets the weight (or boldness) of the font.\n weightsrc\n Sets the source reference on Chart Studio Cloud for\n `weight`.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n colorsrc=None,\n family=None,\n familysrc=None,\n lineposition=None,\n linepositionsrc=None,\n shadow=None,\n shadowsrc=None,\n size=None,\n sizesrc=None,\n style=None,\n stylesrc=None,\n textcase=None,\n textcasesrc=None,\n variant=None,\n variantsrc=None,\n weight=None,\n weightsrc=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets the font used in hover labels.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.choropleth.hoverlabel.Font`\n color\n\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n familysrc\n Sets the source reference on Chart Studio Cloud for\n `family`.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n linepositionsrc\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n shadowsrc\n Sets the source reference on Chart Studio Cloud for\n `shadow`.\n size\n\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n stylesrc\n Sets the source reference on Chart Studio Cloud for\n `style`.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n textcasesrc\n Sets the source reference on Chart Studio Cloud for\n `textcase`.\n variant\n Sets the variant of the font.\n variantsrc\n Sets the source reference on Chart Studio Cloud for\n `variant`.\n weight\n Sets the weight (or boldness) of the font.\n weightsrc\n Sets the source reference on Chart Studio Cloud for\n `weight`.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choropleth.hoverlabel.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choropleth.hoverlabel.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("colorsrc", arg, colorsrc)\n self._set_property("family", arg, family)\n self._set_property("familysrc", arg, familysrc)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("linepositionsrc", arg, linepositionsrc)\n self._set_property("shadow", arg, shadow)\n self._set_property("shadowsrc", arg, shadowsrc)\n self._set_property("size", arg, size)\n self._set_property("sizesrc", arg, sizesrc)\n self._set_property("style", arg, style)\n self._set_property("stylesrc", arg, stylesrc)\n self._set_property("textcase", arg, textcase)\n self._set_property("textcasesrc", arg, textcasesrc)\n self._set_property("variant", arg, variant)\n self._set_property("variantsrc", arg, variantsrc)\n self._set_property("weight", arg, weight)\n self._set_property("weightsrc", arg, weightsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\hoverlabel\_font.py | _font.py | Python | 17,158 | 0.95 | 0.136286 | 0.005976 | node-utils | 774 | 2023-10-13T17:59:49.559152 | GPL-3.0 | false | c92d5e35fa4c5bfa4582cbf8247c9a45 |
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\choropleth\hoverlabel\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | node-utils | 566 | 2024-09-01T15:02:38.627241 | BSD-3-Clause | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\hoverlabel\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 18,407 | 0.8 | 0.1 | 0 | react-lib | 349 | 2025-05-13T13:19:08.590439 | GPL-3.0 | false | 8a6e36b9e7a9c46c7680d926882324e5 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\hoverlabel\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 507 | 0.85 | 0 | 0 | vue-tools | 17 | 2025-01-05T07:42:10.158629 | GPL-3.0 | false | 5c13078b605b3fc38fe6d7ad202511fd |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "choropleth.legendgrouptitle"\n _path_str = "choropleth.legendgrouptitle.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets this legend group's title font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.choropleth.leg\n endgrouptitle.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choropleth.legendgrouptitle.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choropleth.legendgrouptitle.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\legendgrouptitle\_font.py | _font.py | Python | 9,942 | 0.95 | 0.10479 | 0.010526 | awesome-app | 953 | 2024-05-15T12:19:06.419879 | MIT | false | 24246dda2641022b6487c2b4bc166f80 |
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\choropleth\legendgrouptitle\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | react-lib | 391 | 2024-08-15T00:57:35.029465 | MIT | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\legendgrouptitle\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 10,951 | 0.8 | 0.048583 | 0 | node-utils | 699 | 2025-04-20T18:55:45.370560 | BSD-3-Clause | false | a4b0d13a5416809ad8470b7002d07409 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\legendgrouptitle\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 513 | 0.85 | 0 | 0 | awesome-app | 847 | 2024-04-08T06:37:38.377262 | MIT | false | dadf5cf91a8229138bd8f65f10dbda9d |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Line(_BaseTraceHierarchyType):\n _parent_path_str = "choropleth.marker"\n _path_str = "choropleth.marker.line"\n _valid_props = {"color", "colorsrc", "width", "widthsrc"}\n\n @property\n def color(self):\n """\n Sets the marker.line color. It accepts either a specific color\n or an array of numbers that are mapped to the colorscale\n relative to the max and min values of the array or relative to\n `marker.line.cmin` and `marker.line.cmax` if set.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def colorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `color`.\n\n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["colorsrc"]\n\n @colorsrc.setter\n def colorsrc(self, val):\n self["colorsrc"] = val\n\n @property\n def width(self):\n """\n Sets the width (in px) of the lines bounding the marker points.\n\n The 'width' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n """\n return self["width"]\n\n @width.setter\n def width(self, val):\n self["width"] = val\n\n @property\n def widthsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `width`.\n\n The 'widthsrc' 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["widthsrc"]\n\n @widthsrc.setter\n def widthsrc(self, val):\n self["widthsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n Sets the marker.line color. It accepts either a\n specific color or an array of numbers that are mapped\n to the colorscale relative to the max and min values of\n the array or relative to `marker.line.cmin` and\n `marker.line.cmax` if set.\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n width\n Sets the width (in px) of the lines bounding the marker\n points.\n widthsrc\n Sets the source reference on Chart Studio Cloud for\n `width`.\n """\n\n def __init__(\n self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs\n ):\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.choropleth.marker.Line`\n color\n Sets the marker.line color. It accepts either a\n specific color or an array of numbers that are mapped\n to the colorscale relative to the max and min values of\n the array or relative to `marker.line.cmin` and\n `marker.line.cmax` if set.\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n width\n Sets the width (in px) of the lines bounding the marker\n points.\n widthsrc\n Sets the source reference on Chart Studio Cloud for\n `width`.\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.choropleth.marker.Line\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choropleth.marker.Line`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("colorsrc", arg, colorsrc)\n self._set_property("width", arg, width)\n self._set_property("widthsrc", arg, widthsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\marker\_line.py | _line.py | Python | 5,288 | 0.95 | 0.146199 | 0.013793 | python-kit | 640 | 2025-03-15T02:21:37.666240 | BSD-3-Clause | false | 1cf8cbbb5e3ba6621e748aa191d42383 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._line import Line\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"])\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\marker\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | react-lib | 501 | 2024-08-22T05:46:09.552616 | Apache-2.0 | false | f588da998a6d694bb21b2be29a9f27bb |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\marker\__pycache__\_line.cpython-313.pyc | _line.cpython-313.pyc | Other | 6,165 | 0.8 | 0.088235 | 0 | awesome-app | 779 | 2023-11-12T01:34:07.226731 | Apache-2.0 | false | 977cf351ed9d015904531922b30291ed |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\marker\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 503 | 0.85 | 0 | 0 | awesome-app | 404 | 2024-01-26T11:26:55.514927 | BSD-3-Clause | false | 6a9f672dd8e10135b207dd79b4465140 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Marker(_BaseTraceHierarchyType):\n _parent_path_str = "choropleth.selected"\n _path_str = "choropleth.selected.marker"\n _valid_props = {"opacity"}\n\n @property\n def opacity(self):\n """\n Sets the marker opacity of selected points.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n opacity\n Sets the marker opacity of selected points.\n """\n\n def __init__(self, arg=None, opacity=None, **kwargs):\n """\n Construct a new Marker 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.choropleth.selected.Marker`\n opacity\n Sets the marker opacity of selected points.\n\n Returns\n -------\n Marker\n """\n super().__init__("marker")\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.choropleth.selected.Marker\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choropleth.selected.Marker`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("opacity", arg, opacity)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\selected\_marker.py | _marker.py | Python | 2,206 | 0.95 | 0.116883 | 0.031746 | python-kit | 451 | 2024-09-14T20:54:16.916789 | Apache-2.0 | false | b98a3e7382fa2b3993886115a41f52ee |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._marker import Marker\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"])\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\selected\__init__.py | __init__.py | Python | 245 | 0.85 | 0.111111 | 0 | node-utils | 851 | 2024-11-14T08:07:12.103333 | MIT | false | 55cabd952db1725aa5e8b5b02c335926 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\selected\__pycache__\_marker.cpython-313.pyc | _marker.cpython-313.pyc | Other | 2,993 | 0.8 | 0.036364 | 0 | python-kit | 209 | 2024-02-09T02:47:35.572766 | Apache-2.0 | false | 9cf0359498254519423930474da31f52 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\selected\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 515 | 0.85 | 0 | 0 | python-kit | 376 | 2024-10-25T06:24:23.278021 | Apache-2.0 | false | 7395de00cfadbda6a1f6d3c56efaa263 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Marker(_BaseTraceHierarchyType):\n _parent_path_str = "choropleth.unselected"\n _path_str = "choropleth.unselected.marker"\n _valid_props = {"opacity"}\n\n @property\n def opacity(self):\n """\n Sets the marker opacity of unselected points, applied only when\n a selection exists.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n opacity\n Sets the marker opacity of unselected points, applied\n only when a selection exists.\n """\n\n def __init__(self, arg=None, opacity=None, **kwargs):\n """\n Construct a new Marker 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.choropleth.unselected.Marker`\n opacity\n Sets the marker opacity of unselected points, applied\n only when a selection exists.\n\n Returns\n -------\n Marker\n """\n super().__init__("marker")\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.choropleth.unselected.Marker\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choropleth.unselected.Marker`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("opacity", arg, opacity)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\unselected\_marker.py | _marker.py | Python | 2,368 | 0.95 | 0.1125 | 0.030303 | node-utils | 602 | 2025-01-13T20:51:30.129663 | MIT | false | 32aa3d3a977535149318ea4bea9cf975 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._marker import Marker\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"])\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\unselected\__init__.py | __init__.py | Python | 245 | 0.85 | 0.111111 | 0 | react-lib | 899 | 2024-09-30T12:49:59.196550 | GPL-3.0 | false | 55cabd952db1725aa5e8b5b02c335926 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\unselected\__pycache__\_marker.cpython-313.pyc | _marker.cpython-313.pyc | Other | 3,141 | 0.8 | 0.034483 | 0 | node-utils | 321 | 2024-03-07T02:22:27.430994 | Apache-2.0 | false | 47155aba0fd28ce913e69810c9450d97 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\unselected\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 517 | 0.85 | 0 | 0 | vue-tools | 538 | 2024-03-18T01:48:58.975467 | BSD-3-Clause | false | 942bebeb96a102290e7495f9a0f30705 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\__pycache__\_colorbar.cpython-313.pyc | _colorbar.cpython-313.pyc | Other | 61,259 | 0.6 | 0.082343 | 0 | vue-tools | 434 | 2024-06-20T12:40:07.516350 | GPL-3.0 | false | 71044db5ea501e8da8b30620fa658e2c |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\__pycache__\_hoverlabel.cpython-313.pyc | _hoverlabel.cpython-313.pyc | Other | 11,407 | 0.8 | 0.1417 | 0 | awesome-app | 724 | 2023-08-14T21:40:47.665987 | BSD-3-Clause | false | 1999cde0e7165b92c39d0d8cc381ac35 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\__pycache__\_legendgrouptitle.cpython-313.pyc | _legendgrouptitle.cpython-313.pyc | Other | 3,878 | 0.8 | 0.039474 | 0 | vue-tools | 59 | 2024-04-27T14:13:02.793639 | BSD-3-Clause | false | ea8fc028c0146563adb5e405d8d61deb |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\__pycache__\_marker.cpython-313.pyc | _marker.cpython-313.pyc | Other | 4,683 | 0.8 | 0.07619 | 0 | react-lib | 511 | 2024-09-01T23:38:04.218331 | BSD-3-Clause | false | c8f5271c051cb72700eecfbece7eadd8 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\__pycache__\_selected.cpython-313.pyc | _selected.cpython-313.pyc | Other | 3,215 | 0.8 | 0.078125 | 0 | vue-tools | 870 | 2024-07-31T10:21:34.944885 | MIT | false | 294c710f97f4bdd16276b84adbab3b2d |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\__pycache__\_stream.cpython-313.pyc | _stream.cpython-313.pyc | Other | 4,326 | 0.8 | 0.053763 | 0 | react-lib | 387 | 2023-10-29T00:07:51.657009 | MIT | false | 1714ad6225379f6334ffbed057f28b0f |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\__pycache__\_unselected.cpython-313.pyc | _unselected.cpython-313.pyc | Other | 3,247 | 0.8 | 0.075758 | 0 | python-kit | 817 | 2025-03-19T00:54:33.552380 | BSD-3-Clause | false | 6ab0af3a0e5fec5e000d37327bb251ec |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choropleth\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 1,225 | 0.95 | 0 | 0 | awesome-app | 266 | 2024-07-14T01:48:45.931226 | Apache-2.0 | false | 5c5b1fafe9f94db87ba832a3d3f6e030 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass ColorBar(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap"\n _path_str = "choroplethmap.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.choroplethmap.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.choroplethmap.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.choroplethmap.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.choroplethmap.colorbar.Tickformatstop]\n """\n return self["tickformatstops"]\n\n @tickformatstops.setter\n def tickformatstops(self, val):\n self["tickformatstops"] = val\n\n @property\n def tickformatstopdefaults(self):\n """\n When used in a template (as layout.template.data.choroplethmap.\n colorbar.tickformatstopdefaults), sets the default property\n values to use for elements of\n choroplethmap.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.choroplethmap.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.choroplethmap.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.choroplethmap.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.choroplethmap.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.choroplethmap.c\n olorbar.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.chorop\n lethmap.colorbar.tickformatstopdefaults), sets the\n default property values to use for elements of\n choroplethmap.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.choroplethmap.colorbar.Tit\n le` 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.choroplethmap.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.choroplethmap.c\n olorbar.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.chorop\n lethmap.colorbar.tickformatstopdefaults), sets the\n default property values to use for elements of\n choroplethmap.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.choroplethmap.colorbar.Tit\n le` 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.choroplethmap.ColorBar\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.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\choroplethmap\_colorbar.py | _colorbar.py | Python | 60,485 | 0.75 | 0.116144 | 0.001976 | vue-tools | 224 | 2023-12-07T18:18:56.302419 | Apache-2.0 | false | 5be1031a4fe07be6e748e7c2c69e97bf |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Hoverlabel(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap"\n _path_str = "choroplethmap.hoverlabel"\n _valid_props = {\n "align",\n "alignsrc",\n "bgcolor",\n "bgcolorsrc",\n "bordercolor",\n "bordercolorsrc",\n "font",\n "namelength",\n "namelengthsrc",\n }\n\n @property\n def align(self):\n """\n Sets the horizontal alignment of the text content within hover\n label box. Has an effect only if the hover label text spans\n more two or more lines\n\n The 'align' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'right', 'auto']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["align"]\n\n @align.setter\n def align(self, val):\n self["align"] = val\n\n @property\n def alignsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `align`.\n\n The 'alignsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["alignsrc"]\n\n @alignsrc.setter\n def alignsrc(self, val):\n self["alignsrc"] = val\n\n @property\n def bgcolor(self):\n """\n Sets the background color of the hover labels for this trace\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bgcolorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `bgcolor`.\n\n The 'bgcolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["bgcolorsrc"]\n\n @bgcolorsrc.setter\n def bgcolorsrc(self, val):\n self["bgcolorsrc"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the border color of the hover labels for this trace.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def bordercolorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n\n The 'bordercolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["bordercolorsrc"]\n\n @bordercolorsrc.setter\n def bordercolorsrc(self, val):\n self["bordercolorsrc"] = val\n\n @property\n def font(self):\n """\n Sets the font used in hover labels.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.choroplethmap.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.choroplethmap.hoverlabel.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def namelength(self):\n """\n Sets the default length (in number of characters) of the trace\n name in the hover labels for all traces. -1 shows the whole\n name regardless of length. 0-3 shows the first 0-3 characters,\n and an integer >3 will show the whole name if it is less than\n that many characters, but if it is longer, will truncate to\n `namelength - 3` characters and add an ellipsis.\n\n The 'namelength' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [-1, 9223372036854775807]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|numpy.ndarray\n """\n return self["namelength"]\n\n @namelength.setter\n def namelength(self, val):\n self["namelength"] = val\n\n @property\n def namelengthsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n\n The 'namelengthsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["namelengthsrc"]\n\n @namelengthsrc.setter\n def namelengthsrc(self, val):\n self["namelengthsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n align\n Sets the horizontal alignment of the text content\n within hover label box. Has an effect only if the hover\n label text spans more two or more lines\n alignsrc\n Sets the source reference on Chart Studio Cloud for\n `align`.\n bgcolor\n Sets the background color of the hover labels for this\n trace\n bgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bgcolor`.\n bordercolor\n Sets the border color of the hover labels for this\n trace.\n bordercolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n font\n Sets the font used in hover labels.\n namelength\n Sets the default length (in number of characters) of\n the trace name in the hover labels for all traces. -1\n shows the whole name regardless of length. 0-3 shows\n the first 0-3 characters, and an integer >3 will show\n the whole name if it is less than that many characters,\n but if it is longer, will truncate to `namelength - 3`\n characters and add an ellipsis.\n namelengthsrc\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n """\n\n def __init__(\n self,\n arg=None,\n align=None,\n alignsrc=None,\n bgcolor=None,\n bgcolorsrc=None,\n bordercolor=None,\n bordercolorsrc=None,\n font=None,\n namelength=None,\n namelengthsrc=None,\n **kwargs,\n ):\n """\n Construct a new Hoverlabel object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.choroplethmap.Hoverlabel`\n align\n Sets the horizontal alignment of the text content\n within hover label box. Has an effect only if the hover\n label text spans more two or more lines\n alignsrc\n Sets the source reference on Chart Studio Cloud for\n `align`.\n bgcolor\n Sets the background color of the hover labels for this\n trace\n bgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bgcolor`.\n bordercolor\n Sets the border color of the hover labels for this\n trace.\n bordercolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n font\n Sets the font used in hover labels.\n namelength\n Sets the default length (in number of characters) of\n the trace name in the hover labels for all traces. -1\n shows the whole name regardless of length. 0-3 shows\n the first 0-3 characters, and an integer >3 will show\n the whole name if it is less than that many characters,\n but if it is longer, will truncate to `namelength - 3`\n characters and add an ellipsis.\n namelengthsrc\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n\n Returns\n -------\n Hoverlabel\n """\n super().__init__("hoverlabel")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choroplethmap.Hoverlabel\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.Hoverlabel`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("align", arg, align)\n self._set_property("alignsrc", arg, alignsrc)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bgcolorsrc", arg, bgcolorsrc)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("bordercolorsrc", arg, bordercolorsrc)\n self._set_property("font", arg, font)\n self._set_property("namelength", arg, namelength)\n self._set_property("namelengthsrc", arg, namelengthsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\_hoverlabel.py | _hoverlabel.py | Python | 10,499 | 0.95 | 0.171598 | 0.010274 | awesome-app | 868 | 2025-05-10T19:27:52.573162 | Apache-2.0 | false | 69c485faca5ab39c0f2df0a5cdab1809 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Legendgrouptitle(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap"\n _path_str = "choroplethmap.legendgrouptitle"\n _valid_props = {"font", "text"}\n\n @property\n def font(self):\n """\n Sets this legend group's title font.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.choroplethmap.legendgrouptitle.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.choroplethmap.legendgrouptitle.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def text(self):\n """\n Sets the title of the legend group.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n """\n\n def __init__(self, arg=None, font=None, text=None, **kwargs):\n """\n Construct a new Legendgrouptitle object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.choroplethmap.\n Legendgrouptitle`\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n\n Returns\n -------\n Legendgrouptitle\n """\n super().__init__("legendgrouptitle")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choroplethmap.Legendgrouptitle\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.Legendgrouptitle`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("font", arg, font)\n self._set_property("text", arg, text)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\_legendgrouptitle.py | _legendgrouptitle.py | Python | 2,982 | 0.95 | 0.115385 | 0.023256 | node-utils | 760 | 2024-01-04T19:42:01.715016 | BSD-3-Clause | false | c225e50a692377e97853da9c3a3d2f72 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Marker(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap"\n _path_str = "choroplethmap.marker"\n _valid_props = {"line", "opacity", "opacitysrc"}\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.choroplethmap.marker.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.choroplethmap.marker.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def opacity(self):\n """\n Sets the opacity of the locations.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def opacitysrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `opacity`.\n\n The 'opacitysrc' 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["opacitysrc"]\n\n @opacitysrc.setter\n def opacitysrc(self, val):\n self["opacitysrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n line\n :class:`plotly.graph_objects.choroplethmap.marker.Line`\n instance or dict with compatible properties\n opacity\n Sets the opacity of the locations.\n opacitysrc\n Sets the source reference on Chart Studio Cloud for\n `opacity`.\n """\n\n def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs):\n """\n Construct a new Marker 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.choroplethmap.Marker`\n line\n :class:`plotly.graph_objects.choroplethmap.marker.Line`\n instance or dict with compatible properties\n opacity\n Sets the opacity of the locations.\n opacitysrc\n Sets the source reference on Chart Studio Cloud for\n `opacity`.\n\n Returns\n -------\n Marker\n """\n super().__init__("marker")\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.choroplethmap.Marker\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.Marker`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("line", arg, line)\n self._set_property("opacity", arg, opacity)\n self._set_property("opacitysrc", arg, opacitysrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\_marker.py | _marker.py | Python | 3,798 | 0.95 | 0.147287 | 0.018519 | python-kit | 228 | 2023-12-25T01:05:33.855435 | MIT | false | 712ddcae54082a48a5060aaaae15ad0c |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Selected(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap"\n _path_str = "choroplethmap.selected"\n _valid_props = {"marker"}\n\n @property\n def marker(self):\n """\n The 'marker' property is an instance of Marker\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.choroplethmap.selected.Marker`\n - A dict of string/value properties that will be passed\n to the Marker constructor\n\n Returns\n -------\n plotly.graph_objs.choroplethmap.selected.Marker\n """\n return self["marker"]\n\n @marker.setter\n def marker(self, val):\n self["marker"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n marker\n :class:`plotly.graph_objects.choroplethmap.selected.Mar\n ker` instance or dict with compatible properties\n """\n\n def __init__(self, arg=None, marker=None, **kwargs):\n """\n Construct a new Selected 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.choroplethmap.Selected`\n marker\n :class:`plotly.graph_objects.choroplethmap.selected.Mar\n ker` instance or dict with compatible properties\n\n Returns\n -------\n Selected\n """\n super().__init__("selected")\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.choroplethmap.Selected\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.Selected`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("marker", arg, marker)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\_selected.py | _selected.py | Python | 2,470 | 0.95 | 0.15 | 0.029851 | vue-tools | 842 | 2023-09-07T01:51:40.609359 | Apache-2.0 | false | 3c2b06efc3658c2799bd96cbc03cdf31 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Stream(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap"\n _path_str = "choroplethmap.stream"\n _valid_props = {"maxpoints", "token"}\n\n @property\n def maxpoints(self):\n """\n Sets the maximum number of points to keep on the plots from an\n incoming stream. If `maxpoints` is set to 50, only the newest\n 50 points will be displayed on the plot.\n\n The 'maxpoints' property is a number and may be specified as:\n - An int or float in the interval [0, 10000]\n\n Returns\n -------\n int|float\n """\n return self["maxpoints"]\n\n @maxpoints.setter\n def maxpoints(self, val):\n self["maxpoints"] = val\n\n @property\n def token(self):\n """\n The stream id number links a data trace on a plot with a\n stream. See https://chart-studio.plotly.com/settings for more\n details.\n\n The 'token' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["token"]\n\n @token.setter\n def token(self, val):\n self["token"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n maxpoints\n Sets the maximum number of points to keep on the plots\n from an incoming stream. If `maxpoints` is set to 50,\n only the newest 50 points will be displayed on the\n plot.\n token\n The stream id number links a data trace on a plot with\n a stream. See https://chart-studio.plotly.com/settings\n for more details.\n """\n\n def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):\n """\n Construct a new Stream object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.choroplethmap.Stream`\n maxpoints\n Sets the maximum number of points to keep on the plots\n from an incoming stream. If `maxpoints` is set to 50,\n only the newest 50 points will be displayed on the\n plot.\n token\n The stream id number links a data trace on a plot with\n a stream. See https://chart-studio.plotly.com/settings\n for more details.\n\n Returns\n -------\n Stream\n """\n super().__init__("stream")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choroplethmap.Stream\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.Stream`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("maxpoints", arg, maxpoints)\n self._set_property("token", arg, token)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\_stream.py | _stream.py | Python | 3,541 | 0.95 | 0.122807 | 0.020833 | node-utils | 330 | 2023-12-10T16:58:19.392709 | BSD-3-Clause | false | a1f06c908d9969511a8cc7c41549b0fd |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Unselected(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap"\n _path_str = "choroplethmap.unselected"\n _valid_props = {"marker"}\n\n @property\n def marker(self):\n """\n The 'marker' property is an instance of Marker\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.choroplethmap.unselected.Marker`\n - A dict of string/value properties that will be passed\n to the Marker constructor\n\n Returns\n -------\n plotly.graph_objs.choroplethmap.unselected.Marker\n """\n return self["marker"]\n\n @marker.setter\n def marker(self, val):\n self["marker"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n marker\n :class:`plotly.graph_objects.choroplethmap.unselected.M\n arker` instance or dict with compatible properties\n """\n\n def __init__(self, arg=None, marker=None, **kwargs):\n """\n Construct a new Unselected 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.choroplethmap.Unselected`\n marker\n :class:`plotly.graph_objects.choroplethmap.unselected.M\n arker` instance or dict with compatible properties\n\n Returns\n -------\n Unselected\n """\n super().__init__("unselected")\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.choroplethmap.Unselected\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.Unselected`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("marker", arg, marker)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\_unselected.py | _unselected.py | Python | 2,494 | 0.95 | 0.15 | 0.029851 | react-lib | 825 | 2023-10-02T02:28:48.983688 | GPL-3.0 | false | 0db526459e8916fdfe887d3c0991b401 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._colorbar import ColorBar\n from ._hoverlabel import Hoverlabel\n from ._legendgrouptitle import Legendgrouptitle\n from ._marker import Marker\n from ._selected import Selected\n from ._stream import Stream\n from ._unselected import Unselected\n from . import colorbar\n from . import hoverlabel\n from . import legendgrouptitle\n from . import marker\n from . import selected\n from . import unselected\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [\n ".colorbar",\n ".hoverlabel",\n ".legendgrouptitle",\n ".marker",\n ".selected",\n ".unselected",\n ],\n [\n "._colorbar.ColorBar",\n "._hoverlabel.Hoverlabel",\n "._legendgrouptitle.Legendgrouptitle",\n "._marker.Marker",\n "._selected.Selected",\n "._stream.Stream",\n "._unselected.Unselected",\n ],\n )\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\__init__.py | __init__.py | Python | 1,106 | 0.85 | 0.025 | 0 | awesome-app | 764 | 2025-02-24T18:56:03.305829 | BSD-3-Clause | false | 2b9f61aa3dc40440eb77e3d8d6184dc3 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Tickfont(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap.colorbar"\n _path_str = "choroplethmap.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.choroplethmap.\n 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.choroplethmap.colorbar.Tickfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.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\choroplethmap\colorbar\_tickfont.py | _tickfont.py | Python | 9,949 | 0.95 | 0.10479 | 0.010526 | python-kit | 257 | 2025-05-02T06:55:45.622795 | GPL-3.0 | false | 30a8e1637e09c52910326f440d613754 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Tickformatstop(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap.colorbar"\n _path_str = "choroplethmap.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.choroplethmap.\n 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.choroplethmap.colorbar.Tickformatstop\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.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\choroplethmap\colorbar\_tickformatstop.py | _tickformatstop.py | Python | 8,544 | 0.95 | 0.082988 | 0.019048 | node-utils | 349 | 2024-09-08T19:42:31.485211 | BSD-3-Clause | false | d30071c1eb56f98876e044bd762ca343 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Title(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap.colorbar"\n _path_str = "choroplethmap.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.choroplethmap.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.choroplethmap.colorbar.title.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def side(self):\n """\n Determines the location of color bar's title with respect to\n the color bar. Defaults to "top" when `orientation` if "v" and\n defaults to "right" when `orientation` if "h".\n\n The 'side' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['right', 'top', 'bottom']\n\n Returns\n -------\n Any\n """\n return self["side"]\n\n @side.setter\n def side(self, val):\n self["side"] = val\n\n @property\n def text(self):\n """\n Sets the title of the color bar.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Sets this color bar's title font.\n side\n Determines the location of color bar's title with\n respect to the color bar. Defaults to "top" when\n `orientation` if "v" and defaults to "right" when\n `orientation` if "h".\n text\n Sets the title of the color bar.\n """\n\n def __init__(self, arg=None, font=None, side=None, text=None, **kwargs):\n """\n Construct a new Title object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.choroplethmap.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.choroplethmap.colorbar.Title\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.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\choroplethmap\colorbar\_title.py | _title.py | Python | 4,013 | 0.95 | 0.147059 | 0.017544 | react-lib | 733 | 2023-08-24T03:15:50.089541 | Apache-2.0 | false | 1dc621a493daa3dd247fc486bc60c891 |
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\choroplethmap\colorbar\__init__.py | __init__.py | Python | 446 | 0.85 | 0.0625 | 0 | react-lib | 922 | 2024-03-03T09:59:26.333319 | GPL-3.0 | false | c1c51c7cdaa97ba16b501a938689f435 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap.colorbar.title"\n _path_str = "choroplethmap.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.choroplethmap.\n 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.choroplethmap.colorbar.title.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.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\choroplethmap\colorbar\title\_font.py | _font.py | Python | 9,944 | 0.95 | 0.10479 | 0.010526 | react-lib | 161 | 2024-02-27T21:13:01.606673 | MIT | false | af23c11c186389d68ea6cc3843ae8def |
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\choroplethmap\colorbar\title\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | react-lib | 684 | 2025-01-28T20:30:39.546664 | GPL-3.0 | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\colorbar\title\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 10,954 | 0.8 | 0.048583 | 0 | react-lib | 170 | 2024-01-03T13:18:49.240969 | BSD-3-Clause | false | cba39efeefb86ad28ec733d2099262e5 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\colorbar\title\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 514 | 0.85 | 0 | 0 | react-lib | 627 | 2023-07-20T21:09:35.046626 | BSD-3-Clause | false | eaa400e88c65601815d23c071a52abcf |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\colorbar\__pycache__\_tickfont.cpython-313.pyc | _tickfont.cpython-313.pyc | Other | 11,001 | 0.8 | 0.04918 | 0 | node-utils | 373 | 2024-05-18T18:22:38.344802 | MIT | false | baea9e571c510fdb68a8458a61ffa299 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\colorbar\__pycache__\_tickformatstop.cpython-313.pyc | _tickformatstop.cpython-313.pyc | Other | 9,327 | 0.8 | 0.024876 | 0.005348 | vue-tools | 401 | 2023-10-25T04:47:47.091614 | GPL-3.0 | false | dba0fa2dab01ffee9df1415567f917b5 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\colorbar\__pycache__\_title.cpython-313.pyc | _title.cpython-313.pyc | Other | 4,922 | 0.8 | 0.087379 | 0 | node-utils | 335 | 2023-08-12T20:25:46.661484 | BSD-3-Clause | false | 4e4fa2b03e9f20a6a18953749033e623 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\colorbar\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 714 | 0.95 | 0 | 0 | awesome-app | 981 | 2023-08-27T18:35:47.866819 | GPL-3.0 | false | ca085a34559b39089b2a8b720f28e80e |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap.hoverlabel"\n _path_str = "choroplethmap.hoverlabel.font"\n _valid_props = {\n "color",\n "colorsrc",\n "family",\n "familysrc",\n "lineposition",\n "linepositionsrc",\n "shadow",\n "shadowsrc",\n "size",\n "sizesrc",\n "style",\n "stylesrc",\n "textcase",\n "textcasesrc",\n "variant",\n "variantsrc",\n "weight",\n "weightsrc",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def colorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `color`.\n\n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["colorsrc"]\n\n @colorsrc.setter\n def colorsrc(self, val):\n self["colorsrc"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def familysrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `family`.\n\n The 'familysrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["familysrc"]\n\n @familysrc.setter\n def familysrc(self, val):\n self["familysrc"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n - A list or array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def linepositionsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n\n The 'linepositionsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["linepositionsrc"]\n\n @linepositionsrc.setter\n def linepositionsrc(self, val):\n self["linepositionsrc"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def shadowsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `shadow`.\n\n The 'shadowsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["shadowsrc"]\n\n @shadowsrc.setter\n def shadowsrc(self, val):\n self["shadowsrc"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def sizesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `size`.\n\n The 'sizesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["sizesrc"]\n\n @sizesrc.setter\n def sizesrc(self, val):\n self["sizesrc"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def stylesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `style`.\n\n The 'stylesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["stylesrc"]\n\n @stylesrc.setter\n def stylesrc(self, val):\n self["stylesrc"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def textcasesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `textcase`.\n\n The 'textcasesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["textcasesrc"]\n\n @textcasesrc.setter\n def textcasesrc(self, val):\n self["textcasesrc"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def variantsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `variant`.\n\n The 'variantsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["variantsrc"]\n\n @variantsrc.setter\n def variantsrc(self, val):\n self["variantsrc"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|numpy.ndarray\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def weightsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `weight`.\n\n The 'weightsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["weightsrc"]\n\n @weightsrc.setter\n def weightsrc(self, val):\n self["weightsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n familysrc\n Sets the source reference on Chart Studio Cloud for\n `family`.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n linepositionsrc\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n shadowsrc\n Sets the source reference on Chart Studio Cloud for\n `shadow`.\n size\n\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n stylesrc\n Sets the source reference on Chart Studio Cloud for\n `style`.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n textcasesrc\n Sets the source reference on Chart Studio Cloud for\n `textcase`.\n variant\n Sets the variant of the font.\n variantsrc\n Sets the source reference on Chart Studio Cloud for\n `variant`.\n weight\n Sets the weight (or boldness) of the font.\n weightsrc\n Sets the source reference on Chart Studio Cloud for\n `weight`.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n colorsrc=None,\n family=None,\n familysrc=None,\n lineposition=None,\n linepositionsrc=None,\n shadow=None,\n shadowsrc=None,\n size=None,\n sizesrc=None,\n style=None,\n stylesrc=None,\n textcase=None,\n textcasesrc=None,\n variant=None,\n variantsrc=None,\n weight=None,\n weightsrc=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets the font used in hover labels.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.choroplethmap.\n hoverlabel.Font`\n color\n\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n familysrc\n Sets the source reference on Chart Studio Cloud for\n `family`.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n linepositionsrc\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n shadowsrc\n Sets the source reference on Chart Studio Cloud for\n `shadow`.\n size\n\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n stylesrc\n Sets the source reference on Chart Studio Cloud for\n `style`.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n textcasesrc\n Sets the source reference on Chart Studio Cloud for\n `textcase`.\n variant\n Sets the variant of the font.\n variantsrc\n Sets the source reference on Chart Studio Cloud for\n `variant`.\n weight\n Sets the weight (or boldness) of the font.\n weightsrc\n Sets the source reference on Chart Studio Cloud for\n `weight`.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choroplethmap.hoverlabel.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.hoverlabel.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("colorsrc", arg, colorsrc)\n self._set_property("family", arg, family)\n self._set_property("familysrc", arg, familysrc)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("linepositionsrc", arg, linepositionsrc)\n self._set_property("shadow", arg, shadow)\n self._set_property("shadowsrc", arg, shadowsrc)\n self._set_property("size", arg, size)\n self._set_property("sizesrc", arg, sizesrc)\n self._set_property("style", arg, style)\n self._set_property("stylesrc", arg, stylesrc)\n self._set_property("textcase", arg, textcase)\n self._set_property("textcasesrc", arg, textcasesrc)\n self._set_property("variant", arg, variant)\n self._set_property("variantsrc", arg, variantsrc)\n self._set_property("weight", arg, weight)\n self._set_property("weightsrc", arg, weightsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\hoverlabel\_font.py | _font.py | Python | 17,174 | 0.95 | 0.136286 | 0.005976 | python-kit | 183 | 2025-03-02T16:50:35.119664 | Apache-2.0 | false | 4fac1452624ee12e8b365e4dd7105d2d |
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\choroplethmap\hoverlabel\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | awesome-app | 949 | 2024-08-21T03:03:07.845259 | GPL-3.0 | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\hoverlabel\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 18,426 | 0.8 | 0.1 | 0 | awesome-app | 175 | 2023-09-29T19:31:40.247017 | Apache-2.0 | false | b802745feca0f5bd467c155339bb3396 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\hoverlabel\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 510 | 0.85 | 0 | 0 | awesome-app | 651 | 2024-02-08T08:33:03.171865 | GPL-3.0 | false | b3a08e2e568c6b8a856e4aa57ced9871 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap.legendgrouptitle"\n _path_str = "choroplethmap.legendgrouptitle.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets this legend group's title font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.choroplethmap.\n legendgrouptitle.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.choroplethmap.legendgrouptitle.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.legendgrouptitle.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\legendgrouptitle\_font.py | _font.py | Python | 9,957 | 0.95 | 0.10479 | 0.010526 | awesome-app | 956 | 2025-04-23T20:56:09.815230 | GPL-3.0 | false | 09c247bd834071c4cfd0370503fa578d |
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\choroplethmap\legendgrouptitle\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | vue-tools | 667 | 2025-05-10T23:23:22.722781 | MIT | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\legendgrouptitle\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 10,969 | 0.8 | 0.048583 | 0 | node-utils | 850 | 2023-10-30T06:31:35.425682 | MIT | false | e73500583d40c2b694186c26a46f4555 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\legendgrouptitle\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 516 | 0.85 | 0 | 0 | awesome-app | 745 | 2025-04-04T15:37:02.913086 | GPL-3.0 | false | 462ae4f28bdb789f36e0aa42ea1a31b6 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Line(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap.marker"\n _path_str = "choroplethmap.marker.line"\n _valid_props = {"color", "colorsrc", "width", "widthsrc"}\n\n @property\n def color(self):\n """\n Sets the marker.line color. It accepts either a specific color\n or an array of numbers that are mapped to the colorscale\n relative to the max and min values of the array or relative to\n `marker.line.cmin` and `marker.line.cmax` if set.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def colorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `color`.\n\n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["colorsrc"]\n\n @colorsrc.setter\n def colorsrc(self, val):\n self["colorsrc"] = val\n\n @property\n def width(self):\n """\n Sets the width (in px) of the lines bounding the marker points.\n\n The 'width' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n """\n return self["width"]\n\n @width.setter\n def width(self, val):\n self["width"] = val\n\n @property\n def widthsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `width`.\n\n The 'widthsrc' 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["widthsrc"]\n\n @widthsrc.setter\n def widthsrc(self, val):\n self["widthsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n Sets the marker.line color. It accepts either a\n specific color or an array of numbers that are mapped\n to the colorscale relative to the max and min values of\n the array or relative to `marker.line.cmin` and\n `marker.line.cmax` if set.\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n width\n Sets the width (in px) of the lines bounding the marker\n points.\n widthsrc\n Sets the source reference on Chart Studio Cloud for\n `width`.\n """\n\n def __init__(\n self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs\n ):\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.choroplethmap.marker.Line`\n color\n Sets the marker.line color. It accepts either a\n specific color or an array of numbers that are mapped\n to the colorscale relative to the max and min values of\n the array or relative to `marker.line.cmin` and\n `marker.line.cmax` if set.\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n width\n Sets the width (in px) of the lines bounding the marker\n points.\n widthsrc\n Sets the source reference on Chart Studio Cloud for\n `width`.\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.choroplethmap.marker.Line\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.marker.Line`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("colorsrc", arg, colorsrc)\n self._set_property("width", arg, width)\n self._set_property("widthsrc", arg, widthsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\marker\_line.py | _line.py | Python | 5,303 | 0.95 | 0.146199 | 0.013793 | node-utils | 512 | 2024-01-10T07:03:08.932871 | Apache-2.0 | false | 8d7149755e1bd60ae1f5d229f61d5507 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._line import Line\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"])\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\marker\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | react-lib | 413 | 2024-11-11T04:53:27.824569 | Apache-2.0 | false | f588da998a6d694bb21b2be29a9f27bb |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\marker\__pycache__\_line.cpython-313.pyc | _line.cpython-313.pyc | Other | 6,183 | 0.8 | 0.088235 | 0 | awesome-app | 805 | 2023-12-31T21:51:49.679651 | BSD-3-Clause | false | 5b414951ee622cb4165359ee7f4d2028 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\marker\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 506 | 0.85 | 0 | 0 | vue-tools | 200 | 2024-03-05T21:57:56.511117 | Apache-2.0 | false | 0a297c79e955992b7eede6fa4d2f7e16 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Marker(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap.selected"\n _path_str = "choroplethmap.selected.marker"\n _valid_props = {"opacity"}\n\n @property\n def opacity(self):\n """\n Sets the marker opacity of selected points.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n opacity\n Sets the marker opacity of selected points.\n """\n\n def __init__(self, arg=None, opacity=None, **kwargs):\n """\n Construct a new Marker object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.choroplethmap.\n selected.Marker`\n opacity\n Sets the marker opacity of selected points.\n\n Returns\n -------\n Marker\n """\n super().__init__("marker")\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.choroplethmap.selected.Marker\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.selected.Marker`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("opacity", arg, opacity)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\selected\_marker.py | _marker.py | Python | 2,222 | 0.95 | 0.116883 | 0.031746 | node-utils | 820 | 2024-02-27T18:00:37.753166 | Apache-2.0 | false | 58ea619dd78383dc5981b4d182bd9829 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._marker import Marker\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"])\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\selected\__init__.py | __init__.py | Python | 245 | 0.85 | 0.111111 | 0 | python-kit | 394 | 2024-01-28T08:00:45.870239 | MIT | false | 55cabd952db1725aa5e8b5b02c335926 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\selected\__pycache__\_marker.cpython-313.pyc | _marker.cpython-313.pyc | Other | 3,012 | 0.8 | 0.036364 | 0 | python-kit | 428 | 2024-09-25T07:36:09.472391 | BSD-3-Clause | false | b20665ad47b003e8281e89c309fcb1ed |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\selected\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 518 | 0.85 | 0 | 0 | awesome-app | 124 | 2024-05-08T10:12:08.536925 | BSD-3-Clause | false | 6342505cc3933a467c867879c9333e33 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Marker(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmap.unselected"\n _path_str = "choroplethmap.unselected.marker"\n _valid_props = {"opacity"}\n\n @property\n def opacity(self):\n """\n Sets the marker opacity of unselected points, applied only when\n a selection exists.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n opacity\n Sets the marker opacity of unselected points, applied\n only when a selection exists.\n """\n\n def __init__(self, arg=None, opacity=None, **kwargs):\n """\n Construct a new Marker object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.choroplethmap.\n unselected.Marker`\n opacity\n Sets the marker opacity of unselected points, applied\n only when a selection exists.\n\n Returns\n -------\n Marker\n """\n super().__init__("marker")\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.choroplethmap.unselected.Marker\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmap.unselected.Marker`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("opacity", arg, opacity)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\unselected\_marker.py | _marker.py | Python | 2,384 | 0.95 | 0.1125 | 0.030303 | react-lib | 727 | 2023-09-21T01:18:13.822428 | MIT | false | 19825288de3251be461dc1cfc22dde46 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._marker import Marker\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"])\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\unselected\__init__.py | __init__.py | Python | 245 | 0.85 | 0.111111 | 0 | awesome-app | 552 | 2024-11-10T13:47:36.594659 | MIT | false | 55cabd952db1725aa5e8b5b02c335926 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\unselected\__pycache__\_marker.cpython-313.pyc | _marker.cpython-313.pyc | Other | 3,160 | 0.8 | 0.034483 | 0 | node-utils | 593 | 2024-01-16T18:41:18.471755 | MIT | false | 06d01cdbfef30b54135facbc454f5702 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\unselected\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 520 | 0.85 | 0 | 0 | awesome-app | 208 | 2024-08-02T07:34:40.366959 | GPL-3.0 | false | d3936c7d53c538b6dfa2fd9fe706cffe |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\__pycache__\_colorbar.cpython-313.pyc | _colorbar.cpython-313.pyc | Other | 61,333 | 0.6 | 0.082273 | 0 | node-utils | 523 | 2024-01-29T17:54:16.524478 | BSD-3-Clause | false | 635d8a1e361b63377691ee560370d50e |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\__pycache__\_hoverlabel.cpython-313.pyc | _hoverlabel.cpython-313.pyc | Other | 11,431 | 0.8 | 0.1417 | 0 | awesome-app | 108 | 2023-08-15T07:17:22.741405 | BSD-3-Clause | false | 840ff3289dcaee92f7813cb27667040f |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\__pycache__\_legendgrouptitle.cpython-313.pyc | _legendgrouptitle.cpython-313.pyc | Other | 3,903 | 0.8 | 0.039474 | 0 | vue-tools | 389 | 2023-12-29T22:47:19.299343 | Apache-2.0 | false | 6888e53fee68acb9715b331626b600f5 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\__pycache__\_marker.cpython-313.pyc | _marker.cpython-313.pyc | Other | 4,714 | 0.8 | 0.07619 | 0 | react-lib | 153 | 2025-06-23T20:39:04.471478 | GPL-3.0 | false | de61e69b8267219e27ce703d4f2d2bac |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\__pycache__\_selected.cpython-313.pyc | _selected.cpython-313.pyc | Other | 3,245 | 0.8 | 0.078125 | 0 | python-kit | 414 | 2025-06-24T10:28:27.624121 | GPL-3.0 | false | 41fe6258b50a875eecd2debca7e76f18 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\__pycache__\_stream.cpython-313.pyc | _stream.cpython-313.pyc | Other | 4,345 | 0.8 | 0.053763 | 0 | python-kit | 983 | 2024-03-19T09:47:05.058784 | MIT | false | a9bc37da48df53f49d8c0b10e091b6c7 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\__pycache__\_unselected.cpython-313.pyc | _unselected.cpython-313.pyc | Other | 3,277 | 0.8 | 0.075758 | 0 | react-lib | 271 | 2023-09-10T10:01:26.751772 | BSD-3-Clause | false | 7f84f46d3f8c19612f2f647e562c10e4 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmap\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 1,228 | 0.95 | 0 | 0 | react-lib | 578 | 2024-01-08T16:04:19.972187 | BSD-3-Clause | false | 252875deb760d6d16783140a81405bbc |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass ColorBar(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmapbox"\n _path_str = "choroplethmapbox.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.choroplethmapbox.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.choroplethmapbox.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.choroplethmapbox.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.choroplethmapbox.colorbar.Tickformatstop]\n """\n return self["tickformatstops"]\n\n @tickformatstops.setter\n def tickformatstops(self, val):\n self["tickformatstops"] = val\n\n @property\n def tickformatstopdefaults(self):\n """\n When used in a template (as layout.template.data.choroplethmapb\n ox.colorbar.tickformatstopdefaults), sets the default property\n values to use for elements of\n choroplethmapbox.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.choroplethmapbox.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.choroplethmapbox.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.choroplethmapbox.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.choroplethmapbox.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.choroplethmapbo\n x.colorbar.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.chorop\n lethmapbox.colorbar.tickformatstopdefaults), sets the\n default property values to use for elements of\n choroplethmapbox.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.choroplethmapbox.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.choroplethmapbox.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.choroplethmapbo\n x.colorbar.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.chorop\n lethmapbox.colorbar.tickformatstopdefaults), sets the\n default property values to use for elements of\n choroplethmapbox.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.choroplethmapbox.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.choroplethmapbox.ColorBar\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmapbox.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\choroplethmapbox\_colorbar.py | _colorbar.py | Python | 60,554 | 0.75 | 0.116144 | 0.001976 | python-kit | 879 | 2024-12-03T16:09:12.520313 | BSD-3-Clause | false | 810e65b8744eecdeefdff4f4b2a55745 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Hoverlabel(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmapbox"\n _path_str = "choroplethmapbox.hoverlabel"\n _valid_props = {\n "align",\n "alignsrc",\n "bgcolor",\n "bgcolorsrc",\n "bordercolor",\n "bordercolorsrc",\n "font",\n "namelength",\n "namelengthsrc",\n }\n\n @property\n def align(self):\n """\n Sets the horizontal alignment of the text content within hover\n label box. Has an effect only if the hover label text spans\n more two or more lines\n\n The 'align' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'right', 'auto']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["align"]\n\n @align.setter\n def align(self, val):\n self["align"] = val\n\n @property\n def alignsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `align`.\n\n The 'alignsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["alignsrc"]\n\n @alignsrc.setter\n def alignsrc(self, val):\n self["alignsrc"] = val\n\n @property\n def bgcolor(self):\n """\n Sets the background color of the hover labels for this trace\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bgcolorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `bgcolor`.\n\n The 'bgcolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["bgcolorsrc"]\n\n @bgcolorsrc.setter\n def bgcolorsrc(self, val):\n self["bgcolorsrc"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the border color of the hover labels for this trace.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def bordercolorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n\n The 'bordercolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["bordercolorsrc"]\n\n @bordercolorsrc.setter\n def bordercolorsrc(self, val):\n self["bordercolorsrc"] = val\n\n @property\n def font(self):\n """\n Sets the font used in hover labels.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.choroplethmapbox.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.choroplethmapbox.hoverlabel.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def namelength(self):\n """\n Sets the default length (in number of characters) of the trace\n name in the hover labels for all traces. -1 shows the whole\n name regardless of length. 0-3 shows the first 0-3 characters,\n and an integer >3 will show the whole name if it is less than\n that many characters, but if it is longer, will truncate to\n `namelength - 3` characters and add an ellipsis.\n\n The 'namelength' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [-1, 9223372036854775807]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|numpy.ndarray\n """\n return self["namelength"]\n\n @namelength.setter\n def namelength(self, val):\n self["namelength"] = val\n\n @property\n def namelengthsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n\n The 'namelengthsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["namelengthsrc"]\n\n @namelengthsrc.setter\n def namelengthsrc(self, val):\n self["namelengthsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n align\n Sets the horizontal alignment of the text content\n within hover label box. Has an effect only if the hover\n label text spans more two or more lines\n alignsrc\n Sets the source reference on Chart Studio Cloud for\n `align`.\n bgcolor\n Sets the background color of the hover labels for this\n trace\n bgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bgcolor`.\n bordercolor\n Sets the border color of the hover labels for this\n trace.\n bordercolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n font\n Sets the font used in hover labels.\n namelength\n Sets the default length (in number of characters) of\n the trace name in the hover labels for all traces. -1\n shows the whole name regardless of length. 0-3 shows\n the first 0-3 characters, and an integer >3 will show\n the whole name if it is less than that many characters,\n but if it is longer, will truncate to `namelength - 3`\n characters and add an ellipsis.\n namelengthsrc\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n """\n\n def __init__(\n self,\n arg=None,\n align=None,\n alignsrc=None,\n bgcolor=None,\n bgcolorsrc=None,\n bordercolor=None,\n bordercolorsrc=None,\n font=None,\n namelength=None,\n namelengthsrc=None,\n **kwargs,\n ):\n """\n Construct a new Hoverlabel object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.choroplethmapbox.Hoverlabel`\n align\n Sets the horizontal alignment of the text content\n within hover label box. Has an effect only if the hover\n label text spans more two or more lines\n alignsrc\n Sets the source reference on Chart Studio Cloud for\n `align`.\n bgcolor\n Sets the background color of the hover labels for this\n trace\n bgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bgcolor`.\n bordercolor\n Sets the border color of the hover labels for this\n trace.\n bordercolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n font\n Sets the font used in hover labels.\n namelength\n Sets the default length (in number of characters) of\n the trace name in the hover labels for all traces. -1\n shows the whole name regardless of length. 0-3 shows\n the first 0-3 characters, and an integer >3 will show\n the whole name if it is less than that many characters,\n but if it is longer, will truncate to `namelength - 3`\n characters and add an ellipsis.\n namelengthsrc\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n\n Returns\n -------\n Hoverlabel\n """\n super().__init__("hoverlabel")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choroplethmapbox.Hoverlabel\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmapbox.Hoverlabel`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("align", arg, align)\n self._set_property("alignsrc", arg, alignsrc)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bgcolorsrc", arg, bgcolorsrc)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("bordercolorsrc", arg, bordercolorsrc)\n self._set_property("font", arg, font)\n self._set_property("namelength", arg, namelength)\n self._set_property("namelengthsrc", arg, namelengthsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmapbox\_hoverlabel.py | _hoverlabel.py | Python | 10,520 | 0.95 | 0.171598 | 0.010274 | node-utils | 11 | 2025-04-06T22:18:18.722087 | Apache-2.0 | false | 12da11f2f2fdea38f489a3746c0f2c40 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Legendgrouptitle(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmapbox"\n _path_str = "choroplethmapbox.legendgrouptitle"\n _valid_props = {"font", "text"}\n\n @property\n def font(self):\n """\n Sets this legend group's title font.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.choroplethmapbox.legendgrouptitle.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.choroplethmapbox.legendgrouptitle.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def text(self):\n """\n Sets the title of the legend group.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n """\n\n def __init__(self, arg=None, font=None, text=None, **kwargs):\n """\n Construct a new Legendgrouptitle object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.choroplethmapb\n ox.Legendgrouptitle`\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n\n Returns\n -------\n Legendgrouptitle\n """\n super().__init__("legendgrouptitle")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choroplethmapbox.Legendgrouptitle\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmapbox.Legendgrouptitle`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("font", arg, font)\n self._set_property("text", arg, text)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmapbox\_legendgrouptitle.py | _legendgrouptitle.py | Python | 3,003 | 0.95 | 0.115385 | 0.023256 | node-utils | 128 | 2024-05-03T02:56:26.141210 | BSD-3-Clause | false | 04c08b6a58f4fc22bbf5f550034a1e05 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Marker(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmapbox"\n _path_str = "choroplethmapbox.marker"\n _valid_props = {"line", "opacity", "opacitysrc"}\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.choroplethmapbox.marker.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.choroplethmapbox.marker.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def opacity(self):\n """\n Sets the opacity of the locations.\n\n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n """\n return self["opacity"]\n\n @opacity.setter\n def opacity(self, val):\n self["opacity"] = val\n\n @property\n def opacitysrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `opacity`.\n\n The 'opacitysrc' 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["opacitysrc"]\n\n @opacitysrc.setter\n def opacitysrc(self, val):\n self["opacitysrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n line\n :class:`plotly.graph_objects.choroplethmapbox.marker.Li\n ne` instance or dict with compatible properties\n opacity\n Sets the opacity of the locations.\n opacitysrc\n Sets the source reference on Chart Studio Cloud for\n `opacity`.\n """\n\n def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs):\n """\n Construct a new Marker 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.choroplethmapbox.Marker`\n line\n :class:`plotly.graph_objects.choroplethmapbox.marker.Li\n ne` instance or dict with compatible properties\n opacity\n Sets the opacity of the locations.\n opacitysrc\n Sets the source reference on Chart Studio Cloud for\n `opacity`.\n\n Returns\n -------\n Marker\n """\n super().__init__("marker")\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.choroplethmapbox.Marker\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmapbox.Marker`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("line", arg, line)\n self._set_property("opacity", arg, opacity)\n self._set_property("opacitysrc", arg, opacitysrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmapbox\_marker.py | _marker.py | Python | 3,827 | 0.95 | 0.147287 | 0.018519 | node-utils | 386 | 2023-08-14T05:05:12.363412 | MIT | false | 5f67759ab2826f958deafed6461fd425 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Selected(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmapbox"\n _path_str = "choroplethmapbox.selected"\n _valid_props = {"marker"}\n\n @property\n def marker(self):\n """\n The 'marker' property is an instance of Marker\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.choroplethmapbox.selected.Marker`\n - A dict of string/value properties that will be passed\n to the Marker constructor\n\n Returns\n -------\n plotly.graph_objs.choroplethmapbox.selected.Marker\n """\n return self["marker"]\n\n @marker.setter\n def marker(self, val):\n self["marker"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n marker\n :class:`plotly.graph_objects.choroplethmapbox.selected.\n Marker` instance or dict with compatible properties\n """\n\n def __init__(self, arg=None, marker=None, **kwargs):\n """\n Construct a new Selected 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.choroplethmapbox.Selected`\n marker\n :class:`plotly.graph_objects.choroplethmapbox.selected.\n Marker` instance or dict with compatible properties\n\n Returns\n -------\n Selected\n """\n super().__init__("selected")\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.choroplethmapbox.Selected\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmapbox.Selected`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("marker", arg, marker)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmapbox\_selected.py | _selected.py | Python | 2,497 | 0.95 | 0.15 | 0.029851 | python-kit | 604 | 2024-09-18T04:59:32.643068 | Apache-2.0 | false | 3dd3a49a4afee77d045e2b70a8fd81cf |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Stream(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmapbox"\n _path_str = "choroplethmapbox.stream"\n _valid_props = {"maxpoints", "token"}\n\n @property\n def maxpoints(self):\n """\n Sets the maximum number of points to keep on the plots from an\n incoming stream. If `maxpoints` is set to 50, only the newest\n 50 points will be displayed on the plot.\n\n The 'maxpoints' property is a number and may be specified as:\n - An int or float in the interval [0, 10000]\n\n Returns\n -------\n int|float\n """\n return self["maxpoints"]\n\n @maxpoints.setter\n def maxpoints(self, val):\n self["maxpoints"] = val\n\n @property\n def token(self):\n """\n The stream id number links a data trace on a plot with a\n stream. See https://chart-studio.plotly.com/settings for more\n details.\n\n The 'token' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["token"]\n\n @token.setter\n def token(self, val):\n self["token"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n maxpoints\n Sets the maximum number of points to keep on the plots\n from an incoming stream. If `maxpoints` is set to 50,\n only the newest 50 points will be displayed on the\n plot.\n token\n The stream id number links a data trace on a plot with\n a stream. See https://chart-studio.plotly.com/settings\n for more details.\n """\n\n def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):\n """\n Construct a new Stream object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.choroplethmapbox.Stream`\n maxpoints\n Sets the maximum number of points to keep on the plots\n from an incoming stream. If `maxpoints` is set to 50,\n only the newest 50 points will be displayed on the\n plot.\n token\n The stream id number links a data trace on a plot with\n a stream. See https://chart-studio.plotly.com/settings\n for more details.\n\n Returns\n -------\n Stream\n """\n super().__init__("stream")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.choroplethmapbox.Stream\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmapbox.Stream`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("maxpoints", arg, maxpoints)\n self._set_property("token", arg, token)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmapbox\_stream.py | _stream.py | Python | 3,556 | 0.95 | 0.122807 | 0.020833 | node-utils | 166 | 2024-03-13T06:06:33.561291 | MIT | false | a6fa91520af7ad8d20a98a193121334c |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Unselected(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmapbox"\n _path_str = "choroplethmapbox.unselected"\n _valid_props = {"marker"}\n\n @property\n def marker(self):\n """\n The 'marker' property is an instance of Marker\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.choroplethmapbox.unselected.Marker`\n - A dict of string/value properties that will be passed\n to the Marker constructor\n\n Returns\n -------\n plotly.graph_objs.choroplethmapbox.unselected.Marker\n """\n return self["marker"]\n\n @marker.setter\n def marker(self, val):\n self["marker"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n marker\n :class:`plotly.graph_objects.choroplethmapbox.unselecte\n d.Marker` instance or dict with compatible properties\n """\n\n def __init__(self, arg=None, marker=None, **kwargs):\n """\n Construct a new Unselected 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.choroplethmapbox.Unselected`\n marker\n :class:`plotly.graph_objects.choroplethmapbox.unselecte\n d.Marker` instance or dict with compatible properties\n\n Returns\n -------\n Unselected\n """\n super().__init__("unselected")\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.choroplethmapbox.Unselected\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmapbox.Unselected`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("marker", arg, marker)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmapbox\_unselected.py | _unselected.py | Python | 2,521 | 0.95 | 0.15 | 0.029851 | node-utils | 454 | 2023-12-23T00:25:46.316288 | Apache-2.0 | false | 38aa065fc916d6bf8ba50138b691ed49 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._colorbar import ColorBar\n from ._hoverlabel import Hoverlabel\n from ._legendgrouptitle import Legendgrouptitle\n from ._marker import Marker\n from ._selected import Selected\n from ._stream import Stream\n from ._unselected import Unselected\n from . import colorbar\n from . import hoverlabel\n from . import legendgrouptitle\n from . import marker\n from . import selected\n from . import unselected\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [\n ".colorbar",\n ".hoverlabel",\n ".legendgrouptitle",\n ".marker",\n ".selected",\n ".unselected",\n ],\n [\n "._colorbar.ColorBar",\n "._hoverlabel.Hoverlabel",\n "._legendgrouptitle.Legendgrouptitle",\n "._marker.Marker",\n "._selected.Selected",\n "._stream.Stream",\n "._unselected.Unselected",\n ],\n )\n | .venv\Lib\site-packages\plotly\graph_objs\choroplethmapbox\__init__.py | __init__.py | Python | 1,106 | 0.85 | 0.025 | 0 | vue-tools | 157 | 2023-11-13T14:53:08.898688 | GPL-3.0 | false | 2b9f61aa3dc40440eb77e3d8d6184dc3 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Tickfont(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmapbox.colorbar"\n _path_str = "choroplethmapbox.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.choroplethmapb\n ox.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.choroplethmapbox.colorbar.Tickfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmapbox.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\choroplethmapbox\colorbar\_tickfont.py | _tickfont.py | Python | 9,964 | 0.95 | 0.10479 | 0.010526 | vue-tools | 891 | 2024-07-21T13:51:53.697923 | GPL-3.0 | false | b9ca8620aa1f4332cf55658f9ef597aa |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Tickformatstop(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmapbox.colorbar"\n _path_str = "choroplethmapbox.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.choroplethmapb\n ox.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.choroplethmapbox.colorbar.Tickformatstop\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmapbox.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\choroplethmapbox\colorbar\_tickformatstop.py | _tickformatstop.py | Python | 8,559 | 0.95 | 0.082988 | 0.019048 | python-kit | 629 | 2024-09-07T09:34:11.935591 | Apache-2.0 | false | 2a99b4320ab21c0d19f9df094fee8dce |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Title(_BaseTraceHierarchyType):\n _parent_path_str = "choroplethmapbox.colorbar"\n _path_str = "choroplethmapbox.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.choroplethmapbox.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.choroplethmapbox.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.choroplethmapb\n ox.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.choroplethmapbox.colorbar.Title\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.choroplethmapbox.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\choroplethmapbox\colorbar\_title.py | _title.py | Python | 4,035 | 0.95 | 0.147059 | 0.017544 | python-kit | 845 | 2024-10-24T15:37:58.316840 | BSD-3-Clause | false | fcfe0ef9431261a3bea262dc393702a5 |
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\choroplethmapbox\colorbar\__init__.py | __init__.py | Python | 446 | 0.85 | 0.0625 | 0 | awesome-app | 117 | 2024-12-18T16:29:52.052271 | BSD-3-Clause | false | c1c51c7cdaa97ba16b501a938689f435 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.