content
stringlengths
1
103k
path
stringlengths
8
216
filename
stringlengths
2
179
language
stringclasses
15 values
size_bytes
int64
2
189k
quality_score
float64
0.5
0.95
complexity
float64
0
1
documentation_ratio
float64
0
1
repository
stringclasses
5 values
stars
int64
0
1k
created_date
stringdate
2023-07-10 19:21:08
2025-07-09 19:11:45
license
stringclasses
4 values
is_test
bool
2 classes
file_hash
stringlengths
32
32
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\colorbar\__pycache__\_tickfont.cpython-313.pyc
_tickfont.cpython-313.pyc
Other
10,964
0.8
0.04918
0
awesome-app
103
2024-04-05T06:23:13.025228
MIT
false
ea379ec7700ca845b03afee52771f09e
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\colorbar\__pycache__\_tickformatstop.cpython-313.pyc
_tickformatstop.cpython-313.pyc
Other
9,291
0.8
0.024752
0.005319
python-kit
336
2023-07-23T13:10:47.244787
Apache-2.0
false
77cb49d2024eb2f0e2fadfa92ddcce79
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\colorbar\__pycache__\_title.cpython-313.pyc
_title.cpython-313.pyc
Other
4,874
0.8
0.087379
0
vue-tools
335
2025-01-08T01:51:11.028807
Apache-2.0
false
ba330cc5f1168a0eedc22fd83501ceac
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\colorbar\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
708
0.95
0
0
python-kit
300
2023-10-03T03:54:56.681150
MIT
false
9daef31fe49a1e14cccc77ce5998cce3
# --- 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 = "heatmap.hoverlabel"\n _path_str = "heatmap.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.heatmap.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.heatmap.hoverlabel.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.heatmap.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\heatmap\hoverlabel\_font.py
_font.py
Python
17,143
0.95
0.136286
0.005976
node-utils
3
2023-09-04T12:24:25.189218
MIT
false
b218a8b544e6a029a38bef644a6e7db4
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\heatmap\hoverlabel\__init__.py
__init__.py
Python
237
0.85
0.111111
0
python-kit
66
2024-05-17T12:54:35.578326
Apache-2.0
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\hoverlabel\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
18,389
0.8
0.1
0
awesome-app
122
2024-12-08T09:39:22.272731
GPL-3.0
false
aaaf4049d2199495dd821a33ebceb532
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\hoverlabel\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
504
0.85
0
0
react-lib
6
2024-04-10T07:35:44.955590
GPL-3.0
false
e98df696e60b800576e3a1ff210a9549
# --- 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 = "heatmap.legendgrouptitle"\n _path_str = "heatmap.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.heatmap.legend\n grouptitle.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.heatmap.legendgrouptitle.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.heatmap.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\heatmap\legendgrouptitle\_font.py
_font.py
Python
9,927
0.95
0.10479
0.010526
python-kit
888
2023-08-05T14:43:58.607711
MIT
false
b930e506912b4cd7bcfcd453c94a4eee
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\heatmap\legendgrouptitle\__init__.py
__init__.py
Python
237
0.85
0.111111
0
react-lib
179
2024-11-22T08:41:01.669214
Apache-2.0
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\legendgrouptitle\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,933
0.8
0.048583
0
react-lib
251
2023-10-28T09:13:50.917809
Apache-2.0
false
47972868f244cf819eb34c975c2f1e4d
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\legendgrouptitle\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
510
0.85
0
0
react-lib
468
2024-09-09T06:49:41.281250
BSD-3-Clause
false
a5c8055f2161e4614d814011162d467c
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\__pycache__\_colorbar.cpython-313.pyc
_colorbar.cpython-313.pyc
Other
61,183
0.6
0.082343
0
vue-tools
723
2025-02-03T20:10:57.334639
GPL-3.0
false
009e5157b10388391e37c0f3696e195b
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\__pycache__\_hoverlabel.cpython-313.pyc
_hoverlabel.cpython-313.pyc
Other
11,383
0.8
0.142276
0
vue-tools
888
2024-03-27T21:52:27.540746
MIT
false
1d3f8e5945d0f7e29c39b24de9c4caee
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\__pycache__\_legendgrouptitle.cpython-313.pyc
_legendgrouptitle.cpython-313.pyc
Other
3,854
0.8
0.04
0
node-utils
84
2024-02-27T14:18:39.805802
MIT
false
d573832098b70589a22f7a80718e2a8d
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\__pycache__\_stream.cpython-313.pyc
_stream.cpython-313.pyc
Other
4,306
0.8
0.054348
0
python-kit
45
2023-12-04T02:05:10.484339
GPL-3.0
false
5c5db5382bd18239edd758f6c9ddf3bd
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\__pycache__\_textfont.cpython-313.pyc
_textfont.cpython-313.pyc
Other
10,890
0.8
0.04918
0
awesome-app
876
2024-07-27T10:31:10.921104
GPL-3.0
false
6931d5a5571236b39eefb2c40bbc17b6
\n\n
.venv\Lib\site-packages\plotly\graph_objs\heatmap\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
963
0.95
0
0
vue-tools
514
2024-07-20T10:44:20.757080
Apache-2.0
false
1789406ba522f8743393e9d221c18993
# --- 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 Cumulative(_BaseTraceHierarchyType):\n _parent_path_str = "histogram"\n _path_str = "histogram.cumulative"\n _valid_props = {"currentbin", "direction", "enabled"}\n\n @property\n def currentbin(self):\n """\n Only applies if cumulative is enabled. Sets whether the current\n bin is included, excluded, or has half of its value included in\n the current cumulative value. "include" is the default for\n compatibility with various other tools, however it introduces a\n half-bin bias to the results. "exclude" makes the opposite\n half-bin bias, and "half" removes it.\n\n The 'currentbin' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['include', 'exclude', 'half']\n\n Returns\n -------\n Any\n """\n return self["currentbin"]\n\n @currentbin.setter\n def currentbin(self, val):\n self["currentbin"] = val\n\n @property\n def direction(self):\n """\n Only applies if cumulative is enabled. If "increasing"\n (default) we sum all prior bins, so the result increases from\n left to right. If "decreasing" we sum later bins so the result\n decreases from left to right.\n\n The 'direction' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['increasing', 'decreasing']\n\n Returns\n -------\n Any\n """\n return self["direction"]\n\n @direction.setter\n def direction(self, val):\n self["direction"] = val\n\n @property\n def enabled(self):\n """\n If true, display the cumulative distribution by summing the\n binned values. Use the `direction` and `centralbin` attributes\n to tune the accumulation method. Note: in this mode, the\n "density" `histnorm` settings behave the same as their\n equivalents without "density": "" and "density" both rise to\n the number of data points, and "probability" and *probability\n density* both rise to the number of sample points.\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 _prop_descriptions(self):\n return """\\n currentbin\n Only applies if cumulative is enabled. Sets whether the\n current bin is included, excluded, or has half of its\n value included in the current cumulative value.\n "include" is the default for compatibility with various\n other tools, however it introduces a half-bin bias to\n the results. "exclude" makes the opposite half-bin\n bias, and "half" removes it.\n direction\n Only applies if cumulative is enabled. If "increasing"\n (default) we sum all prior bins, so the result\n increases from left to right. If "decreasing" we sum\n later bins so the result decreases from left to right.\n enabled\n If true, display the cumulative distribution by summing\n the binned values. Use the `direction` and `centralbin`\n attributes to tune the accumulation method. Note: in\n this mode, the "density" `histnorm` settings behave the\n same as their equivalents without "density": "" and\n "density" both rise to the number of data points, and\n "probability" and *probability density* both rise to\n the number of sample points.\n """\n\n def __init__(\n self, arg=None, currentbin=None, direction=None, enabled=None, **kwargs\n ):\n """\n Construct a new Cumulative 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.histogram.Cumulative`\n currentbin\n Only applies if cumulative is enabled. Sets whether the\n current bin is included, excluded, or has half of its\n value included in the current cumulative value.\n "include" is the default for compatibility with various\n other tools, however it introduces a half-bin bias to\n the results. "exclude" makes the opposite half-bin\n bias, and "half" removes it.\n direction\n Only applies if cumulative is enabled. If "increasing"\n (default) we sum all prior bins, so the result\n increases from left to right. If "decreasing" we sum\n later bins so the result decreases from left to right.\n enabled\n If true, display the cumulative distribution by summing\n the binned values. Use the `direction` and `centralbin`\n attributes to tune the accumulation method. Note: in\n this mode, the "density" `histnorm` settings behave the\n same as their equivalents without "density": "" and\n "density" both rise to the number of data points, and\n "probability" and *probability density* both rise to\n the number of sample points.\n\n Returns\n -------\n Cumulative\n """\n super().__init__("cumulative")\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.histogram.Cumulative\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.Cumulative`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("currentbin", arg, currentbin)\n self._set_property("direction", arg, direction)\n self._set_property("enabled", arg, enabled)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\_cumulative.py
_cumulative.py
Python
6,560
0.95
0.127168
0.013245
react-lib
739
2024-06-13T17:42:27.970997
Apache-2.0
false
1aca974b445c8681693d20a5e4d59f93
# --- 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 ErrorX(_BaseTraceHierarchyType):\n _parent_path_str = "histogram"\n _path_str = "histogram.error_x"\n _valid_props = {\n "array",\n "arrayminus",\n "arrayminussrc",\n "arraysrc",\n "color",\n "copy_ystyle",\n "symmetric",\n "thickness",\n "traceref",\n "tracerefminus",\n "type",\n "value",\n "valueminus",\n "visible",\n "width",\n }\n\n @property\n def array(self):\n """\n Sets the data corresponding the length of each error bar.\n Values are plotted relative to the underlying data.\n\n The 'array' 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["array"]\n\n @array.setter\n def array(self, val):\n self["array"] = val\n\n @property\n def arrayminus(self):\n """\n Sets the data corresponding the length of each error bar in the\n bottom (left) direction for vertical (horizontal) bars Values\n are plotted relative to the underlying data.\n\n The 'arrayminus' 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["arrayminus"]\n\n @arrayminus.setter\n def arrayminus(self, val):\n self["arrayminus"] = val\n\n @property\n def arrayminussrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `arrayminus`.\n\n The 'arrayminussrc' 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["arrayminussrc"]\n\n @arrayminussrc.setter\n def arrayminussrc(self, val):\n self["arrayminussrc"] = val\n\n @property\n def arraysrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `array`.\n\n The 'arraysrc' 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["arraysrc"]\n\n @arraysrc.setter\n def arraysrc(self, val):\n self["arraysrc"] = val\n\n @property\n def color(self):\n """\n Sets the stroke color of the error bars.\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 copy_ystyle(self):\n """\n The 'copy_ystyle' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["copy_ystyle"]\n\n @copy_ystyle.setter\n def copy_ystyle(self, val):\n self["copy_ystyle"] = val\n\n @property\n def symmetric(self):\n """\n Determines whether or not the error bars have the same length\n in both direction (top/bottom for vertical bars, left/right for\n horizontal bars.\n\n The 'symmetric' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["symmetric"]\n\n @symmetric.setter\n def symmetric(self, val):\n self["symmetric"] = val\n\n @property\n def thickness(self):\n """\n Sets the thickness (in px) of the error bars.\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 traceref(self):\n """\n The 'traceref' 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["traceref"]\n\n @traceref.setter\n def traceref(self, val):\n self["traceref"] = val\n\n @property\n def tracerefminus(self):\n """\n The 'tracerefminus' 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["tracerefminus"]\n\n @tracerefminus.setter\n def tracerefminus(self, val):\n self["tracerefminus"] = val\n\n @property\n def type(self):\n """\n Determines the rule used to generate the error bars. If\n "constant", the bar lengths are of a constant value. Set this\n constant in `value`. If "percent", the bar lengths correspond\n to a percentage of underlying data. Set this percentage in\n `value`. If "sqrt", the bar lengths correspond to the square of\n the underlying data. If "data", the bar lengths are set with\n data set `array`.\n\n The 'type' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['percent', 'constant', 'sqrt', 'data']\n\n Returns\n -------\n Any\n """\n return self["type"]\n\n @type.setter\n def type(self, val):\n self["type"] = val\n\n @property\n def value(self):\n """\n Sets the value of either the percentage (if `type` is set to\n "percent") or the constant (if `type` is set to "constant")\n corresponding to the lengths of the error bars.\n\n The 'value' 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["value"]\n\n @value.setter\n def value(self, val):\n self["value"] = val\n\n @property\n def valueminus(self):\n """\n Sets the value of either the percentage (if `type` is set to\n "percent") or the constant (if `type` is set to "constant")\n corresponding to the lengths of the error bars in the bottom\n (left) direction for vertical (horizontal) bars\n\n The 'valueminus' 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["valueminus"]\n\n @valueminus.setter\n def valueminus(self, val):\n self["valueminus"] = val\n\n @property\n def visible(self):\n """\n Determines whether or not this set of error bars is visible.\n\n The 'visible' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def width(self):\n """\n Sets the width (in px) of the cross-bar at both ends of the\n error bars.\n\n The 'width' 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["width"]\n\n @width.setter\n def width(self, val):\n self["width"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n array\n Sets the data corresponding the length of each error\n bar. Values are plotted relative to the underlying\n data.\n arrayminus\n Sets the data corresponding the length of each error\n bar in the bottom (left) direction for vertical\n (horizontal) bars Values are plotted relative to the\n underlying data.\n arrayminussrc\n Sets the source reference on Chart Studio Cloud for\n `arrayminus`.\n arraysrc\n Sets the source reference on Chart Studio Cloud for\n `array`.\n color\n Sets the stroke color of the error bars.\n copy_ystyle\n\n symmetric\n Determines whether or not the error bars have the same\n length in both direction (top/bottom for vertical bars,\n left/right for horizontal bars.\n thickness\n Sets the thickness (in px) of the error bars.\n traceref\n\n tracerefminus\n\n type\n Determines the rule used to generate the error bars. If\n "constant", the bar lengths are of a constant value.\n Set this constant in `value`. If "percent", the bar\n lengths correspond to a percentage of underlying data.\n Set this percentage in `value`. If "sqrt", the bar\n lengths correspond to the square of the underlying\n data. If "data", the bar lengths are set with data set\n `array`.\n value\n Sets the value of either the percentage (if `type` is\n set to "percent") or the constant (if `type` is set to\n "constant") corresponding to the lengths of the error\n bars.\n valueminus\n Sets the value of either the percentage (if `type` is\n set to "percent") or the constant (if `type` is set to\n "constant") corresponding to the lengths of the error\n bars in the bottom (left) direction for vertical\n (horizontal) bars\n visible\n Determines whether or not this set of error bars is\n visible.\n width\n Sets the width (in px) of the cross-bar at both ends of\n the error bars.\n """\n\n def __init__(\n self,\n arg=None,\n array=None,\n arrayminus=None,\n arrayminussrc=None,\n arraysrc=None,\n color=None,\n copy_ystyle=None,\n symmetric=None,\n thickness=None,\n traceref=None,\n tracerefminus=None,\n type=None,\n value=None,\n valueminus=None,\n visible=None,\n width=None,\n **kwargs,\n ):\n """\n Construct a new ErrorX 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.histogram.ErrorX`\n array\n Sets the data corresponding the length of each error\n bar. Values are plotted relative to the underlying\n data.\n arrayminus\n Sets the data corresponding the length of each error\n bar in the bottom (left) direction for vertical\n (horizontal) bars Values are plotted relative to the\n underlying data.\n arrayminussrc\n Sets the source reference on Chart Studio Cloud for\n `arrayminus`.\n arraysrc\n Sets the source reference on Chart Studio Cloud for\n `array`.\n color\n Sets the stroke color of the error bars.\n copy_ystyle\n\n symmetric\n Determines whether or not the error bars have the same\n length in both direction (top/bottom for vertical bars,\n left/right for horizontal bars.\n thickness\n Sets the thickness (in px) of the error bars.\n traceref\n\n tracerefminus\n\n type\n Determines the rule used to generate the error bars. If\n "constant", the bar lengths are of a constant value.\n Set this constant in `value`. If "percent", the bar\n lengths correspond to a percentage of underlying data.\n Set this percentage in `value`. If "sqrt", the bar\n lengths correspond to the square of the underlying\n data. If "data", the bar lengths are set with data set\n `array`.\n value\n Sets the value of either the percentage (if `type` is\n set to "percent") or the constant (if `type` is set to\n "constant") corresponding to the lengths of the error\n bars.\n valueminus\n Sets the value of either the percentage (if `type` is\n set to "percent") or the constant (if `type` is set to\n "constant") corresponding to the lengths of the error\n bars in the bottom (left) direction for vertical\n (horizontal) bars\n visible\n Determines whether or not this set of error bars is\n visible.\n width\n Sets the width (in px) of the cross-bar at both ends of\n the error bars.\n\n Returns\n -------\n ErrorX\n """\n super().__init__("error_x")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.histogram.ErrorX\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.ErrorX`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("array", arg, array)\n self._set_property("arrayminus", arg, arrayminus)\n self._set_property("arrayminussrc", arg, arrayminussrc)\n self._set_property("arraysrc", arg, arraysrc)\n self._set_property("color", arg, color)\n self._set_property("copy_ystyle", arg, copy_ystyle)\n self._set_property("symmetric", arg, symmetric)\n self._set_property("thickness", arg, thickness)\n self._set_property("traceref", arg, traceref)\n self._set_property("tracerefminus", arg, tracerefminus)\n self._set_property("type", arg, type)\n self._set_property("value", arg, value)\n self._set_property("valueminus", arg, valueminus)\n self._set_property("visible", arg, visible)\n self._set_property("width", arg, width)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\_error_x.py
_error_x.py
Python
14,881
0.95
0.135189
0.006977
react-lib
633
2023-12-30T10:22:20.880519
Apache-2.0
false
be4a242e77d2e1d681d1e87464c5b566
# --- 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 ErrorY(_BaseTraceHierarchyType):\n _parent_path_str = "histogram"\n _path_str = "histogram.error_y"\n _valid_props = {\n "array",\n "arrayminus",\n "arrayminussrc",\n "arraysrc",\n "color",\n "symmetric",\n "thickness",\n "traceref",\n "tracerefminus",\n "type",\n "value",\n "valueminus",\n "visible",\n "width",\n }\n\n @property\n def array(self):\n """\n Sets the data corresponding the length of each error bar.\n Values are plotted relative to the underlying data.\n\n The 'array' 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["array"]\n\n @array.setter\n def array(self, val):\n self["array"] = val\n\n @property\n def arrayminus(self):\n """\n Sets the data corresponding the length of each error bar in the\n bottom (left) direction for vertical (horizontal) bars Values\n are plotted relative to the underlying data.\n\n The 'arrayminus' 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["arrayminus"]\n\n @arrayminus.setter\n def arrayminus(self, val):\n self["arrayminus"] = val\n\n @property\n def arrayminussrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `arrayminus`.\n\n The 'arrayminussrc' 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["arrayminussrc"]\n\n @arrayminussrc.setter\n def arrayminussrc(self, val):\n self["arrayminussrc"] = val\n\n @property\n def arraysrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `array`.\n\n The 'arraysrc' 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["arraysrc"]\n\n @arraysrc.setter\n def arraysrc(self, val):\n self["arraysrc"] = val\n\n @property\n def color(self):\n """\n Sets the stroke color of the error bars.\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 symmetric(self):\n """\n Determines whether or not the error bars have the same length\n in both direction (top/bottom for vertical bars, left/right for\n horizontal bars.\n\n The 'symmetric' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["symmetric"]\n\n @symmetric.setter\n def symmetric(self, val):\n self["symmetric"] = val\n\n @property\n def thickness(self):\n """\n Sets the thickness (in px) of the error bars.\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 traceref(self):\n """\n The 'traceref' 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["traceref"]\n\n @traceref.setter\n def traceref(self, val):\n self["traceref"] = val\n\n @property\n def tracerefminus(self):\n """\n The 'tracerefminus' 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["tracerefminus"]\n\n @tracerefminus.setter\n def tracerefminus(self, val):\n self["tracerefminus"] = val\n\n @property\n def type(self):\n """\n Determines the rule used to generate the error bars. If\n "constant", the bar lengths are of a constant value. Set this\n constant in `value`. If "percent", the bar lengths correspond\n to a percentage of underlying data. Set this percentage in\n `value`. If "sqrt", the bar lengths correspond to the square of\n the underlying data. If "data", the bar lengths are set with\n data set `array`.\n\n The 'type' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['percent', 'constant', 'sqrt', 'data']\n\n Returns\n -------\n Any\n """\n return self["type"]\n\n @type.setter\n def type(self, val):\n self["type"] = val\n\n @property\n def value(self):\n """\n Sets the value of either the percentage (if `type` is set to\n "percent") or the constant (if `type` is set to "constant")\n corresponding to the lengths of the error bars.\n\n The 'value' 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["value"]\n\n @value.setter\n def value(self, val):\n self["value"] = val\n\n @property\n def valueminus(self):\n """\n Sets the value of either the percentage (if `type` is set to\n "percent") or the constant (if `type` is set to "constant")\n corresponding to the lengths of the error bars in the bottom\n (left) direction for vertical (horizontal) bars\n\n The 'valueminus' 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["valueminus"]\n\n @valueminus.setter\n def valueminus(self, val):\n self["valueminus"] = val\n\n @property\n def visible(self):\n """\n Determines whether or not this set of error bars is visible.\n\n The 'visible' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def width(self):\n """\n Sets the width (in px) of the cross-bar at both ends of the\n error bars.\n\n The 'width' 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["width"]\n\n @width.setter\n def width(self, val):\n self["width"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n array\n Sets the data corresponding the length of each error\n bar. Values are plotted relative to the underlying\n data.\n arrayminus\n Sets the data corresponding the length of each error\n bar in the bottom (left) direction for vertical\n (horizontal) bars Values are plotted relative to the\n underlying data.\n arrayminussrc\n Sets the source reference on Chart Studio Cloud for\n `arrayminus`.\n arraysrc\n Sets the source reference on Chart Studio Cloud for\n `array`.\n color\n Sets the stroke color of the error bars.\n symmetric\n Determines whether or not the error bars have the same\n length in both direction (top/bottom for vertical bars,\n left/right for horizontal bars.\n thickness\n Sets the thickness (in px) of the error bars.\n traceref\n\n tracerefminus\n\n type\n Determines the rule used to generate the error bars. If\n "constant", the bar lengths are of a constant value.\n Set this constant in `value`. If "percent", the bar\n lengths correspond to a percentage of underlying data.\n Set this percentage in `value`. If "sqrt", the bar\n lengths correspond to the square of the underlying\n data. If "data", the bar lengths are set with data set\n `array`.\n value\n Sets the value of either the percentage (if `type` is\n set to "percent") or the constant (if `type` is set to\n "constant") corresponding to the lengths of the error\n bars.\n valueminus\n Sets the value of either the percentage (if `type` is\n set to "percent") or the constant (if `type` is set to\n "constant") corresponding to the lengths of the error\n bars in the bottom (left) direction for vertical\n (horizontal) bars\n visible\n Determines whether or not this set of error bars is\n visible.\n width\n Sets the width (in px) of the cross-bar at both ends of\n the error bars.\n """\n\n def __init__(\n self,\n arg=None,\n array=None,\n arrayminus=None,\n arrayminussrc=None,\n arraysrc=None,\n color=None,\n symmetric=None,\n thickness=None,\n traceref=None,\n tracerefminus=None,\n type=None,\n value=None,\n valueminus=None,\n visible=None,\n width=None,\n **kwargs,\n ):\n """\n Construct a new ErrorY 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.histogram.ErrorY`\n array\n Sets the data corresponding the length of each error\n bar. Values are plotted relative to the underlying\n data.\n arrayminus\n Sets the data corresponding the length of each error\n bar in the bottom (left) direction for vertical\n (horizontal) bars Values are plotted relative to the\n underlying data.\n arrayminussrc\n Sets the source reference on Chart Studio Cloud for\n `arrayminus`.\n arraysrc\n Sets the source reference on Chart Studio Cloud for\n `array`.\n color\n Sets the stroke color of the error bars.\n symmetric\n Determines whether or not the error bars have the same\n length in both direction (top/bottom for vertical bars,\n left/right for horizontal bars.\n thickness\n Sets the thickness (in px) of the error bars.\n traceref\n\n tracerefminus\n\n type\n Determines the rule used to generate the error bars. If\n "constant", the bar lengths are of a constant value.\n Set this constant in `value`. If "percent", the bar\n lengths correspond to a percentage of underlying data.\n Set this percentage in `value`. If "sqrt", the bar\n lengths correspond to the square of the underlying\n data. If "data", the bar lengths are set with data set\n `array`.\n value\n Sets the value of either the percentage (if `type` is\n set to "percent") or the constant (if `type` is set to\n "constant") corresponding to the lengths of the error\n bars.\n valueminus\n Sets the value of either the percentage (if `type` is\n set to "percent") or the constant (if `type` is set to\n "constant") corresponding to the lengths of the error\n bars in the bottom (left) direction for vertical\n (horizontal) bars\n visible\n Determines whether or not this set of error bars is\n visible.\n width\n Sets the width (in px) of the cross-bar at both ends of\n the error bars.\n\n Returns\n -------\n ErrorY\n """\n super().__init__("error_y")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.histogram.ErrorY\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.ErrorY`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("array", arg, array)\n self._set_property("arrayminus", arg, arrayminus)\n self._set_property("arrayminussrc", arg, arrayminussrc)\n self._set_property("arraysrc", arg, arraysrc)\n self._set_property("color", arg, color)\n self._set_property("symmetric", arg, symmetric)\n self._set_property("thickness", arg, thickness)\n self._set_property("traceref", arg, traceref)\n self._set_property("tracerefminus", arg, tracerefminus)\n self._set_property("type", arg, type)\n self._set_property("value", arg, value)\n self._set_property("valueminus", arg, valueminus)\n self._set_property("visible", arg, visible)\n self._set_property("width", arg, width)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\_error_y.py
_error_y.py
Python
14,397
0.95
0.1375
0.007282
vue-tools
273
2024-12-08T10:07:32.178974
BSD-3-Clause
false
8b60b3072a44dffe3b0601d1672fe0d5
# --- 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 = "histogram"\n _path_str = "histogram.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.histogram.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.histogram.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.histogram.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.histogram.Hoverlabel\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.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\histogram\_hoverlabel.py
_hoverlabel.py
Python
10,471
0.95
0.171598
0.010274
react-lib
736
2023-11-15T21:59:50.708484
GPL-3.0
false
8706716b53fe9f5024494073d25c3cc7
# --- 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 Insidetextfont(_BaseTraceHierarchyType):\n _parent_path_str = "histogram"\n _path_str = "histogram.insidetextfont"\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 Insidetextfont object\n\n Sets the font used for `text` lying inside the bar.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.histogram.Insidetextfont`\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 Insidetextfont\n """\n super().__init__("insidetextfont")\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.histogram.Insidetextfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.Insidetextfont`""")\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\histogram\_insidetextfont.py
_insidetextfont.py
Python
9,946
0.95
0.107784
0.010526
vue-tools
144
2023-09-28T21:09:14.937968
GPL-3.0
false
b2ed22a92e18298d2fbf6865a2cf0138
# --- 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 = "histogram"\n _path_str = "histogram.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.histogram.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.histogram.legendgrouptitle.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def text(self):\n """\n Sets the title of the legend group.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n """\n\n def __init__(self, arg=None, font=None, text=None, **kwargs):\n """\n Construct a new Legendgrouptitle object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.histogram.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.histogram.Legendgrouptitle\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.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\histogram\_legendgrouptitle.py
_legendgrouptitle.py
Python
2,953
0.95
0.115385
0.023256
awesome-app
584
2023-08-09T03:51:52.164261
BSD-3-Clause
false
0ed89b93ac0dcd9f1506191f5b7aff8a
# --- 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 = "histogram"\n _path_str = "histogram.marker"\n _valid_props = {\n "autocolorscale",\n "cauto",\n "cmax",\n "cmid",\n "cmin",\n "color",\n "coloraxis",\n "colorbar",\n "colorscale",\n "colorsrc",\n "cornerradius",\n "line",\n "opacity",\n "opacitysrc",\n "pattern",\n "reversescale",\n "showscale",\n }\n\n @property\n def autocolorscale(self):\n """\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `marker.colorscale`. Has an effect only if in `marker.color` is\n set to a numerical array. In case `colorscale` is unspecified\n or `autocolorscale` is true, the default palette will be chosen\n according to whether numbers in the `color` array are all\n positive, all negative or mixed.\n\n The 'autocolorscale' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["autocolorscale"]\n\n @autocolorscale.setter\n def autocolorscale(self, val):\n self["autocolorscale"] = val\n\n @property\n def cauto(self):\n """\n Determines whether or not the color domain is computed with\n respect to the input data (here in `marker.color`) or the\n bounds set in `marker.cmin` and `marker.cmax` Has an effect\n only if in `marker.color` is set to a numerical array. Defaults\n to `false` when `marker.cmin` and `marker.cmax` are set by the\n user.\n\n The 'cauto' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["cauto"]\n\n @cauto.setter\n def cauto(self, val):\n self["cauto"] = val\n\n @property\n def cmax(self):\n """\n Sets the upper bound of the color domain. Has an effect only if\n in `marker.color` is set to a numerical array. Value should\n have the same units as in `marker.color` and if set,\n `marker.cmin` must be set as well.\n\n The 'cmax' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["cmax"]\n\n @cmax.setter\n def cmax(self, val):\n self["cmax"] = val\n\n @property\n def cmid(self):\n """\n Sets the mid-point of the color domain by scaling `marker.cmin`\n and/or `marker.cmax` to be equidistant to this point. Has an\n effect only if in `marker.color` is set to a numerical array.\n Value should have the same units as in `marker.color`. Has no\n effect when `marker.cauto` is `false`.\n\n The 'cmid' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["cmid"]\n\n @cmid.setter\n def cmid(self, val):\n self["cmid"] = val\n\n @property\n def cmin(self):\n """\n Sets the lower bound of the color domain. Has an effect only if\n in `marker.color` is set to a numerical array. Value should\n have the same units as in `marker.color` and if set,\n `marker.cmax` must be set as well.\n\n The 'cmin' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["cmin"]\n\n @cmin.setter\n def cmin(self, val):\n self["cmin"] = val\n\n @property\n def color(self):\n """\n Sets the marker color. It accepts either a specific color or an\n array of numbers that are mapped to the colorscale relative to\n the max and min values of the array or relative to\n `marker.cmin` and `marker.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 number that will be interpreted as a color\n according to histogram.marker.colorscale\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 coloraxis(self):\n """\n Sets a reference to a shared color axis. References to these\n shared color axes are "coloraxis", "coloraxis2", "coloraxis3",\n etc. Settings for these shared color axes are set in the\n layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.\n Note that multiple color scales can be linked to the same color\n axis.\n\n The 'coloraxis' property is an identifier of a particular\n subplot, of type 'coloraxis', that may be specified as the string 'coloraxis'\n optionally followed by an integer >= 1\n (e.g. 'coloraxis', 'coloraxis1', 'coloraxis2', 'coloraxis3', etc.)\n\n Returns\n -------\n str\n """\n return self["coloraxis"]\n\n @coloraxis.setter\n def coloraxis(self, val):\n self["coloraxis"] = val\n\n @property\n def colorbar(self):\n """\n The 'colorbar' property is an instance of ColorBar\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.histogram.marker.ColorBar`\n - A dict of string/value properties that will be passed\n to the ColorBar constructor\n\n Returns\n -------\n plotly.graph_objs.histogram.marker.ColorBar\n """\n return self["colorbar"]\n\n @colorbar.setter\n def colorbar(self, val):\n self["colorbar"] = val\n\n @property\n def colorscale(self):\n """\n Sets the colorscale. Has an effect only if in `marker.color` is\n set to a numerical array. The colorscale must be an array\n containing arrays mapping a normalized value to an rgb, rgba,\n hex, hsl, hsv, or named color string. At minimum, a mapping for\n the lowest (0) and highest (1) values are required. For\n example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To\n control the bounds of the colorscale in color space, use\n `marker.cmin` and `marker.cmax`. Alternatively, `colorscale`\n may be a palette name string of the following list: Blackbody,B\n luered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic\n ,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.\n\n The 'colorscale' property is a colorscale and may be\n specified as:\n - A list of colors that will be spaced evenly to create the colorscale.\n Many predefined colorscale lists are included in the sequential, diverging,\n and cyclical modules in the plotly.colors package.\n - A list of 2-element lists where the first element is the\n normalized color level value (starting at 0 and ending at 1),\n and the second item is a valid color string.\n (e.g. [[0, 'green'], [0.5, 'red'], [1.0, 'rgb(0, 0, 255)']])\n - One of the following named colorscales:\n ['aggrnyl', 'agsunset', 'algae', 'amp', 'armyrose', 'balance',\n 'blackbody', 'bluered', 'blues', 'blugrn', 'bluyl', 'brbg',\n 'brwnyl', 'bugn', 'bupu', 'burg', 'burgyl', 'cividis', 'curl',\n 'darkmint', 'deep', 'delta', 'dense', 'earth', 'edge', 'electric',\n 'emrld', 'fall', 'geyser', 'gnbu', 'gray', 'greens', 'greys',\n 'haline', 'hot', 'hsv', 'ice', 'icefire', 'inferno', 'jet',\n 'magenta', 'magma', 'matter', 'mint', 'mrybm', 'mygbm', 'oranges',\n 'orrd', 'oryel', 'oxy', 'peach', 'phase', 'picnic', 'pinkyl',\n 'piyg', 'plasma', 'plotly3', 'portland', 'prgn', 'pubu', 'pubugn',\n 'puor', 'purd', 'purp', 'purples', 'purpor', 'rainbow', 'rdbu',\n 'rdgy', 'rdpu', 'rdylbu', 'rdylgn', 'redor', 'reds', 'solar',\n 'spectral', 'speed', 'sunset', 'sunsetdark', 'teal', 'tealgrn',\n 'tealrose', 'tempo', 'temps', 'thermal', 'tropic', 'turbid',\n 'turbo', 'twilight', 'viridis', 'ylgn', 'ylgnbu', 'ylorbr',\n 'ylorrd'].\n Appending '_r' to a named colorscale reverses it.\n\n Returns\n -------\n str\n """\n return self["colorscale"]\n\n @colorscale.setter\n def colorscale(self, val):\n self["colorscale"] = val\n\n @property\n def 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 cornerradius(self):\n """\n Sets the rounding of corners. May be an integer number of\n pixels, or a percentage of bar width (as a string ending in %).\n Defaults to `layout.barcornerradius`. In stack or relative\n barmode, the first trace to set cornerradius is used for the\n whole stack.\n\n The 'cornerradius' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["cornerradius"]\n\n @cornerradius.setter\n def cornerradius(self, val):\n self["cornerradius"] = val\n\n @property\n def line(self):\n """\n The 'line' property is an instance of Line\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.histogram.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.histogram.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 bars.\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 pattern(self):\n """\n Sets the pattern within the marker.\n\n The 'pattern' property is an instance of Pattern\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.histogram.marker.Pattern`\n - A dict of string/value properties that will be passed\n to the Pattern constructor\n\n Returns\n -------\n plotly.graph_objs.histogram.marker.Pattern\n """\n return self["pattern"]\n\n @pattern.setter\n def pattern(self, val):\n self["pattern"] = val\n\n @property\n def reversescale(self):\n """\n Reverses the color mapping if true. Has an effect only if in\n `marker.color` is set to a numerical array. If true,\n `marker.cmin` will correspond to the last color in the array\n and `marker.cmax` will correspond to the first color.\n\n The 'reversescale' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["reversescale"]\n\n @reversescale.setter\n def reversescale(self, val):\n self["reversescale"] = val\n\n @property\n def showscale(self):\n """\n Determines whether or not a colorbar is displayed for this\n trace. Has an effect only if in `marker.color` is set to a\n numerical array.\n\n The 'showscale' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showscale"]\n\n @showscale.setter\n def showscale(self, val):\n self["showscale"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n autocolorscale\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `marker.colorscale`. Has an effect only if in\n `marker.color` is set to a numerical array. In case\n `colorscale` is unspecified or `autocolorscale` is\n true, the default palette will be chosen according to\n whether numbers in the `color` array are all positive,\n all negative or mixed.\n cauto\n Determines whether or not the color domain is computed\n with respect to the input data (here in `marker.color`)\n or the bounds set in `marker.cmin` and `marker.cmax`\n Has an effect only if in `marker.color` is set to a\n numerical array. Defaults to `false` when `marker.cmin`\n and `marker.cmax` are set by the user.\n cmax\n Sets the upper bound of the color domain. Has an effect\n only if in `marker.color` is set to a numerical array.\n Value should have the same units as in `marker.color`\n and if set, `marker.cmin` must be set as well.\n cmid\n Sets the mid-point of the color domain by scaling\n `marker.cmin` and/or `marker.cmax` to be equidistant to\n this point. Has an effect only if in `marker.color` is\n set to a numerical array. Value should have the same\n units as in `marker.color`. Has no effect when\n `marker.cauto` is `false`.\n cmin\n Sets the lower bound of the color domain. Has an effect\n only if in `marker.color` is set to a numerical array.\n Value should have the same units as in `marker.color`\n and if set, `marker.cmax` must be set as well.\n color\n Sets the marker color. It accepts either a specific\n color or an array of numbers that are mapped to the\n colorscale relative to the max and min values of the\n array or relative to `marker.cmin` and `marker.cmax` if\n set.\n coloraxis\n Sets a reference to a shared color axis. References to\n these shared color axes are "coloraxis", "coloraxis2",\n "coloraxis3", etc. Settings for these shared color axes\n are set in the layout, under `layout.coloraxis`,\n `layout.coloraxis2`, etc. Note that multiple color\n scales can be linked to the same color axis.\n colorbar\n :class:`plotly.graph_objects.histogram.marker.ColorBar`\n instance or dict with compatible properties\n colorscale\n Sets the colorscale. Has an effect only if in\n `marker.color` is set to a numerical array. The\n colorscale must be an array containing arrays mapping a\n normalized value to an rgb, rgba, hex, hsl, hsv, or\n named color string. At minimum, a mapping for the\n lowest (0) and highest (1) values are required. For\n example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.\n To control the bounds of the colorscale in color space,\n use `marker.cmin` and `marker.cmax`. Alternatively,\n `colorscale` may be a palette name string of the\n following list: Blackbody,Bluered,Blues,Cividis,Earth,E\n lectric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd\n Bu,Reds,Viridis,YlGnBu,YlOrRd.\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n cornerradius\n Sets the rounding of corners. May be an integer number\n of pixels, or a percentage of bar width (as a string\n ending in %). Defaults to `layout.barcornerradius`. In\n stack or relative barmode, the first trace to set\n cornerradius is used for the whole stack.\n line\n :class:`plotly.graph_objects.histogram.marker.Line`\n instance or dict with compatible properties\n opacity\n Sets the opacity of the bars.\n opacitysrc\n Sets the source reference on Chart Studio Cloud for\n `opacity`.\n pattern\n Sets the pattern within the marker.\n reversescale\n Reverses the color mapping if true. Has an effect only\n if in `marker.color` is set to a numerical array. If\n true, `marker.cmin` will correspond to the last color\n in the array and `marker.cmax` will correspond to the\n first color.\n showscale\n Determines whether or not a colorbar is displayed for\n this trace. Has an effect only if in `marker.color` is\n set to a numerical array.\n """\n\n def __init__(\n self,\n arg=None,\n autocolorscale=None,\n cauto=None,\n cmax=None,\n cmid=None,\n cmin=None,\n color=None,\n coloraxis=None,\n colorbar=None,\n colorscale=None,\n colorsrc=None,\n cornerradius=None,\n line=None,\n opacity=None,\n opacitysrc=None,\n pattern=None,\n reversescale=None,\n showscale=None,\n **kwargs,\n ):\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.histogram.Marker`\n autocolorscale\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `marker.colorscale`. Has an effect only if in\n `marker.color` is set to a numerical array. In case\n `colorscale` is unspecified or `autocolorscale` is\n true, the default palette will be chosen according to\n whether numbers in the `color` array are all positive,\n all negative or mixed.\n cauto\n Determines whether or not the color domain is computed\n with respect to the input data (here in `marker.color`)\n or the bounds set in `marker.cmin` and `marker.cmax`\n Has an effect only if in `marker.color` is set to a\n numerical array. Defaults to `false` when `marker.cmin`\n and `marker.cmax` are set by the user.\n cmax\n Sets the upper bound of the color domain. Has an effect\n only if in `marker.color` is set to a numerical array.\n Value should have the same units as in `marker.color`\n and if set, `marker.cmin` must be set as well.\n cmid\n Sets the mid-point of the color domain by scaling\n `marker.cmin` and/or `marker.cmax` to be equidistant to\n this point. Has an effect only if in `marker.color` is\n set to a numerical array. Value should have the same\n units as in `marker.color`. Has no effect when\n `marker.cauto` is `false`.\n cmin\n Sets the lower bound of the color domain. Has an effect\n only if in `marker.color` is set to a numerical array.\n Value should have the same units as in `marker.color`\n and if set, `marker.cmax` must be set as well.\n color\n Sets the marker color. It accepts either a specific\n color or an array of numbers that are mapped to the\n colorscale relative to the max and min values of the\n array or relative to `marker.cmin` and `marker.cmax` if\n set.\n coloraxis\n Sets a reference to a shared color axis. References to\n these shared color axes are "coloraxis", "coloraxis2",\n "coloraxis3", etc. Settings for these shared color axes\n are set in the layout, under `layout.coloraxis`,\n `layout.coloraxis2`, etc. Note that multiple color\n scales can be linked to the same color axis.\n colorbar\n :class:`plotly.graph_objects.histogram.marker.ColorBar`\n instance or dict with compatible properties\n colorscale\n Sets the colorscale. Has an effect only if in\n `marker.color` is set to a numerical array. The\n colorscale must be an array containing arrays mapping a\n normalized value to an rgb, rgba, hex, hsl, hsv, or\n named color string. At minimum, a mapping for the\n lowest (0) and highest (1) values are required. For\n example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.\n To control the bounds of the colorscale in color space,\n use `marker.cmin` and `marker.cmax`. Alternatively,\n `colorscale` may be a palette name string of the\n following list: Blackbody,Bluered,Blues,Cividis,Earth,E\n lectric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd\n Bu,Reds,Viridis,YlGnBu,YlOrRd.\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n cornerradius\n Sets the rounding of corners. May be an integer number\n of pixels, or a percentage of bar width (as a string\n ending in %). Defaults to `layout.barcornerradius`. In\n stack or relative barmode, the first trace to set\n cornerradius is used for the whole stack.\n line\n :class:`plotly.graph_objects.histogram.marker.Line`\n instance or dict with compatible properties\n opacity\n Sets the opacity of the bars.\n opacitysrc\n Sets the source reference on Chart Studio Cloud for\n `opacity`.\n pattern\n Sets the pattern within the marker.\n reversescale\n Reverses the color mapping if true. Has an effect only\n if in `marker.color` is set to a numerical array. If\n true, `marker.cmin` will correspond to the last color\n in the array and `marker.cmax` will correspond to the\n first color.\n showscale\n Determines whether or not a colorbar is displayed for\n this trace. Has an effect only if in `marker.color` is\n set to a numerical array.\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.histogram.Marker\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.Marker`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("autocolorscale", arg, autocolorscale)\n self._set_property("cauto", arg, cauto)\n self._set_property("cmax", arg, cmax)\n self._set_property("cmid", arg, cmid)\n self._set_property("cmin", arg, cmin)\n self._set_property("color", arg, color)\n self._set_property("coloraxis", arg, coloraxis)\n self._set_property("colorbar", arg, colorbar)\n self._set_property("colorscale", arg, colorscale)\n self._set_property("colorsrc", arg, colorsrc)\n self._set_property("cornerradius", arg, cornerradius)\n self._set_property("line", arg, line)\n self._set_property("opacity", arg, opacity)\n self._set_property("opacitysrc", arg, opacitysrc)\n self._set_property("pattern", arg, pattern)\n self._set_property("reversescale", arg, reversescale)\n self._set_property("showscale", arg, showscale)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\_marker.py
_marker.py
Python
25,231
0.95
0.150146
0.004918
vue-tools
680
2023-09-19T04:17:06.087037
GPL-3.0
false
125343e758f4c5d43cd46b5298be456a
# --- 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 Outsidetextfont(_BaseTraceHierarchyType):\n _parent_path_str = "histogram"\n _path_str = "histogram.outsidetextfont"\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 Outsidetextfont object\n\n Sets the font used for `text` lying outside the bar.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.histogram.Outsidetextfont`\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 Outsidetextfont\n """\n super().__init__("outsidetextfont")\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.histogram.Outsidetextfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.Outsidetextfont`""")\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\histogram\_outsidetextfont.py
_outsidetextfont.py
Python
9,955
0.95
0.107784
0.010526
awesome-app
790
2024-07-01T23:02:21.153389
GPL-3.0
false
637e03113b279f6fd7e27081b73cda3f
# --- 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 = "histogram"\n _path_str = "histogram.selected"\n _valid_props = {"marker", "textfont"}\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.histogram.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.histogram.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 textfont(self):\n """\n The 'textfont' property is an instance of Textfont\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.histogram.selected.Textfont`\n - A dict of string/value properties that will be passed\n to the Textfont constructor\n\n Returns\n -------\n plotly.graph_objs.histogram.selected.Textfont\n """\n return self["textfont"]\n\n @textfont.setter\n def textfont(self, val):\n self["textfont"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n marker\n :class:`plotly.graph_objects.histogram.selected.Marker`\n instance or dict with compatible properties\n textfont\n :class:`plotly.graph_objects.histogram.selected.Textfon\n t` instance or dict with compatible properties\n """\n\n def __init__(self, arg=None, marker=None, textfont=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.histogram.Selected`\n marker\n :class:`plotly.graph_objects.histogram.selected.Marker`\n instance or dict with compatible properties\n textfont\n :class:`plotly.graph_objects.histogram.selected.Textfon\n t` 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.histogram.Selected\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.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._set_property("textfont", arg, textfont)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\_selected.py
_selected.py
Python
3,346
0.95
0.160377
0.022222
python-kit
594
2024-11-26T14:10:32.498412
BSD-3-Clause
false
70fe4d079340d1dd87e268184abc0ab0
# --- 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 = "histogram"\n _path_str = "histogram.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.histogram.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.histogram.Stream\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.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\histogram\_stream.py
_stream.py
Python
3,521
0.95
0.122807
0.020833
python-kit
706
2025-03-07T15:26:17.338158
Apache-2.0
false
1ec1db349e92162a416a26ecc905548f
# --- 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 Textfont(_BaseTraceHierarchyType):\n _parent_path_str = "histogram"\n _path_str = "histogram.textfont"\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 Textfont object\n\n Sets the text font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.histogram.Textfont`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n 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 Textfont\n """\n super().__init__("textfont")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.histogram.Textfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.Textfont`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("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\histogram\_textfont.py
_textfont.py
Python
9,866
0.95
0.10479
0.010526
vue-tools
874
2024-02-21T07:57:13.720907
BSD-3-Clause
false
31f55bcd757c7dd5f4e84e3e3557bfc8
# --- 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 = "histogram"\n _path_str = "histogram.unselected"\n _valid_props = {"marker", "textfont"}\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.histogram.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.histogram.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 textfont(self):\n """\n The 'textfont' property is an instance of Textfont\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.histogram.unselected.Textfont`\n - A dict of string/value properties that will be passed\n to the Textfont constructor\n\n Returns\n -------\n plotly.graph_objs.histogram.unselected.Textfont\n """\n return self["textfont"]\n\n @textfont.setter\n def textfont(self, val):\n self["textfont"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n marker\n :class:`plotly.graph_objects.histogram.unselected.Marke\n r` instance or dict with compatible properties\n textfont\n :class:`plotly.graph_objects.histogram.unselected.Textf\n ont` instance or dict with compatible properties\n """\n\n def __init__(self, arg=None, marker=None, textfont=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.histogram.Unselected`\n marker\n :class:`plotly.graph_objects.histogram.unselected.Marke\n r` instance or dict with compatible properties\n textfont\n :class:`plotly.graph_objects.histogram.unselected.Textf\n ont` 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.histogram.Unselected\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.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._set_property("textfont", arg, textfont)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\_unselected.py
_unselected.py
Python
3,380
0.95
0.160377
0.022222
python-kit
226
2025-01-21T00:31:29.578034
BSD-3-Clause
false
d9eac175ada7da1ef37ce291cf4abb19
# --- 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 XBins(_BaseTraceHierarchyType):\n _parent_path_str = "histogram"\n _path_str = "histogram.xbins"\n _valid_props = {"end", "size", "start"}\n\n @property\n def end(self):\n """\n Sets the end value for the x axis bins. The last bin may not\n end exactly at this value, we increment the bin edge by `size`\n from `start` until we reach or exceed `end`. Defaults to the\n maximum data value. Like `start`, for dates use a date string,\n and for category data `end` is based on the category serial\n numbers.\n\n The 'end' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["end"]\n\n @end.setter\n def end(self, val):\n self["end"] = val\n\n @property\n def size(self):\n """\n Sets the size of each x axis bin. Default behavior: If `nbinsx`\n is 0 or omitted, we choose a nice round bin size such that the\n number of bins is about the same as the typical number of\n samples in each bin. If `nbinsx` is provided, we choose a nice\n round bin size giving no more than that many bins. For date\n data, use milliseconds or "M<n>" for months, as in\n `axis.dtick`. For category data, the number of categories to\n bin together (always defaults to 1). If multiple non-overlaying\n histograms share a subplot, the first explicit `size` is used\n and all others discarded. If no `size` is provided,the sample\n data from all traces is combined to determine `size` as\n described above.\n\n The 'size' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def start(self):\n """\n Sets the starting value for the x axis bins. Defaults to the\n minimum data value, shifted down if necessary to make nice\n round values and to remove ambiguous bin edges. For example, if\n most of the data is integers we shift the bin edges 0.5 down,\n so a `size` of 5 would have a default `start` of -0.5, so it is\n clear that 0-4 are in the first bin, 5-9 in the second, but\n continuous data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date string.\n For category data, `start` is based on the category serial\n numbers, and defaults to -0.5. If multiple non-overlaying\n histograms share a subplot, the first explicit `start` is used\n exactly and all others are shifted down (if necessary) to\n differ from that one by an integer number of bins.\n\n The 'start' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["start"]\n\n @start.setter\n def start(self, val):\n self["start"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n end\n Sets the end value for the x axis bins. The last bin\n may not end exactly at this value, we increment the bin\n edge by `size` from `start` until we reach or exceed\n `end`. Defaults to the maximum data value. Like\n `start`, for dates use a date string, and for category\n data `end` is based on the category serial numbers.\n size\n Sets the size of each x axis bin. Default behavior: If\n `nbinsx` is 0 or omitted, we choose a nice round bin\n size such that the number of bins is about the same as\n the typical number of samples in each bin. If `nbinsx`\n is provided, we choose a nice round bin size giving no\n more than that many bins. For date data, use\n milliseconds or "M<n>" for months, as in `axis.dtick`.\n For category data, the number of categories to bin\n together (always defaults to 1). If multiple non-\n overlaying histograms share a subplot, the first\n explicit `size` is used and all others discarded. If no\n `size` is provided,the sample data from all traces is\n combined to determine `size` as described above.\n start\n Sets the starting value for the x axis bins. Defaults\n to the minimum data value, shifted down if necessary to\n make nice round values and to remove ambiguous bin\n edges. For example, if most of the data is integers we\n shift the bin edges 0.5 down, so a `size` of 5 would\n have a default `start` of -0.5, so it is clear that 0-4\n are in the first bin, 5-9 in the second, but continuous\n data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date\n string. For category data, `start` is based on the\n category serial numbers, and defaults to -0.5. If\n multiple non-overlaying histograms share a subplot, the\n first explicit `start` is used exactly and all others\n are shifted down (if necessary) to differ from that one\n by an integer number of bins.\n """\n\n def __init__(self, arg=None, end=None, size=None, start=None, **kwargs):\n """\n Construct a new XBins 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.histogram.XBins`\n end\n Sets the end value for the x axis bins. The last bin\n may not end exactly at this value, we increment the bin\n edge by `size` from `start` until we reach or exceed\n `end`. Defaults to the maximum data value. Like\n `start`, for dates use a date string, and for category\n data `end` is based on the category serial numbers.\n size\n Sets the size of each x axis bin. Default behavior: If\n `nbinsx` is 0 or omitted, we choose a nice round bin\n size such that the number of bins is about the same as\n the typical number of samples in each bin. If `nbinsx`\n is provided, we choose a nice round bin size giving no\n more than that many bins. For date data, use\n milliseconds or "M<n>" for months, as in `axis.dtick`.\n For category data, the number of categories to bin\n together (always defaults to 1). If multiple non-\n overlaying histograms share a subplot, the first\n explicit `size` is used and all others discarded. If no\n `size` is provided,the sample data from all traces is\n combined to determine `size` as described above.\n start\n Sets the starting value for the x axis bins. Defaults\n to the minimum data value, shifted down if necessary to\n make nice round values and to remove ambiguous bin\n edges. For example, if most of the data is integers we\n shift the bin edges 0.5 down, so a `size` of 5 would\n have a default `start` of -0.5, so it is clear that 0-4\n are in the first bin, 5-9 in the second, but continuous\n data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date\n string. For category data, `start` is based on the\n category serial numbers, and defaults to -0.5. If\n multiple non-overlaying histograms share a subplot, the\n first explicit `start` is used exactly and all others\n are shifted down (if necessary) to differ from that one\n by an integer number of bins.\n\n Returns\n -------\n XBins\n """\n super().__init__("xbins")\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.histogram.XBins\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.XBins`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("end", arg, end)\n self._set_property("size", arg, size)\n self._set_property("start", arg, start)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\_xbins.py
_xbins.py
Python
8,985
0.95
0.17619
0.010638
python-kit
979
2023-09-02T03:08:43.914966
BSD-3-Clause
false
bc56ad2f043f64e5f591e85c853c0372
# --- 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 YBins(_BaseTraceHierarchyType):\n _parent_path_str = "histogram"\n _path_str = "histogram.ybins"\n _valid_props = {"end", "size", "start"}\n\n @property\n def end(self):\n """\n Sets the end value for the y axis bins. The last bin may not\n end exactly at this value, we increment the bin edge by `size`\n from `start` until we reach or exceed `end`. Defaults to the\n maximum data value. Like `start`, for dates use a date string,\n and for category data `end` is based on the category serial\n numbers.\n\n The 'end' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["end"]\n\n @end.setter\n def end(self, val):\n self["end"] = val\n\n @property\n def size(self):\n """\n Sets the size of each y axis bin. Default behavior: If `nbinsy`\n is 0 or omitted, we choose a nice round bin size such that the\n number of bins is about the same as the typical number of\n samples in each bin. If `nbinsy` is provided, we choose a nice\n round bin size giving no more than that many bins. For date\n data, use milliseconds or "M<n>" for months, as in\n `axis.dtick`. For category data, the number of categories to\n bin together (always defaults to 1). If multiple non-overlaying\n histograms share a subplot, the first explicit `size` is used\n and all others discarded. If no `size` is provided,the sample\n data from all traces is combined to determine `size` as\n described above.\n\n The 'size' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def start(self):\n """\n Sets the starting value for the y axis bins. Defaults to the\n minimum data value, shifted down if necessary to make nice\n round values and to remove ambiguous bin edges. For example, if\n most of the data is integers we shift the bin edges 0.5 down,\n so a `size` of 5 would have a default `start` of -0.5, so it is\n clear that 0-4 are in the first bin, 5-9 in the second, but\n continuous data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date string.\n For category data, `start` is based on the category serial\n numbers, and defaults to -0.5. If multiple non-overlaying\n histograms share a subplot, the first explicit `start` is used\n exactly and all others are shifted down (if necessary) to\n differ from that one by an integer number of bins.\n\n The 'start' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["start"]\n\n @start.setter\n def start(self, val):\n self["start"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n end\n Sets the end value for the y axis bins. The last bin\n may not end exactly at this value, we increment the bin\n edge by `size` from `start` until we reach or exceed\n `end`. Defaults to the maximum data value. Like\n `start`, for dates use a date string, and for category\n data `end` is based on the category serial numbers.\n size\n Sets the size of each y axis bin. Default behavior: If\n `nbinsy` is 0 or omitted, we choose a nice round bin\n size such that the number of bins is about the same as\n the typical number of samples in each bin. If `nbinsy`\n is provided, we choose a nice round bin size giving no\n more than that many bins. For date data, use\n milliseconds or "M<n>" for months, as in `axis.dtick`.\n For category data, the number of categories to bin\n together (always defaults to 1). If multiple non-\n overlaying histograms share a subplot, the first\n explicit `size` is used and all others discarded. If no\n `size` is provided,the sample data from all traces is\n combined to determine `size` as described above.\n start\n Sets the starting value for the y axis bins. Defaults\n to the minimum data value, shifted down if necessary to\n make nice round values and to remove ambiguous bin\n edges. For example, if most of the data is integers we\n shift the bin edges 0.5 down, so a `size` of 5 would\n have a default `start` of -0.5, so it is clear that 0-4\n are in the first bin, 5-9 in the second, but continuous\n data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date\n string. For category data, `start` is based on the\n category serial numbers, and defaults to -0.5. If\n multiple non-overlaying histograms share a subplot, the\n first explicit `start` is used exactly and all others\n are shifted down (if necessary) to differ from that one\n by an integer number of bins.\n """\n\n def __init__(self, arg=None, end=None, size=None, start=None, **kwargs):\n """\n Construct a new YBins 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.histogram.YBins`\n end\n Sets the end value for the y axis bins. The last bin\n may not end exactly at this value, we increment the bin\n edge by `size` from `start` until we reach or exceed\n `end`. Defaults to the maximum data value. Like\n `start`, for dates use a date string, and for category\n data `end` is based on the category serial numbers.\n size\n Sets the size of each y axis bin. Default behavior: If\n `nbinsy` is 0 or omitted, we choose a nice round bin\n size such that the number of bins is about the same as\n the typical number of samples in each bin. If `nbinsy`\n is provided, we choose a nice round bin size giving no\n more than that many bins. For date data, use\n milliseconds or "M<n>" for months, as in `axis.dtick`.\n For category data, the number of categories to bin\n together (always defaults to 1). If multiple non-\n overlaying histograms share a subplot, the first\n explicit `size` is used and all others discarded. If no\n `size` is provided,the sample data from all traces is\n combined to determine `size` as described above.\n start\n Sets the starting value for the y axis bins. Defaults\n to the minimum data value, shifted down if necessary to\n make nice round values and to remove ambiguous bin\n edges. For example, if most of the data is integers we\n shift the bin edges 0.5 down, so a `size` of 5 would\n have a default `start` of -0.5, so it is clear that 0-4\n are in the first bin, 5-9 in the second, but continuous\n data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date\n string. For category data, `start` is based on the\n category serial numbers, and defaults to -0.5. If\n multiple non-overlaying histograms share a subplot, the\n first explicit `start` is used exactly and all others\n are shifted down (if necessary) to differ from that one\n by an integer number of bins.\n\n Returns\n -------\n YBins\n """\n super().__init__("ybins")\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.histogram.YBins\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.YBins`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("end", arg, end)\n self._set_property("size", arg, size)\n self._set_property("start", arg, start)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\_ybins.py
_ybins.py
Python
8,985
0.95
0.17619
0.010638
awesome-app
544
2023-12-16T18:45:00.752493
MIT
false
ba92c020fbdbfe92184f717256e36ee9
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._cumulative import Cumulative\n from ._error_x import ErrorX\n from ._error_y import ErrorY\n from ._hoverlabel import Hoverlabel\n from ._insidetextfont import Insidetextfont\n from ._legendgrouptitle import Legendgrouptitle\n from ._marker import Marker\n from ._outsidetextfont import Outsidetextfont\n from ._selected import Selected\n from ._stream import Stream\n from ._textfont import Textfont\n from ._unselected import Unselected\n from ._xbins import XBins\n from ._ybins import YBins\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 [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"],\n [\n "._cumulative.Cumulative",\n "._error_x.ErrorX",\n "._error_y.ErrorY",\n "._hoverlabel.Hoverlabel",\n "._insidetextfont.Insidetextfont",\n "._legendgrouptitle.Legendgrouptitle",\n "._marker.Marker",\n "._outsidetextfont.Outsidetextfont",\n "._selected.Selected",\n "._stream.Stream",\n "._textfont.Textfont",\n "._unselected.Unselected",\n "._xbins.XBins",\n "._ybins.YBins",\n ],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__init__.py
__init__.py
Python
1,504
0.85
0.021739
0
vue-tools
403
2024-09-03T16:41:18.763193
MIT
false
22371bf8f1c4c9c226f9857759fc67a6
# --- 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 = "histogram.hoverlabel"\n _path_str = "histogram.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.histogram.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.histogram.hoverlabel.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.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\histogram\hoverlabel\_font.py
_font.py
Python
17,153
0.95
0.136286
0.005976
react-lib
832
2023-08-28T13:43:26.565423
GPL-3.0
false
6e045d4dda32f85e5589ca015f75d988
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\histogram\hoverlabel\__init__.py
__init__.py
Python
237
0.85
0.111111
0
react-lib
933
2023-09-18T11:11:42.521393
Apache-2.0
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\hoverlabel\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
18,401
0.8
0.1
0
awesome-app
909
2023-09-08T19:19:51.141028
MIT
false
1ccffb7cbfb321ca49f159b409186726
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\hoverlabel\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
506
0.85
0
0
awesome-app
370
2024-11-01T11:25:53.616070
GPL-3.0
false
98abcef43ee4d6923c2709c1664c909e
# --- 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 = "histogram.legendgrouptitle"\n _path_str = "histogram.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.histogram.lege\n ndgrouptitle.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.histogram.legendgrouptitle.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.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\histogram\legendgrouptitle\_font.py
_font.py
Python
9,937
0.95
0.10479
0.010526
awesome-app
605
2023-07-16T22:13:36.758486
GPL-3.0
false
37a8b41ce3269227b4343e388e6fc320
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\histogram\legendgrouptitle\__init__.py
__init__.py
Python
237
0.85
0.111111
0
awesome-app
823
2023-10-31T03:06:34.571343
BSD-3-Clause
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\legendgrouptitle\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,945
0.8
0.048583
0
react-lib
730
2023-08-18T22:27:08.379642
MIT
false
9ea64c13bae0933486aa6d26ebe08d05
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\legendgrouptitle\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
512
0.85
0
0
awesome-app
210
2025-06-13T22:58:20.198610
MIT
false
dbc24fb7ed649934a5d2d613bb93d2df
# --- 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 = "histogram.marker"\n _path_str = "histogram.marker.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.histogram.marker.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.histogram.marker.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.histogram.marker.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.histogram.marker.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.histogram.mark\n er.colorbar.tickformatstopdefaults), sets the default property\n values to use for elements of\n histogram.marker.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.histogram.marker.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.histogram.marker.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.histogram.marker.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.histogram.marker.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.histogram.marke\n r.colorbar.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.histog\n ram.marker.colorbar.tickformatstopdefaults), sets the\n default property values to use for elements of\n histogram.marker.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.histogram.marker.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.histogram.marker.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.histogram.marke\n r.colorbar.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.histog\n ram.marker.colorbar.tickformatstopdefaults), sets the\n default property values to use for elements of\n histogram.marker.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.histogram.marker.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.histogram.marker.ColorBar\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.marker.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\histogram\marker\_colorbar.py
_colorbar.py
Python
60,554
0.75
0.116144
0.001976
vue-tools
316
2025-05-27T21:37:51.238770
GPL-3.0
false
62428a6f50b92c543f141b06d602174d
# --- 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 = "histogram.marker"\n _path_str = "histogram.marker.line"\n _valid_props = {\n "autocolorscale",\n "cauto",\n "cmax",\n "cmid",\n "cmin",\n "color",\n "coloraxis",\n "colorscale",\n "colorsrc",\n "reversescale",\n "width",\n "widthsrc",\n }\n\n @property\n def autocolorscale(self):\n """\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `marker.line.colorscale`. Has an effect only if in\n `marker.line.color` is set to a numerical array. In case\n `colorscale` is unspecified or `autocolorscale` is true, the\n default palette will be chosen according to whether numbers in\n the `color` array are all positive, all negative or mixed.\n\n The 'autocolorscale' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["autocolorscale"]\n\n @autocolorscale.setter\n def autocolorscale(self, val):\n self["autocolorscale"] = val\n\n @property\n def cauto(self):\n """\n Determines whether or not the color domain is computed with\n respect to the input data (here in `marker.line.color`) or the\n bounds set in `marker.line.cmin` and `marker.line.cmax` Has an\n effect only if in `marker.line.color` is set to a numerical\n array. Defaults to `false` when `marker.line.cmin` and\n `marker.line.cmax` are set by the user.\n\n The 'cauto' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["cauto"]\n\n @cauto.setter\n def cauto(self, val):\n self["cauto"] = val\n\n @property\n def cmax(self):\n """\n Sets the upper bound of the color domain. Has an effect only if\n in `marker.line.color` is set to a numerical array. Value\n should have the same units as in `marker.line.color` and if\n set, `marker.line.cmin` must be set as well.\n\n The 'cmax' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["cmax"]\n\n @cmax.setter\n def cmax(self, val):\n self["cmax"] = val\n\n @property\n def cmid(self):\n """\n Sets the mid-point of the color domain by scaling\n `marker.line.cmin` and/or `marker.line.cmax` to be equidistant\n to this point. Has an effect only if in `marker.line.color` is\n set to a numerical array. Value should have the same units as\n in `marker.line.color`. Has no effect when `marker.line.cauto`\n is `false`.\n\n The 'cmid' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["cmid"]\n\n @cmid.setter\n def cmid(self, val):\n self["cmid"] = val\n\n @property\n def cmin(self):\n """\n Sets the lower bound of the color domain. Has an effect only if\n in `marker.line.color` is set to a numerical array. Value\n should have the same units as in `marker.line.color` and if\n set, `marker.line.cmax` must be set as well.\n\n The 'cmin' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["cmin"]\n\n @cmin.setter\n def cmin(self, val):\n self["cmin"] = val\n\n @property\n def 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 number that will be interpreted as a color\n according to histogram.marker.line.colorscale\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 coloraxis(self):\n """\n Sets a reference to a shared color axis. References to these\n shared color axes are "coloraxis", "coloraxis2", "coloraxis3",\n etc. Settings for these shared color axes are set in the\n layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.\n Note that multiple color scales can be linked to the same color\n axis.\n\n The 'coloraxis' property is an identifier of a particular\n subplot, of type 'coloraxis', that may be specified as the string 'coloraxis'\n optionally followed by an integer >= 1\n (e.g. 'coloraxis', 'coloraxis1', 'coloraxis2', 'coloraxis3', etc.)\n\n Returns\n -------\n str\n """\n return self["coloraxis"]\n\n @coloraxis.setter\n def coloraxis(self, val):\n self["coloraxis"] = val\n\n @property\n def colorscale(self):\n """\n Sets the colorscale. Has an effect only if in\n `marker.line.color` is set to a numerical array. The colorscale\n must be an array containing arrays mapping a normalized value\n to an rgb, rgba, hex, hsl, hsv, or named color string. At\n minimum, a mapping for the lowest (0) and highest (1) values\n are required. For example, `[[0, 'rgb(0,0,255)'], [1,\n 'rgb(255,0,0)']]`. To control the bounds of the colorscale in\n color space, use `marker.line.cmin` and `marker.line.cmax`.\n Alternatively, `colorscale` may be a palette name string of the\n following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,\n Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,\n YlGnBu,YlOrRd.\n\n The 'colorscale' property is a colorscale and may be\n specified as:\n - A list of colors that will be spaced evenly to create the colorscale.\n Many predefined colorscale lists are included in the sequential, diverging,\n and cyclical modules in the plotly.colors package.\n - A list of 2-element lists where the first element is the\n normalized color level value (starting at 0 and ending at 1),\n and the second item is a valid color string.\n (e.g. [[0, 'green'], [0.5, 'red'], [1.0, 'rgb(0, 0, 255)']])\n - One of the following named colorscales:\n ['aggrnyl', 'agsunset', 'algae', 'amp', 'armyrose', 'balance',\n 'blackbody', 'bluered', 'blues', 'blugrn', 'bluyl', 'brbg',\n 'brwnyl', 'bugn', 'bupu', 'burg', 'burgyl', 'cividis', 'curl',\n 'darkmint', 'deep', 'delta', 'dense', 'earth', 'edge', 'electric',\n 'emrld', 'fall', 'geyser', 'gnbu', 'gray', 'greens', 'greys',\n 'haline', 'hot', 'hsv', 'ice', 'icefire', 'inferno', 'jet',\n 'magenta', 'magma', 'matter', 'mint', 'mrybm', 'mygbm', 'oranges',\n 'orrd', 'oryel', 'oxy', 'peach', 'phase', 'picnic', 'pinkyl',\n 'piyg', 'plasma', 'plotly3', 'portland', 'prgn', 'pubu', 'pubugn',\n 'puor', 'purd', 'purp', 'purples', 'purpor', 'rainbow', 'rdbu',\n 'rdgy', 'rdpu', 'rdylbu', 'rdylgn', 'redor', 'reds', 'solar',\n 'spectral', 'speed', 'sunset', 'sunsetdark', 'teal', 'tealgrn',\n 'tealrose', 'tempo', 'temps', 'thermal', 'tropic', 'turbid',\n 'turbo', 'twilight', 'viridis', 'ylgn', 'ylgnbu', 'ylorbr',\n 'ylorrd'].\n Appending '_r' to a named colorscale reverses it.\n\n Returns\n -------\n str\n """\n return self["colorscale"]\n\n @colorscale.setter\n def colorscale(self, val):\n self["colorscale"] = val\n\n @property\n def 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 reversescale(self):\n """\n Reverses the color mapping if true. Has an effect only if in\n `marker.line.color` is set to a numerical array. If true,\n `marker.line.cmin` will correspond to the last color in the\n array and `marker.line.cmax` will correspond to the first\n color.\n\n The 'reversescale' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["reversescale"]\n\n @reversescale.setter\n def reversescale(self, val):\n self["reversescale"] = val\n\n @property\n def 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 autocolorscale\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `marker.line.colorscale`. Has an effect only if in\n `marker.line.color` is set to a numerical array. In\n case `colorscale` is unspecified or `autocolorscale` is\n true, the default palette will be chosen according to\n whether numbers in the `color` array are all positive,\n all negative or mixed.\n cauto\n Determines whether or not the color domain is computed\n with respect to the input data (here in\n `marker.line.color`) or the bounds set in\n `marker.line.cmin` and `marker.line.cmax` Has an effect\n only if in `marker.line.color` is set to a numerical\n array. Defaults to `false` when `marker.line.cmin` and\n `marker.line.cmax` are set by the user.\n cmax\n Sets the upper bound of the color domain. Has an effect\n only if in `marker.line.color` is set to a numerical\n array. Value should have the same units as in\n `marker.line.color` and if set, `marker.line.cmin` must\n be set as well.\n cmid\n Sets the mid-point of the color domain by scaling\n `marker.line.cmin` and/or `marker.line.cmax` to be\n equidistant to this point. Has an effect only if in\n `marker.line.color` is set to a numerical array. Value\n should have the same units as in `marker.line.color`.\n Has no effect when `marker.line.cauto` is `false`.\n cmin\n Sets the lower bound of the color domain. Has an effect\n only if in `marker.line.color` is set to a numerical\n array. Value should have the same units as in\n `marker.line.color` and if set, `marker.line.cmax` must\n be set as well.\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 coloraxis\n Sets a reference to a shared color axis. References to\n these shared color axes are "coloraxis", "coloraxis2",\n "coloraxis3", etc. Settings for these shared color axes\n are set in the layout, under `layout.coloraxis`,\n `layout.coloraxis2`, etc. Note that multiple color\n scales can be linked to the same color axis.\n colorscale\n Sets the colorscale. Has an effect only if in\n `marker.line.color` is set to a numerical array. The\n colorscale must be an array containing arrays mapping a\n normalized value to an rgb, rgba, hex, hsl, hsv, or\n named color string. At minimum, a mapping for the\n lowest (0) and highest (1) values are required. For\n example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.\n To control the bounds of the colorscale in color space,\n use `marker.line.cmin` and `marker.line.cmax`.\n Alternatively, `colorscale` may be a palette name\n string of the following list: Blackbody,Bluered,Blues,C\n ividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portl\n and,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n reversescale\n Reverses the color mapping if true. Has an effect only\n if in `marker.line.color` is set to a numerical array.\n If true, `marker.line.cmin` will correspond to the last\n color in the array and `marker.line.cmax` will\n correspond to the first 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,\n arg=None,\n autocolorscale=None,\n cauto=None,\n cmax=None,\n cmid=None,\n cmin=None,\n color=None,\n coloraxis=None,\n colorscale=None,\n colorsrc=None,\n reversescale=None,\n width=None,\n widthsrc=None,\n **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.histogram.marker.Line`\n autocolorscale\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `marker.line.colorscale`. Has an effect only if in\n `marker.line.color` is set to a numerical array. In\n case `colorscale` is unspecified or `autocolorscale` is\n true, the default palette will be chosen according to\n whether numbers in the `color` array are all positive,\n all negative or mixed.\n cauto\n Determines whether or not the color domain is computed\n with respect to the input data (here in\n `marker.line.color`) or the bounds set in\n `marker.line.cmin` and `marker.line.cmax` Has an effect\n only if in `marker.line.color` is set to a numerical\n array. Defaults to `false` when `marker.line.cmin` and\n `marker.line.cmax` are set by the user.\n cmax\n Sets the upper bound of the color domain. Has an effect\n only if in `marker.line.color` is set to a numerical\n array. Value should have the same units as in\n `marker.line.color` and if set, `marker.line.cmin` must\n be set as well.\n cmid\n Sets the mid-point of the color domain by scaling\n `marker.line.cmin` and/or `marker.line.cmax` to be\n equidistant to this point. Has an effect only if in\n `marker.line.color` is set to a numerical array. Value\n should have the same units as in `marker.line.color`.\n Has no effect when `marker.line.cauto` is `false`.\n cmin\n Sets the lower bound of the color domain. Has an effect\n only if in `marker.line.color` is set to a numerical\n array. Value should have the same units as in\n `marker.line.color` and if set, `marker.line.cmax` must\n be set as well.\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 coloraxis\n Sets a reference to a shared color axis. References to\n these shared color axes are "coloraxis", "coloraxis2",\n "coloraxis3", etc. Settings for these shared color axes\n are set in the layout, under `layout.coloraxis`,\n `layout.coloraxis2`, etc. Note that multiple color\n scales can be linked to the same color axis.\n colorscale\n Sets the colorscale. Has an effect only if in\n `marker.line.color` is set to a numerical array. The\n colorscale must be an array containing arrays mapping a\n normalized value to an rgb, rgba, hex, hsl, hsv, or\n named color string. At minimum, a mapping for the\n lowest (0) and highest (1) values are required. For\n example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.\n To control the bounds of the colorscale in color space,\n use `marker.line.cmin` and `marker.line.cmax`.\n Alternatively, `colorscale` may be a palette name\n string of the following list: Blackbody,Bluered,Blues,C\n ividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portl\n and,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n reversescale\n Reverses the color mapping if true. Has an effect only\n if in `marker.line.color` is set to a numerical array.\n If true, `marker.line.cmin` will correspond to the last\n color in the array and `marker.line.cmax` will\n correspond to the first 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.histogram.marker.Line\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.marker.Line`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("autocolorscale", arg, autocolorscale)\n self._set_property("cauto", arg, cauto)\n self._set_property("cmax", arg, cmax)\n self._set_property("cmid", arg, cmid)\n self._set_property("cmin", arg, cmin)\n self._set_property("color", arg, color)\n self._set_property("coloraxis", arg, coloraxis)\n self._set_property("colorscale", arg, colorscale)\n self._set_property("colorsrc", arg, colorsrc)\n self._set_property("reversescale", arg, reversescale)\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\histogram\marker\_line.py
_line.py
Python
20,934
0.95
0.141026
0.006148
node-utils
755
2023-10-16T09:31:39.149009
Apache-2.0
false
31caf1743d54a992011c5f5da5ced5e3
# --- 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 Pattern(_BaseTraceHierarchyType):\n _parent_path_str = "histogram.marker"\n _path_str = "histogram.marker.pattern"\n _valid_props = {\n "bgcolor",\n "bgcolorsrc",\n "fgcolor",\n "fgcolorsrc",\n "fgopacity",\n "fillmode",\n "shape",\n "shapesrc",\n "size",\n "sizesrc",\n "solidity",\n "soliditysrc",\n }\n\n @property\n def bgcolor(self):\n """\n When there is no colorscale sets the color of background\n pattern fill. Defaults to a `marker.color` background when\n `fillmode` is "overlay". Otherwise, defaults to a transparent\n background.\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 fgcolor(self):\n """\n When there is no colorscale sets the color of foreground\n pattern fill. Defaults to a `marker.color` background when\n `fillmode` is "replace". Otherwise, defaults to dark grey or\n white to increase contrast with the `bgcolor`.\n\n The 'fgcolor' 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["fgcolor"]\n\n @fgcolor.setter\n def fgcolor(self, val):\n self["fgcolor"] = val\n\n @property\n def fgcolorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `fgcolor`.\n\n The 'fgcolorsrc' 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["fgcolorsrc"]\n\n @fgcolorsrc.setter\n def fgcolorsrc(self, val):\n self["fgcolorsrc"] = val\n\n @property\n def fgopacity(self):\n """\n Sets the opacity of the foreground pattern fill. Defaults to a\n 0.5 when `fillmode` is "overlay". Otherwise, defaults to 1.\n\n The 'fgopacity' 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["fgopacity"]\n\n @fgopacity.setter\n def fgopacity(self, val):\n self["fgopacity"] = val\n\n @property\n def fillmode(self):\n """\n Determines whether `marker.color` should be used as a default\n to `bgcolor` or a `fgcolor`.\n\n The 'fillmode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['replace', 'overlay']\n\n Returns\n -------\n Any\n """\n return self["fillmode"]\n\n @fillmode.setter\n def fillmode(self, val):\n self["fillmode"] = val\n\n @property\n def shape(self):\n """\n Sets the shape of the pattern fill. By default, no pattern is\n used for filling the area.\n\n The 'shape' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['', '/', '\\', 'x', '-', '|', '+', '.']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["shape"]\n\n @shape.setter\n def shape(self, val):\n self["shape"] = val\n\n @property\n def shapesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `shape`.\n\n The 'shapesrc' 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["shapesrc"]\n\n @shapesrc.setter\n def shapesrc(self, val):\n self["shapesrc"] = val\n\n @property\n def size(self):\n """\n Sets the size of unit squares of the pattern fill in pixels,\n which corresponds to the interval of repetition of the pattern.\n\n The 'size' 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["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 solidity(self):\n """\n Sets the solidity of the pattern fill. Solidity is roughly the\n fraction of the area filled by the pattern. Solidity of 0 shows\n only the background color without pattern and solidty of 1\n shows only the foreground color without pattern.\n\n The 'solidity' 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["solidity"]\n\n @solidity.setter\n def solidity(self, val):\n self["solidity"] = val\n\n @property\n def soliditysrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `solidity`.\n\n The 'soliditysrc' 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["soliditysrc"]\n\n @soliditysrc.setter\n def soliditysrc(self, val):\n self["soliditysrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n bgcolor\n When there is no colorscale sets the color of\n background pattern fill. Defaults to a `marker.color`\n background when `fillmode` is "overlay". Otherwise,\n defaults to a transparent background.\n bgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bgcolor`.\n fgcolor\n When there is no colorscale sets the color of\n foreground pattern fill. Defaults to a `marker.color`\n background when `fillmode` is "replace". Otherwise,\n defaults to dark grey or white to increase contrast\n with the `bgcolor`.\n fgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `fgcolor`.\n fgopacity\n Sets the opacity of the foreground pattern fill.\n Defaults to a 0.5 when `fillmode` is "overlay".\n Otherwise, defaults to 1.\n fillmode\n Determines whether `marker.color` should be used as a\n default to `bgcolor` or a `fgcolor`.\n shape\n Sets the shape of the pattern fill. By default, no\n pattern is used for filling the area.\n shapesrc\n Sets the source reference on Chart Studio Cloud for\n `shape`.\n size\n Sets the size of unit squares of the pattern fill in\n pixels, which corresponds to the interval of repetition\n of the pattern.\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n solidity\n Sets the solidity of the pattern fill. Solidity is\n roughly the fraction of the area filled by the pattern.\n Solidity of 0 shows only the background color without\n pattern and solidty of 1 shows only the foreground\n color without pattern.\n soliditysrc\n Sets the source reference on Chart Studio Cloud for\n `solidity`.\n """\n\n def __init__(\n self,\n arg=None,\n bgcolor=None,\n bgcolorsrc=None,\n fgcolor=None,\n fgcolorsrc=None,\n fgopacity=None,\n fillmode=None,\n shape=None,\n shapesrc=None,\n size=None,\n sizesrc=None,\n solidity=None,\n soliditysrc=None,\n **kwargs,\n ):\n """\n Construct a new Pattern object\n\n Sets the pattern within the marker.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.histogram.marker.Pattern`\n bgcolor\n When there is no colorscale sets the color of\n background pattern fill. Defaults to a `marker.color`\n background when `fillmode` is "overlay". Otherwise,\n defaults to a transparent background.\n bgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bgcolor`.\n fgcolor\n When there is no colorscale sets the color of\n foreground pattern fill. Defaults to a `marker.color`\n background when `fillmode` is "replace". Otherwise,\n defaults to dark grey or white to increase contrast\n with the `bgcolor`.\n fgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `fgcolor`.\n fgopacity\n Sets the opacity of the foreground pattern fill.\n Defaults to a 0.5 when `fillmode` is "overlay".\n Otherwise, defaults to 1.\n fillmode\n Determines whether `marker.color` should be used as a\n default to `bgcolor` or a `fgcolor`.\n shape\n Sets the shape of the pattern fill. By default, no\n pattern is used for filling the area.\n shapesrc\n Sets the source reference on Chart Studio Cloud for\n `shape`.\n size\n Sets the size of unit squares of the pattern fill in\n pixels, which corresponds to the interval of repetition\n of the pattern.\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n solidity\n Sets the solidity of the pattern fill. Solidity is\n roughly the fraction of the area filled by the pattern.\n Solidity of 0 shows only the background color without\n pattern and solidty of 1 shows only the foreground\n color without pattern.\n soliditysrc\n Sets the source reference on Chart Studio Cloud for\n `solidity`.\n\n Returns\n -------\n Pattern\n """\n super().__init__("pattern")\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.histogram.marker.Pattern\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.marker.Pattern`""")\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("bgcolorsrc", arg, bgcolorsrc)\n self._set_property("fgcolor", arg, fgcolor)\n self._set_property("fgcolorsrc", arg, fgcolorsrc)\n self._set_property("fgopacity", arg, fgopacity)\n self._set_property("fillmode", arg, fillmode)\n self._set_property("shape", arg, shape)\n self._set_property("shapesrc", arg, shapesrc)\n self._set_property("size", arg, size)\n self._set_property("sizesrc", arg, sizesrc)\n self._set_property("solidity", arg, solidity)\n self._set_property("soliditysrc", arg, soliditysrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\_pattern.py
_pattern.py
Python
13,448
0.95
0.117783
0.008021
awesome-app
872
2023-12-17T04:38:58.023535
Apache-2.0
false
a043b7b1ade967683e7d19b91980b11e
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._colorbar import ColorBar\n from ._line import Line\n from ._pattern import Pattern\n from . import colorbar\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".colorbar"],\n ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\__init__.py
__init__.py
Python
420
0.85
0.0625
0
node-utils
943
2023-10-13T09:43:17.604628
MIT
false
e4f446de64f21a130065a88e43704696
# --- 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 = "histogram.marker.colorbar"\n _path_str = "histogram.marker.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.histogram.mark\n er.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.histogram.marker.colorbar.Tickfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.marker.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\histogram\marker\colorbar\_tickfont.py
_tickfont.py
Python
9,964
0.95
0.10479
0.010526
vue-tools
36
2024-09-25T22:59:23.633631
MIT
false
fca34cf27e0bd2e75521388c54bd745e
# --- 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 = "histogram.marker.colorbar"\n _path_str = "histogram.marker.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.histogram.mark\n er.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.histogram.marker.colorbar.Tickformatstop\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.marker.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\histogram\marker\colorbar\_tickformatstop.py
_tickformatstop.py
Python
8,559
0.95
0.082988
0.019048
node-utils
469
2023-08-17T22:21:38.359967
MIT
false
3fb3fb25ab64e270a89ac262a084ebb0
# --- 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 = "histogram.marker.colorbar"\n _path_str = "histogram.marker.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.histogram.marker.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.histogram.marker.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.histogram.mark\n er.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.histogram.marker.colorbar.Title\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.marker.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\histogram\marker\colorbar\_title.py
_title.py
Python
4,035
0.95
0.147059
0.017544
python-kit
596
2023-07-14T10:19:18.475823
Apache-2.0
false
197ced5286fb3700bb80518fccd99c33
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\histogram\marker\colorbar\__init__.py
__init__.py
Python
446
0.85
0.0625
0
awesome-app
503
2025-05-15T16:53:05.838110
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 = "histogram.marker.colorbar.title"\n _path_str = "histogram.marker.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.histogram.mark\n er.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.histogram.marker.colorbar.title.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.marker.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\histogram\marker\colorbar\title\_font.py
_font.py
Python
9,959
0.95
0.10479
0.010526
awesome-app
550
2024-09-15T09:27:52.800009
BSD-3-Clause
false
1c9a2774fcee291f78d8c60137092f19
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\histogram\marker\colorbar\title\__init__.py
__init__.py
Python
237
0.85
0.111111
0
awesome-app
251
2024-07-04T07:22:35.068023
Apache-2.0
false
78f0039a1e574405772be52751197792
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\colorbar\title\__pycache__\_font.cpython-313.pyc
_font.cpython-313.pyc
Other
10,972
0.8
0.048583
0
awesome-app
384
2025-06-21T12:29:12.143306
BSD-3-Clause
false
8f150e68ee86ce4ac5072bee70031eb0
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\colorbar\title\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
517
0.85
0
0
react-lib
977
2024-07-30T16:14:38.928845
MIT
false
1437ae54c4471c0bc103ea7407c1bceb
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\colorbar\__pycache__\_tickfont.cpython-313.pyc
_tickfont.cpython-313.pyc
Other
11,019
0.8
0.04918
0
vue-tools
559
2024-10-12T15:02:26.498237
BSD-3-Clause
false
26c591ddd3412dcbed3580c9b98e48e5
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\colorbar\__pycache__\_tickformatstop.cpython-313.pyc
_tickformatstop.cpython-313.pyc
Other
9,345
0.8
0.024876
0.005348
node-utils
330
2024-01-31T04:20:26.728833
Apache-2.0
false
7413e6df64aaf0b0f10e0dcc25deefdd
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\colorbar\__pycache__\_title.cpython-313.pyc
_title.cpython-313.pyc
Other
4,947
0.8
0.087379
0
node-utils
645
2024-12-08T16:42:08.053350
MIT
false
e4332407df4c06e7389149cfb2e99be4
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\colorbar\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
717
0.95
0
0
node-utils
9
2025-05-10T08:07:50.131277
MIT
false
559c795ccabf2609779f731ab45f4061
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\__pycache__\_colorbar.cpython-313.pyc
_colorbar.cpython-313.pyc
Other
61,405
0.6
0.082343
0
node-utils
611
2024-04-15T04:54:09.151105
Apache-2.0
false
8132efd4fc32dd819f6e0571b058d8fd
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\__pycache__\_line.cpython-313.pyc
_line.cpython-313.pyc
Other
21,312
0.95
0.114014
0
node-utils
873
2025-04-20T20:01:25.226593
BSD-3-Clause
false
d02b55bb1c4bf53ba2b9342cfad8edbe
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\__pycache__\_pattern.cpython-313.pyc
_pattern.cpython-313.pyc
Other
14,467
0.8
0.071661
0
react-lib
601
2024-11-04T09:29:02.873758
GPL-3.0
false
7496b99eb8f52f796b08bb110396aab7
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\marker\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
682
0.95
0
0
react-lib
378
2024-07-09T11:22:28.458746
Apache-2.0
false
68e344df10ae7b0c4bc71620a1287f2a
# --- 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 = "histogram.selected"\n _path_str = "histogram.selected.marker"\n _valid_props = {"color", "opacity"}\n\n @property\n def color(self):\n """\n Sets the marker color of selected points.\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 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 color\n Sets the marker color of selected points.\n opacity\n Sets the marker opacity of selected points.\n """\n\n def __init__(self, arg=None, color=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.histogram.selected.Marker`\n color\n Sets the marker color of selected points.\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.histogram.selected.Marker\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.selected.Marker`""")\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("opacity", arg, opacity)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\selected\_marker.py
_marker.py
Python
3,021
0.95
0.115385
0.023256
awesome-app
554
2025-01-19T16:58:10.666324
BSD-3-Clause
false
c9b168341c448828daf3d7b80fc6615c
# --- 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 Textfont(_BaseTraceHierarchyType):\n _parent_path_str = "histogram.selected"\n _path_str = "histogram.selected.textfont"\n _valid_props = {"color"}\n\n @property\n def color(self):\n """\n Sets the text font color of selected points.\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 _prop_descriptions(self):\n return """\\n color\n Sets the text font color of selected points.\n """\n\n def __init__(self, arg=None, color=None, **kwargs):\n """\n Construct a new Textfont 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.histogram.selected.Textfont`\n color\n Sets the text font color of selected points.\n\n Returns\n -------\n Textfont\n """\n super().__init__("textfont")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.histogram.selected.Textfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.selected.Textfont`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\selected\_textfont.py
_textfont.py
Python
2,430
0.95
0.123457
0.029851
python-kit
551
2024-05-16T06:49:32.074900
GPL-3.0
false
643233922758b9e905936d6d202cc59a
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._marker import Marker\n from ._textfont import Textfont\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [], ["._marker.Marker", "._textfont.Textfont"]\n )\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\selected\__init__.py
__init__.py
Python
318
0.85
0.083333
0
vue-tools
83
2024-12-13T15:00:14.388703
GPL-3.0
false
7c7ff7a062dbdda499f13a5c14a6ba56
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\selected\__pycache__\_marker.cpython-313.pyc
_marker.cpython-313.pyc
Other
3,877
0.8
0.034483
0
python-kit
728
2024-08-05T07:38:11.118344
GPL-3.0
false
96778543a66e38791cd27c2e27e56c01
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\selected\__pycache__\_textfont.cpython-313.pyc
_textfont.cpython-313.pyc
Other
3,209
0.8
0.051724
0
node-utils
366
2024-03-08T01:49:28.361663
Apache-2.0
false
a15ae5e4b3f1c26984ade6f8113beff0
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\selected\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
586
0.95
0
0
node-utils
91
2025-01-25T16:58:31.228477
GPL-3.0
false
6f745984e87422cb39543fc6a7a98822
# --- 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 = "histogram.unselected"\n _path_str = "histogram.unselected.marker"\n _valid_props = {"color", "opacity"}\n\n @property\n def color(self):\n """\n Sets the marker color of unselected points, applied only when a\n selection exists.\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 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 color\n Sets the marker color of unselected points, applied\n only when a selection exists.\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, color=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.histogram.unselected.Marker`\n color\n Sets the marker color of unselected points, applied\n only when a selection exists.\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.histogram.unselected.Marker\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.unselected.Marker`""")\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("opacity", arg, opacity)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\unselected\_marker.py
_marker.py
Python
3,335
0.95
0.109091
0.021739
python-kit
431
2024-02-15T00:51:51.771689
BSD-3-Clause
false
596023a5b91701de5e58d5bf1e2ae6f5
# --- 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 Textfont(_BaseTraceHierarchyType):\n _parent_path_str = "histogram.unselected"\n _path_str = "histogram.unselected.textfont"\n _valid_props = {"color"}\n\n @property\n def color(self):\n """\n Sets the text font color of unselected points, applied only\n when a selection exists.\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 _prop_descriptions(self):\n return """\\n color\n Sets the text font color of unselected points, applied\n only when a selection exists.\n """\n\n def __init__(self, arg=None, color=None, **kwargs):\n """\n Construct a new Textfont object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.histogram.unse\n lected.Textfont`\n color\n Sets the text font color of unselected points, applied\n only when a selection exists.\n\n Returns\n -------\n Textfont\n """\n super().__init__("textfont")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.histogram.unselected.Textfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram.unselected.Textfont`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\unselected\_textfont.py
_textfont.py
Python
2,593
0.95
0.119048
0.028571
python-kit
772
2024-03-01T17:04:49.975276
Apache-2.0
false
e5b0e372c01b54703a62bbe178f5ee4f
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._marker import Marker\n from ._textfont import Textfont\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [], ["._marker.Marker", "._textfont.Textfont"]\n )\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\unselected\__init__.py
__init__.py
Python
318
0.85
0.083333
0
awesome-app
887
2024-09-21T15:31:42.836547
Apache-2.0
false
7c7ff7a062dbdda499f13a5c14a6ba56
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\unselected\__pycache__\_marker.cpython-313.pyc
_marker.cpython-313.pyc
Other
4,161
0.8
0.031915
0
react-lib
127
2025-05-03T09:03:19.422385
Apache-2.0
false
b160f123ff3afb4a0da4cf31f90dcf0c
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\unselected\__pycache__\_textfont.cpython-313.pyc
_textfont.cpython-313.pyc
Other
3,358
0.8
0.048387
0
awesome-app
828
2024-07-05T04:33:54.945299
GPL-3.0
false
6b8bc45f42c52685a467f1927b7672a9
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\unselected\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
588
0.95
0
0
react-lib
776
2024-03-01T14:42:44.859525
BSD-3-Clause
false
c289c4e7699d8f6e2264809445363c82
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_cumulative.cpython-313.pyc
_cumulative.cpython-313.pyc
Other
7,251
0.8
0.075342
0
node-utils
266
2025-07-07T23:56:03.059737
GPL-3.0
false
e2256685540323a6862fed3f8226f03d
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_error_x.cpython-313.pyc
_error_x.cpython-313.pyc
Other
16,095
0.8
0.095376
0
node-utils
836
2024-03-05T07:42:27.745599
BSD-3-Clause
false
2dc13c937add50e335aa2b47a9de2ae2
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_error_y.cpython-313.pyc
_error_y.cpython-313.pyc
Other
15,546
0.8
0.099099
0
react-lib
146
2024-01-10T22:07:38.114435
MIT
false
9a3fb02ac087e0be26fcd3669a04632f
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_hoverlabel.cpython-313.pyc
_hoverlabel.cpython-313.pyc
Other
11,399
0.8
0.142276
0
python-kit
44
2024-01-15T14:43:48.486657
Apache-2.0
false
f528ee49fc65934d1c00637310533a9b
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_insidetextfont.cpython-313.pyc
_insidetextfont.cpython-313.pyc
Other
11,058
0.8
0.053498
0
python-kit
996
2024-06-09T06:02:29.352221
GPL-3.0
false
2307a6dfeb3a43220e4074c1749dd4a9
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_legendgrouptitle.cpython-313.pyc
_legendgrouptitle.cpython-313.pyc
Other
3,870
0.8
0.04
0
vue-tools
6
2024-07-27T03:31:04.640911
MIT
false
f7e0f541f4cfe0dff1579ab571801bc4
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_marker.cpython-313.pyc
_marker.cpython-313.pyc
Other
25,801
0.95
0.126984
0
node-utils
248
2024-12-02T10:49:07.311856
Apache-2.0
false
484704eaacd7944762cc648c701bf9dd
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_outsidetextfont.cpython-313.pyc
_outsidetextfont.cpython-313.pyc
Other
11,079
0.8
0.053498
0
node-utils
47
2024-07-09T02:39:44.635367
GPL-3.0
false
ef66daa0dac45b2d910268bcf64bf771
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_selected.cpython-313.pyc
_selected.cpython-313.pyc
Other
4,181
0.8
0.103896
0
vue-tools
10
2025-01-07T09:52:25.957235
Apache-2.0
false
9fb86dbb7400d514d7b031b3c73e4ed6
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_stream.cpython-313.pyc
_stream.cpython-313.pyc
Other
4,318
0.8
0.054348
0
react-lib
103
2023-12-30T18:57:24.572816
Apache-2.0
false
2457270614b69eee5c6e2d9b5590fa62
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_textfont.cpython-313.pyc
_textfont.cpython-313.pyc
Other
10,905
0.8
0.04918
0
react-lib
543
2025-02-05T17:07:15.201685
BSD-3-Clause
false
1613783f5216b978f4e9c597641ae8c7
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_unselected.cpython-313.pyc
_unselected.cpython-313.pyc
Other
4,225
0.8
0.101266
0
vue-tools
867
2024-10-08T02:41:47.907040
BSD-3-Clause
false
b4ec092da2d6280bb76d1d3499708fec
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_xbins.cpython-313.pyc
_xbins.cpython-313.pyc
Other
9,549
0.8
0.143646
0
react-lib
849
2025-02-23T02:19:07.382046
Apache-2.0
false
d7e4c2cf6a20291fb72f5561b106d484
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\_ybins.cpython-313.pyc
_ybins.cpython-313.pyc
Other
9,549
0.8
0.143646
0
python-kit
746
2024-06-18T06:53:19.316880
Apache-2.0
false
6a7b9d670be387720141a7b56fd520b9
\n\n
.venv\Lib\site-packages\plotly\graph_objs\histogram\__pycache__\__init__.cpython-313.pyc
__init__.cpython-313.pyc
Other
1,651
0.95
0
0
vue-tools
660
2023-11-13T01:16:21.315804
BSD-3-Clause
false
a1c8300041db7d0ecfb9f26c51dc96fc
# --- 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 = "histogram2d"\n _path_str = "histogram2d.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.histogram2d.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.histogram2d.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.histogram2d.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.histogram2d.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.histogram2d.co\n lorbar.tickformatstopdefaults), sets the default property\n values to use for elements of\n histogram2d.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.histogram2d.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.histogram2d.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.histogram2d.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.histogram2d.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.histogram2d.col\n orbar.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.histog\n ram2d.colorbar.tickformatstopdefaults), sets the\n default property values to use for elements of\n histogram2d.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.histogram2d.colorbar.Title\n ` instance or dict with compatible properties\n x\n Sets the x position with respect to `xref` of the color\n bar (in plot fraction). When `xref` is "paper",\n defaults to 1.02 when `orientation` is "v" and 0.5 when\n `orientation` is "h". When `xref` is "container",\n defaults to 1 when `orientation` is "v" and 0.5 when\n `orientation` is "h". Must be between 0 and 1 if `xref`\n is "container" and between "-2" and 3 if `xref` is\n "paper".\n xanchor\n Sets this color bar's horizontal position anchor. This\n anchor binds the `x` position to the "left", "center"\n or "right" of the color bar. Defaults to "left" when\n `orientation` is "v" and "center" when `orientation` is\n "h".\n xpad\n Sets the amount of padding (in px) along the x\n direction.\n xref\n Sets the container `x` refers to. "container" spans the\n entire `width` of the plot. "paper" refers to the width\n of the plotting area only.\n y\n Sets the y position with respect to `yref` of the color\n bar (in plot fraction). When `yref` is "paper",\n defaults to 0.5 when `orientation` is "v" and 1.02 when\n `orientation` is "h". When `yref` is "container",\n defaults to 0.5 when `orientation` is "v" and 1 when\n `orientation` is "h". Must be between 0 and 1 if `yref`\n is "container" and between "-2" and 3 if `yref` is\n "paper".\n yanchor\n Sets this color bar's vertical position anchor This\n anchor binds the `y` position to the "top", "middle" or\n "bottom" of the color bar. Defaults to "middle" when\n `orientation` is "v" and "bottom" when `orientation` is\n "h".\n ypad\n Sets the amount of padding (in px) along the y\n direction.\n yref\n Sets the container `y` refers to. "container" spans the\n entire `height` of the plot. "paper" refers to the\n height of the plotting area only.\n """\n\n def __init__(\n self,\n arg=None,\n bgcolor=None,\n bordercolor=None,\n borderwidth=None,\n dtick=None,\n exponentformat=None,\n labelalias=None,\n len=None,\n lenmode=None,\n minexponent=None,\n nticks=None,\n orientation=None,\n outlinecolor=None,\n outlinewidth=None,\n separatethousands=None,\n showexponent=None,\n showticklabels=None,\n showtickprefix=None,\n showticksuffix=None,\n thickness=None,\n thicknessmode=None,\n tick0=None,\n tickangle=None,\n tickcolor=None,\n tickfont=None,\n tickformat=None,\n tickformatstops=None,\n tickformatstopdefaults=None,\n ticklabeloverflow=None,\n ticklabelposition=None,\n ticklabelstep=None,\n ticklen=None,\n tickmode=None,\n tickprefix=None,\n ticks=None,\n ticksuffix=None,\n ticktext=None,\n ticktextsrc=None,\n tickvals=None,\n tickvalssrc=None,\n tickwidth=None,\n title=None,\n x=None,\n xanchor=None,\n xpad=None,\n xref=None,\n y=None,\n yanchor=None,\n ypad=None,\n yref=None,\n **kwargs,\n ):\n """\n Construct a new ColorBar object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.histogram2d.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.histogram2d.col\n orbar.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.histog\n ram2d.colorbar.tickformatstopdefaults), sets the\n default property values to use for elements of\n histogram2d.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.histogram2d.colorbar.Title\n ` instance or dict with compatible properties\n x\n Sets the x position with respect to `xref` of the color\n bar (in plot fraction). When `xref` is "paper",\n defaults to 1.02 when `orientation` is "v" and 0.5 when\n `orientation` is "h". When `xref` is "container",\n defaults to 1 when `orientation` is "v" and 0.5 when\n `orientation` is "h". Must be between 0 and 1 if `xref`\n is "container" and between "-2" and 3 if `xref` is\n "paper".\n xanchor\n Sets this color bar's horizontal position anchor. This\n anchor binds the `x` position to the "left", "center"\n or "right" of the color bar. Defaults to "left" when\n `orientation` is "v" and "center" when `orientation` is\n "h".\n xpad\n Sets the amount of padding (in px) along the x\n direction.\n xref\n Sets the container `x` refers to. "container" spans the\n entire `width` of the plot. "paper" refers to the width\n of the plotting area only.\n y\n Sets the y position with respect to `yref` of the color\n bar (in plot fraction). When `yref` is "paper",\n defaults to 0.5 when `orientation` is "v" and 1.02 when\n `orientation` is "h". When `yref` is "container",\n defaults to 0.5 when `orientation` is "v" and 1 when\n `orientation` is "h". Must be between 0 and 1 if `yref`\n is "container" and between "-2" and 3 if `yref` is\n "paper".\n yanchor\n Sets this color bar's vertical position anchor This\n anchor binds the `y` position to the "top", "middle" or\n "bottom" of the color bar. Defaults to "middle" when\n `orientation` is "v" and "bottom" when `orientation` is\n "h".\n ypad\n Sets the amount of padding (in px) along the y\n direction.\n yref\n Sets the container `y` refers to. "container" spans the\n entire `height` of the plot. "paper" refers to the\n height of the plotting area only.\n\n Returns\n -------\n ColorBar\n """\n super().__init__("colorbar")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.histogram2d.ColorBar\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.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\histogram2d\_colorbar.py
_colorbar.py
Python
60,439
0.75
0.116144
0.001976
python-kit
132
2023-11-29T21:35:43.853299
MIT
false
8ddc8fad2be57bf2d6fe8fae36b1154c
# --- 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 = "histogram2d"\n _path_str = "histogram2d.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.histogram2d.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.histogram2d.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.histogram2d.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.histogram2d.Hoverlabel\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.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\histogram2d\_hoverlabel.py
_hoverlabel.py
Python
10,485
0.95
0.171598
0.010274
vue-tools
119
2024-02-16T00:28:16.061919
Apache-2.0
false
6d969464c1cc556b39cb655f60159240
# --- 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 = "histogram2d"\n _path_str = "histogram2d.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.histogram2d.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.histogram2d.legendgrouptitle.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def text(self):\n """\n Sets the title of the legend group.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n """\n\n def __init__(self, arg=None, font=None, text=None, **kwargs):\n """\n Construct a new Legendgrouptitle object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.histogram2d.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.histogram2d.Legendgrouptitle\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.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\histogram2d\_legendgrouptitle.py
_legendgrouptitle.py
Python
2,967
0.95
0.115385
0.023256
awesome-app
992
2023-11-25T00:22:26.900917
Apache-2.0
false
05281d6429d16ea5d8c6c511c73ac130
# --- 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 = "histogram2d"\n _path_str = "histogram2d.marker"\n _valid_props = {"color", "colorsrc"}\n\n @property\n def color(self):\n """\n Sets the aggregation data.\n\n The 'color' 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["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 _prop_descriptions(self):\n return """\\n color\n Sets the aggregation data.\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n """\n\n def __init__(self, arg=None, color=None, colorsrc=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.histogram2d.Marker`\n color\n Sets the aggregation data.\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\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.histogram2d.Marker\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.Marker`""")\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._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram2d\_marker.py
_marker.py
Python
2,783
0.95
0.137255
0.02381
react-lib
617
2024-05-29T18:48:36.123195
Apache-2.0
false
948c67d2d7ed8ff14212907256ddc4ff
# --- 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 = "histogram2d"\n _path_str = "histogram2d.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.histogram2d.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.histogram2d.Stream\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.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\histogram2d\_stream.py
_stream.py
Python
3,531
0.95
0.122807
0.020833
vue-tools
275
2025-06-27T23:21:39.911858
GPL-3.0
false
058d79ca684c11dd2f8c8a69be8d8e46
# --- 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 Textfont(_BaseTraceHierarchyType):\n _parent_path_str = "histogram2d"\n _path_str = "histogram2d.textfont"\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 Textfont object\n\n Sets the text font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.histogram2d.Textfont`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n 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 Textfont\n """\n super().__init__("textfont")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.histogram2d.Textfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.Textfont`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("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\histogram2d\_textfont.py
_textfont.py
Python
9,876
0.95
0.10479
0.010526
vue-tools
583
2023-10-26T15:32:58.208056
GPL-3.0
false
6842adbf576605477f93eb498a56cbf5
# --- 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 XBins(_BaseTraceHierarchyType):\n _parent_path_str = "histogram2d"\n _path_str = "histogram2d.xbins"\n _valid_props = {"end", "size", "start"}\n\n @property\n def end(self):\n """\n Sets the end value for the x axis bins. The last bin may not\n end exactly at this value, we increment the bin edge by `size`\n from `start` until we reach or exceed `end`. Defaults to the\n maximum data value. Like `start`, for dates use a date string,\n and for category data `end` is based on the category serial\n numbers.\n\n The 'end' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["end"]\n\n @end.setter\n def end(self, val):\n self["end"] = val\n\n @property\n def size(self):\n """\n Sets the size of each x axis bin. Default behavior: If `nbinsx`\n is 0 or omitted, we choose a nice round bin size such that the\n number of bins is about the same as the typical number of\n samples in each bin. If `nbinsx` is provided, we choose a nice\n round bin size giving no more than that many bins. For date\n data, use milliseconds or "M<n>" for months, as in\n `axis.dtick`. For category data, the number of categories to\n bin together (always defaults to 1).\n\n The 'size' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def start(self):\n """\n Sets the starting value for the x axis bins. Defaults to the\n minimum data value, shifted down if necessary to make nice\n round values and to remove ambiguous bin edges. For example, if\n most of the data is integers we shift the bin edges 0.5 down,\n so a `size` of 5 would have a default `start` of -0.5, so it is\n clear that 0-4 are in the first bin, 5-9 in the second, but\n continuous data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date string.\n For category data, `start` is based on the category serial\n numbers, and defaults to -0.5.\n\n The 'start' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["start"]\n\n @start.setter\n def start(self, val):\n self["start"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n end\n Sets the end value for the x axis bins. The last bin\n may not end exactly at this value, we increment the bin\n edge by `size` from `start` until we reach or exceed\n `end`. Defaults to the maximum data value. Like\n `start`, for dates use a date string, and for category\n data `end` is based on the category serial numbers.\n size\n Sets the size of each x axis bin. Default behavior: If\n `nbinsx` is 0 or omitted, we choose a nice round bin\n size such that the number of bins is about the same as\n the typical number of samples in each bin. If `nbinsx`\n is provided, we choose a nice round bin size giving no\n more than that many bins. For date data, use\n milliseconds or "M<n>" for months, as in `axis.dtick`.\n For category data, the number of categories to bin\n together (always defaults to 1).\n start\n Sets the starting value for the x axis bins. Defaults\n to the minimum data value, shifted down if necessary to\n make nice round values and to remove ambiguous bin\n edges. For example, if most of the data is integers we\n shift the bin edges 0.5 down, so a `size` of 5 would\n have a default `start` of -0.5, so it is clear that 0-4\n are in the first bin, 5-9 in the second, but continuous\n data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date\n string. For category data, `start` is based on the\n category serial numbers, and defaults to -0.5.\n """\n\n def __init__(self, arg=None, end=None, size=None, start=None, **kwargs):\n """\n Construct a new XBins 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.histogram2d.XBins`\n end\n Sets the end value for the x axis bins. The last bin\n may not end exactly at this value, we increment the bin\n edge by `size` from `start` until we reach or exceed\n `end`. Defaults to the maximum data value. Like\n `start`, for dates use a date string, and for category\n data `end` is based on the category serial numbers.\n size\n Sets the size of each x axis bin. Default behavior: If\n `nbinsx` is 0 or omitted, we choose a nice round bin\n size such that the number of bins is about the same as\n the typical number of samples in each bin. If `nbinsx`\n is provided, we choose a nice round bin size giving no\n more than that many bins. For date data, use\n milliseconds or "M<n>" for months, as in `axis.dtick`.\n For category data, the number of categories to bin\n together (always defaults to 1).\n start\n Sets the starting value for the x axis bins. Defaults\n to the minimum data value, shifted down if necessary to\n make nice round values and to remove ambiguous bin\n edges. For example, if most of the data is integers we\n shift the bin edges 0.5 down, so a `size` of 5 would\n have a default `start` of -0.5, so it is clear that 0-4\n are in the first bin, 5-9 in the second, but continuous\n data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date\n string. For category data, `start` is based on the\n category serial numbers, and defaults to -0.5.\n\n Returns\n -------\n XBins\n """\n super().__init__("xbins")\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.histogram2d.XBins\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.XBins`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("end", arg, end)\n self._set_property("size", arg, size)\n self._set_property("start", arg, start)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram2d\_xbins.py
_xbins.py
Python
7,476
0.95
0.181818
0.012121
python-kit
583
2024-01-08T02:10:31.742625
MIT
false
fb59255bb981829ccd579f414eb96d5c
# --- 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 YBins(_BaseTraceHierarchyType):\n _parent_path_str = "histogram2d"\n _path_str = "histogram2d.ybins"\n _valid_props = {"end", "size", "start"}\n\n @property\n def end(self):\n """\n Sets the end value for the y axis bins. The last bin may not\n end exactly at this value, we increment the bin edge by `size`\n from `start` until we reach or exceed `end`. Defaults to the\n maximum data value. Like `start`, for dates use a date string,\n and for category data `end` is based on the category serial\n numbers.\n\n The 'end' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["end"]\n\n @end.setter\n def end(self, val):\n self["end"] = val\n\n @property\n def size(self):\n """\n Sets the size of each y axis bin. Default behavior: If `nbinsy`\n is 0 or omitted, we choose a nice round bin size such that the\n number of bins is about the same as the typical number of\n samples in each bin. If `nbinsy` is provided, we choose a nice\n round bin size giving no more than that many bins. For date\n data, use milliseconds or "M<n>" for months, as in\n `axis.dtick`. For category data, the number of categories to\n bin together (always defaults to 1).\n\n The 'size' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def start(self):\n """\n Sets the starting value for the y axis bins. Defaults to the\n minimum data value, shifted down if necessary to make nice\n round values and to remove ambiguous bin edges. For example, if\n most of the data is integers we shift the bin edges 0.5 down,\n so a `size` of 5 would have a default `start` of -0.5, so it is\n clear that 0-4 are in the first bin, 5-9 in the second, but\n continuous data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date string.\n For category data, `start` is based on the category serial\n numbers, and defaults to -0.5.\n\n The 'start' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["start"]\n\n @start.setter\n def start(self, val):\n self["start"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n end\n Sets the end value for the y axis bins. The last bin\n may not end exactly at this value, we increment the bin\n edge by `size` from `start` until we reach or exceed\n `end`. Defaults to the maximum data value. Like\n `start`, for dates use a date string, and for category\n data `end` is based on the category serial numbers.\n size\n Sets the size of each y axis bin. Default behavior: If\n `nbinsy` is 0 or omitted, we choose a nice round bin\n size such that the number of bins is about the same as\n the typical number of samples in each bin. If `nbinsy`\n is provided, we choose a nice round bin size giving no\n more than that many bins. For date data, use\n milliseconds or "M<n>" for months, as in `axis.dtick`.\n For category data, the number of categories to bin\n together (always defaults to 1).\n start\n Sets the starting value for the y axis bins. Defaults\n to the minimum data value, shifted down if necessary to\n make nice round values and to remove ambiguous bin\n edges. For example, if most of the data is integers we\n shift the bin edges 0.5 down, so a `size` of 5 would\n have a default `start` of -0.5, so it is clear that 0-4\n are in the first bin, 5-9 in the second, but continuous\n data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date\n string. For category data, `start` is based on the\n category serial numbers, and defaults to -0.5.\n """\n\n def __init__(self, arg=None, end=None, size=None, start=None, **kwargs):\n """\n Construct a new YBins 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.histogram2d.YBins`\n end\n Sets the end value for the y axis bins. The last bin\n may not end exactly at this value, we increment the bin\n edge by `size` from `start` until we reach or exceed\n `end`. Defaults to the maximum data value. Like\n `start`, for dates use a date string, and for category\n data `end` is based on the category serial numbers.\n size\n Sets the size of each y axis bin. Default behavior: If\n `nbinsy` is 0 or omitted, we choose a nice round bin\n size such that the number of bins is about the same as\n the typical number of samples in each bin. If `nbinsy`\n is provided, we choose a nice round bin size giving no\n more than that many bins. For date data, use\n milliseconds or "M<n>" for months, as in `axis.dtick`.\n For category data, the number of categories to bin\n together (always defaults to 1).\n start\n Sets the starting value for the y axis bins. Defaults\n to the minimum data value, shifted down if necessary to\n make nice round values and to remove ambiguous bin\n edges. For example, if most of the data is integers we\n shift the bin edges 0.5 down, so a `size` of 5 would\n have a default `start` of -0.5, so it is clear that 0-4\n are in the first bin, 5-9 in the second, but continuous\n data gets a start of 0 and bins [0,5), [5,10) etc.\n Dates behave similarly, and `start` should be a date\n string. For category data, `start` is based on the\n category serial numbers, and defaults to -0.5.\n\n Returns\n -------\n YBins\n """\n super().__init__("ybins")\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.histogram2d.YBins\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.YBins`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("end", arg, end)\n self._set_property("size", arg, size)\n self._set_property("start", arg, start)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n
.venv\Lib\site-packages\plotly\graph_objs\histogram2d\_ybins.py
_ybins.py
Python
7,476
0.95
0.181818
0.012121
python-kit
992
2024-05-08T04:32:24.523530
GPL-3.0
false
24de8c88f1df65df3593d46abaf27a69
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 ._stream import Stream\n from ._textfont import Textfont\n from ._xbins import XBins\n from ._ybins import YBins\n from . import colorbar\n from . import hoverlabel\n from . import legendgrouptitle\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".colorbar", ".hoverlabel", ".legendgrouptitle"],\n [\n "._colorbar.ColorBar",\n "._hoverlabel.Hoverlabel",\n "._legendgrouptitle.Legendgrouptitle",\n "._marker.Marker",\n "._stream.Stream",\n "._textfont.Textfont",\n "._xbins.XBins",\n "._ybins.YBins",\n ],\n )\n
.venv\Lib\site-packages\plotly\graph_objs\histogram2d\__init__.py
__init__.py
Python
942
0.85
0.03125
0
python-kit
55
2023-12-28T18:14:22.016564
GPL-3.0
false
0d19346aaf08c3accec88dac5becb422
# --- 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 = "histogram2d.colorbar"\n _path_str = "histogram2d.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.histogram2d.co\n lorbar.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.histogram2d.colorbar.Tickfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.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\histogram2d\colorbar\_tickfont.py
_tickfont.py
Python
9,939
0.95
0.10479
0.010526
awesome-app
653
2023-10-15T08:00:45.150990
MIT
false
2f1425bb8e5c10754ee11eb918522add
# --- 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 = "histogram2d.colorbar"\n _path_str = "histogram2d.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.histogram2d.co\n lorbar.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.histogram2d.colorbar.Tickformatstop\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.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\histogram2d\colorbar\_tickformatstop.py
_tickformatstop.py
Python
8,534
0.95
0.082988
0.019048
python-kit
383
2024-10-22T13:45:01.666764
MIT
false
7be66efa5649408b84ab8a03118a5f38
# --- 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 = "histogram2d.colorbar"\n _path_str = "histogram2d.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.histogram2d.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.histogram2d.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.histogram2d.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.histogram2d.colorbar.Title\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.histogram2d.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\histogram2d\colorbar\_title.py
_title.py
Python
3,999
0.95
0.147059
0.017544
awesome-app
848
2023-11-30T08:23:05.603939
Apache-2.0
false
a57036805e1cb4729631de6ad3e0f8ac