mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-07-01 22:13:01 +00:00
first commit
This commit is contained in:
@ -0,0 +1,29 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._dimension import Dimension
|
||||
from ._domain import Domain
|
||||
from ._labelfont import Labelfont
|
||||
from ._legendgrouptitle import Legendgrouptitle
|
||||
from ._line import Line
|
||||
from ._stream import Stream
|
||||
from ._tickfont import Tickfont
|
||||
from . import legendgrouptitle
|
||||
from . import line
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[".legendgrouptitle", ".line"],
|
||||
[
|
||||
"._dimension.Dimension",
|
||||
"._domain.Domain",
|
||||
"._labelfont.Labelfont",
|
||||
"._legendgrouptitle.Legendgrouptitle",
|
||||
"._line.Line",
|
||||
"._stream.Stream",
|
||||
"._tickfont.Tickfont",
|
||||
],
|
||||
)
|
450
.venv/Lib/site-packages/plotly/graph_objs/parcats/_dimension.py
Normal file
450
.venv/Lib/site-packages/plotly/graph_objs/parcats/_dimension.py
Normal file
@ -0,0 +1,450 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Dimension(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats"
|
||||
_path_str = "parcats.dimension"
|
||||
_valid_props = {
|
||||
"categoryarray",
|
||||
"categoryarraysrc",
|
||||
"categoryorder",
|
||||
"displayindex",
|
||||
"label",
|
||||
"ticktext",
|
||||
"ticktextsrc",
|
||||
"values",
|
||||
"valuessrc",
|
||||
"visible",
|
||||
}
|
||||
|
||||
# categoryarray
|
||||
# -------------
|
||||
@property
|
||||
def categoryarray(self):
|
||||
"""
|
||||
Sets the order in which categories in this dimension appear.
|
||||
Only has an effect if `categoryorder` is set to "array". Used
|
||||
with `categoryorder`.
|
||||
|
||||
The 'categoryarray' property is an array that may be specified as a tuple,
|
||||
list, numpy array, or pandas Series
|
||||
|
||||
Returns
|
||||
-------
|
||||
numpy.ndarray
|
||||
"""
|
||||
return self["categoryarray"]
|
||||
|
||||
@categoryarray.setter
|
||||
def categoryarray(self, val):
|
||||
self["categoryarray"] = val
|
||||
|
||||
# categoryarraysrc
|
||||
# ----------------
|
||||
@property
|
||||
def categoryarraysrc(self):
|
||||
"""
|
||||
Sets the source reference on Chart Studio Cloud for
|
||||
`categoryarray`.
|
||||
|
||||
The 'categoryarraysrc' property must be specified as a string or
|
||||
as a plotly.grid_objs.Column object
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["categoryarraysrc"]
|
||||
|
||||
@categoryarraysrc.setter
|
||||
def categoryarraysrc(self, val):
|
||||
self["categoryarraysrc"] = val
|
||||
|
||||
# categoryorder
|
||||
# -------------
|
||||
@property
|
||||
def categoryorder(self):
|
||||
"""
|
||||
Specifies the ordering logic for the categories in the
|
||||
dimension. By default, plotly uses "trace", which specifies the
|
||||
order that is present in the data supplied. Set `categoryorder`
|
||||
to *category ascending* or *category descending* if order
|
||||
should be determined by the alphanumerical order of the
|
||||
category names. Set `categoryorder` to "array" to derive the
|
||||
ordering from the attribute `categoryarray`. If a category is
|
||||
not found in the `categoryarray` array, the sorting behavior
|
||||
for that attribute will be identical to the "trace" mode. The
|
||||
unspecified categories will follow the categories in
|
||||
`categoryarray`.
|
||||
|
||||
The 'categoryorder' property is an enumeration that may be specified as:
|
||||
- One of the following enumeration values:
|
||||
['trace', 'category ascending', 'category descending',
|
||||
'array']
|
||||
|
||||
Returns
|
||||
-------
|
||||
Any
|
||||
"""
|
||||
return self["categoryorder"]
|
||||
|
||||
@categoryorder.setter
|
||||
def categoryorder(self, val):
|
||||
self["categoryorder"] = val
|
||||
|
||||
# displayindex
|
||||
# ------------
|
||||
@property
|
||||
def displayindex(self):
|
||||
"""
|
||||
The display index of dimension, from left to right, zero
|
||||
indexed, defaults to dimension index.
|
||||
|
||||
The 'displayindex' property is a integer and may be specified as:
|
||||
- An int (or float that will be cast to an int)
|
||||
|
||||
Returns
|
||||
-------
|
||||
int
|
||||
"""
|
||||
return self["displayindex"]
|
||||
|
||||
@displayindex.setter
|
||||
def displayindex(self, val):
|
||||
self["displayindex"] = val
|
||||
|
||||
# label
|
||||
# -----
|
||||
@property
|
||||
def label(self):
|
||||
"""
|
||||
The shown name of the dimension.
|
||||
|
||||
The 'label' property is a string and must be specified as:
|
||||
- A string
|
||||
- A number that will be converted to a string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["label"]
|
||||
|
||||
@label.setter
|
||||
def label(self, val):
|
||||
self["label"] = val
|
||||
|
||||
# ticktext
|
||||
# --------
|
||||
@property
|
||||
def ticktext(self):
|
||||
"""
|
||||
Sets alternative tick labels for the categories in this
|
||||
dimension. Only has an effect if `categoryorder` is set to
|
||||
"array". Should be an array the same length as `categoryarray`
|
||||
Used with `categoryorder`.
|
||||
|
||||
The 'ticktext' property is an array that may be specified as a tuple,
|
||||
list, numpy array, or pandas Series
|
||||
|
||||
Returns
|
||||
-------
|
||||
numpy.ndarray
|
||||
"""
|
||||
return self["ticktext"]
|
||||
|
||||
@ticktext.setter
|
||||
def ticktext(self, val):
|
||||
self["ticktext"] = val
|
||||
|
||||
# ticktextsrc
|
||||
# -----------
|
||||
@property
|
||||
def ticktextsrc(self):
|
||||
"""
|
||||
Sets the source reference on Chart Studio Cloud for `ticktext`.
|
||||
|
||||
The 'ticktextsrc' property must be specified as a string or
|
||||
as a plotly.grid_objs.Column object
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["ticktextsrc"]
|
||||
|
||||
@ticktextsrc.setter
|
||||
def ticktextsrc(self, val):
|
||||
self["ticktextsrc"] = val
|
||||
|
||||
# values
|
||||
# ------
|
||||
@property
|
||||
def values(self):
|
||||
"""
|
||||
Dimension values. `values[n]` represents the category value of
|
||||
the `n`th point in the dataset, therefore the `values` vector
|
||||
for all dimensions must be the same (longer vectors will be
|
||||
truncated).
|
||||
|
||||
The 'values' property is an array that may be specified as a tuple,
|
||||
list, numpy array, or pandas Series
|
||||
|
||||
Returns
|
||||
-------
|
||||
numpy.ndarray
|
||||
"""
|
||||
return self["values"]
|
||||
|
||||
@values.setter
|
||||
def values(self, val):
|
||||
self["values"] = val
|
||||
|
||||
# valuessrc
|
||||
# ---------
|
||||
@property
|
||||
def valuessrc(self):
|
||||
"""
|
||||
Sets the source reference on Chart Studio Cloud for `values`.
|
||||
|
||||
The 'valuessrc' property must be specified as a string or
|
||||
as a plotly.grid_objs.Column object
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["valuessrc"]
|
||||
|
||||
@valuessrc.setter
|
||||
def valuessrc(self, val):
|
||||
self["valuessrc"] = val
|
||||
|
||||
# visible
|
||||
# -------
|
||||
@property
|
||||
def visible(self):
|
||||
"""
|
||||
Shows the dimension when set to `true` (the default). Hides the
|
||||
dimension for `false`.
|
||||
|
||||
The 'visible' property must be specified as a bool
|
||||
(either True, or False)
|
||||
|
||||
Returns
|
||||
-------
|
||||
bool
|
||||
"""
|
||||
return self["visible"]
|
||||
|
||||
@visible.setter
|
||||
def visible(self, val):
|
||||
self["visible"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
categoryarray
|
||||
Sets the order in which categories in this dimension
|
||||
appear. Only has an effect if `categoryorder` is set to
|
||||
"array". Used with `categoryorder`.
|
||||
categoryarraysrc
|
||||
Sets the source reference on Chart Studio Cloud for
|
||||
`categoryarray`.
|
||||
categoryorder
|
||||
Specifies the ordering logic for the categories in the
|
||||
dimension. By default, plotly uses "trace", which
|
||||
specifies the order that is present in the data
|
||||
supplied. Set `categoryorder` to *category ascending*
|
||||
or *category descending* if order should be determined
|
||||
by the alphanumerical order of the category names. Set
|
||||
`categoryorder` to "array" to derive the ordering from
|
||||
the attribute `categoryarray`. If a category is not
|
||||
found in the `categoryarray` array, the sorting
|
||||
behavior for that attribute will be identical to the
|
||||
"trace" mode. The unspecified categories will follow
|
||||
the categories in `categoryarray`.
|
||||
displayindex
|
||||
The display index of dimension, from left to right,
|
||||
zero indexed, defaults to dimension index.
|
||||
label
|
||||
The shown name of the dimension.
|
||||
ticktext
|
||||
Sets alternative tick labels for the categories in this
|
||||
dimension. Only has an effect if `categoryorder` is set
|
||||
to "array". Should be an array the same length as
|
||||
`categoryarray` Used with `categoryorder`.
|
||||
ticktextsrc
|
||||
Sets the source reference on Chart Studio Cloud for
|
||||
`ticktext`.
|
||||
values
|
||||
Dimension values. `values[n]` represents the category
|
||||
value of the `n`th point in the dataset, therefore the
|
||||
`values` vector for all dimensions must be the same
|
||||
(longer vectors will be truncated).
|
||||
valuessrc
|
||||
Sets the source reference on Chart Studio Cloud for
|
||||
`values`.
|
||||
visible
|
||||
Shows the dimension when set to `true` (the default).
|
||||
Hides the dimension for `false`.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
arg=None,
|
||||
categoryarray=None,
|
||||
categoryarraysrc=None,
|
||||
categoryorder=None,
|
||||
displayindex=None,
|
||||
label=None,
|
||||
ticktext=None,
|
||||
ticktextsrc=None,
|
||||
values=None,
|
||||
valuessrc=None,
|
||||
visible=None,
|
||||
**kwargs,
|
||||
):
|
||||
"""
|
||||
Construct a new Dimension object
|
||||
|
||||
The dimensions (variables) of the parallel categories diagram.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of
|
||||
:class:`plotly.graph_objs.parcats.Dimension`
|
||||
categoryarray
|
||||
Sets the order in which categories in this dimension
|
||||
appear. Only has an effect if `categoryorder` is set to
|
||||
"array". Used with `categoryorder`.
|
||||
categoryarraysrc
|
||||
Sets the source reference on Chart Studio Cloud for
|
||||
`categoryarray`.
|
||||
categoryorder
|
||||
Specifies the ordering logic for the categories in the
|
||||
dimension. By default, plotly uses "trace", which
|
||||
specifies the order that is present in the data
|
||||
supplied. Set `categoryorder` to *category ascending*
|
||||
or *category descending* if order should be determined
|
||||
by the alphanumerical order of the category names. Set
|
||||
`categoryorder` to "array" to derive the ordering from
|
||||
the attribute `categoryarray`. If a category is not
|
||||
found in the `categoryarray` array, the sorting
|
||||
behavior for that attribute will be identical to the
|
||||
"trace" mode. The unspecified categories will follow
|
||||
the categories in `categoryarray`.
|
||||
displayindex
|
||||
The display index of dimension, from left to right,
|
||||
zero indexed, defaults to dimension index.
|
||||
label
|
||||
The shown name of the dimension.
|
||||
ticktext
|
||||
Sets alternative tick labels for the categories in this
|
||||
dimension. Only has an effect if `categoryorder` is set
|
||||
to "array". Should be an array the same length as
|
||||
`categoryarray` Used with `categoryorder`.
|
||||
ticktextsrc
|
||||
Sets the source reference on Chart Studio Cloud for
|
||||
`ticktext`.
|
||||
values
|
||||
Dimension values. `values[n]` represents the category
|
||||
value of the `n`th point in the dataset, therefore the
|
||||
`values` vector for all dimensions must be the same
|
||||
(longer vectors will be truncated).
|
||||
valuessrc
|
||||
Sets the source reference on Chart Studio Cloud for
|
||||
`values`.
|
||||
visible
|
||||
Shows the dimension when set to `true` (the default).
|
||||
Hides the dimension for `false`.
|
||||
|
||||
Returns
|
||||
-------
|
||||
Dimension
|
||||
"""
|
||||
super(Dimension, self).__init__("dimensions")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.Dimension
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.Dimension`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("categoryarray", None)
|
||||
_v = categoryarray if categoryarray is not None else _v
|
||||
if _v is not None:
|
||||
self["categoryarray"] = _v
|
||||
_v = arg.pop("categoryarraysrc", None)
|
||||
_v = categoryarraysrc if categoryarraysrc is not None else _v
|
||||
if _v is not None:
|
||||
self["categoryarraysrc"] = _v
|
||||
_v = arg.pop("categoryorder", None)
|
||||
_v = categoryorder if categoryorder is not None else _v
|
||||
if _v is not None:
|
||||
self["categoryorder"] = _v
|
||||
_v = arg.pop("displayindex", None)
|
||||
_v = displayindex if displayindex is not None else _v
|
||||
if _v is not None:
|
||||
self["displayindex"] = _v
|
||||
_v = arg.pop("label", None)
|
||||
_v = label if label is not None else _v
|
||||
if _v is not None:
|
||||
self["label"] = _v
|
||||
_v = arg.pop("ticktext", None)
|
||||
_v = ticktext if ticktext is not None else _v
|
||||
if _v is not None:
|
||||
self["ticktext"] = _v
|
||||
_v = arg.pop("ticktextsrc", None)
|
||||
_v = ticktextsrc if ticktextsrc is not None else _v
|
||||
if _v is not None:
|
||||
self["ticktextsrc"] = _v
|
||||
_v = arg.pop("values", None)
|
||||
_v = values if values is not None else _v
|
||||
if _v is not None:
|
||||
self["values"] = _v
|
||||
_v = arg.pop("valuessrc", None)
|
||||
_v = valuessrc if valuessrc is not None else _v
|
||||
if _v is not None:
|
||||
self["valuessrc"] = _v
|
||||
_v = arg.pop("visible", None)
|
||||
_v = visible if visible is not None else _v
|
||||
if _v is not None:
|
||||
self["visible"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
207
.venv/Lib/site-packages/plotly/graph_objs/parcats/_domain.py
Normal file
207
.venv/Lib/site-packages/plotly/graph_objs/parcats/_domain.py
Normal file
@ -0,0 +1,207 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Domain(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats"
|
||||
_path_str = "parcats.domain"
|
||||
_valid_props = {"column", "row", "x", "y"}
|
||||
|
||||
# column
|
||||
# ------
|
||||
@property
|
||||
def column(self):
|
||||
"""
|
||||
If there is a layout grid, use the domain for this column in
|
||||
the grid for this parcats trace .
|
||||
|
||||
The 'column' property is a integer and may be specified as:
|
||||
- An int (or float that will be cast to an int)
|
||||
in the interval [0, 9223372036854775807]
|
||||
|
||||
Returns
|
||||
-------
|
||||
int
|
||||
"""
|
||||
return self["column"]
|
||||
|
||||
@column.setter
|
||||
def column(self, val):
|
||||
self["column"] = val
|
||||
|
||||
# row
|
||||
# ---
|
||||
@property
|
||||
def row(self):
|
||||
"""
|
||||
If there is a layout grid, use the domain for this row in the
|
||||
grid for this parcats trace .
|
||||
|
||||
The 'row' property is a integer and may be specified as:
|
||||
- An int (or float that will be cast to an int)
|
||||
in the interval [0, 9223372036854775807]
|
||||
|
||||
Returns
|
||||
-------
|
||||
int
|
||||
"""
|
||||
return self["row"]
|
||||
|
||||
@row.setter
|
||||
def row(self, val):
|
||||
self["row"] = val
|
||||
|
||||
# x
|
||||
# -
|
||||
@property
|
||||
def x(self):
|
||||
"""
|
||||
Sets the horizontal domain of this parcats trace (in plot
|
||||
fraction).
|
||||
|
||||
The 'x' property is an info array that may be specified as:
|
||||
|
||||
* a list or tuple of 2 elements where:
|
||||
(0) The 'x[0]' property is a number and may be specified as:
|
||||
- An int or float in the interval [0, 1]
|
||||
(1) The 'x[1]' property is a number and may be specified as:
|
||||
- An int or float in the interval [0, 1]
|
||||
|
||||
Returns
|
||||
-------
|
||||
list
|
||||
"""
|
||||
return self["x"]
|
||||
|
||||
@x.setter
|
||||
def x(self, val):
|
||||
self["x"] = val
|
||||
|
||||
# y
|
||||
# -
|
||||
@property
|
||||
def y(self):
|
||||
"""
|
||||
Sets the vertical domain of this parcats trace (in plot
|
||||
fraction).
|
||||
|
||||
The 'y' property is an info array that may be specified as:
|
||||
|
||||
* a list or tuple of 2 elements where:
|
||||
(0) The 'y[0]' property is a number and may be specified as:
|
||||
- An int or float in the interval [0, 1]
|
||||
(1) The 'y[1]' property is a number and may be specified as:
|
||||
- An int or float in the interval [0, 1]
|
||||
|
||||
Returns
|
||||
-------
|
||||
list
|
||||
"""
|
||||
return self["y"]
|
||||
|
||||
@y.setter
|
||||
def y(self, val):
|
||||
self["y"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
column
|
||||
If there is a layout grid, use the domain for this
|
||||
column in the grid for this parcats trace .
|
||||
row
|
||||
If there is a layout grid, use the domain for this row
|
||||
in the grid for this parcats trace .
|
||||
x
|
||||
Sets the horizontal domain of this parcats trace (in
|
||||
plot fraction).
|
||||
y
|
||||
Sets the vertical domain of this parcats trace (in plot
|
||||
fraction).
|
||||
"""
|
||||
|
||||
def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs):
|
||||
"""
|
||||
Construct a new Domain object
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of
|
||||
:class:`plotly.graph_objs.parcats.Domain`
|
||||
column
|
||||
If there is a layout grid, use the domain for this
|
||||
column in the grid for this parcats trace .
|
||||
row
|
||||
If there is a layout grid, use the domain for this row
|
||||
in the grid for this parcats trace .
|
||||
x
|
||||
Sets the horizontal domain of this parcats trace (in
|
||||
plot fraction).
|
||||
y
|
||||
Sets the vertical domain of this parcats trace (in plot
|
||||
fraction).
|
||||
|
||||
Returns
|
||||
-------
|
||||
Domain
|
||||
"""
|
||||
super(Domain, self).__init__("domain")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.Domain
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.Domain`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("column", None)
|
||||
_v = column if column is not None else _v
|
||||
if _v is not None:
|
||||
self["column"] = _v
|
||||
_v = arg.pop("row", None)
|
||||
_v = row if row is not None else _v
|
||||
if _v is not None:
|
||||
self["row"] = _v
|
||||
_v = arg.pop("x", None)
|
||||
_v = x if x is not None else _v
|
||||
if _v is not None:
|
||||
self["x"] = _v
|
||||
_v = arg.pop("y", None)
|
||||
_v = y if y is not None else _v
|
||||
if _v is not None:
|
||||
self["y"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
227
.venv/Lib/site-packages/plotly/graph_objs/parcats/_labelfont.py
Normal file
227
.venv/Lib/site-packages/plotly/graph_objs/parcats/_labelfont.py
Normal file
@ -0,0 +1,227 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Labelfont(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats"
|
||||
_path_str = "parcats.labelfont"
|
||||
_valid_props = {"color", "family", "size"}
|
||||
|
||||
# color
|
||||
# -----
|
||||
@property
|
||||
def color(self):
|
||||
"""
|
||||
The 'color' property is a color and may be specified as:
|
||||
- A hex string (e.g. '#ff0000')
|
||||
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
||||
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
||||
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
||||
- A named CSS color:
|
||||
aliceblue, antiquewhite, aqua, aquamarine, azure,
|
||||
beige, bisque, black, blanchedalmond, blue,
|
||||
blueviolet, brown, burlywood, cadetblue,
|
||||
chartreuse, chocolate, coral, cornflowerblue,
|
||||
cornsilk, crimson, cyan, darkblue, darkcyan,
|
||||
darkgoldenrod, darkgray, darkgrey, darkgreen,
|
||||
darkkhaki, darkmagenta, darkolivegreen, darkorange,
|
||||
darkorchid, darkred, darksalmon, darkseagreen,
|
||||
darkslateblue, darkslategray, darkslategrey,
|
||||
darkturquoise, darkviolet, deeppink, deepskyblue,
|
||||
dimgray, dimgrey, dodgerblue, firebrick,
|
||||
floralwhite, forestgreen, fuchsia, gainsboro,
|
||||
ghostwhite, gold, goldenrod, gray, grey, green,
|
||||
greenyellow, honeydew, hotpink, indianred, indigo,
|
||||
ivory, khaki, lavender, lavenderblush, lawngreen,
|
||||
lemonchiffon, lightblue, lightcoral, lightcyan,
|
||||
lightgoldenrodyellow, lightgray, lightgrey,
|
||||
lightgreen, lightpink, lightsalmon, lightseagreen,
|
||||
lightskyblue, lightslategray, lightslategrey,
|
||||
lightsteelblue, lightyellow, lime, limegreen,
|
||||
linen, magenta, maroon, mediumaquamarine,
|
||||
mediumblue, mediumorchid, mediumpurple,
|
||||
mediumseagreen, mediumslateblue, mediumspringgreen,
|
||||
mediumturquoise, mediumvioletred, midnightblue,
|
||||
mintcream, mistyrose, moccasin, navajowhite, navy,
|
||||
oldlace, olive, olivedrab, orange, orangered,
|
||||
orchid, palegoldenrod, palegreen, paleturquoise,
|
||||
palevioletred, papayawhip, peachpuff, peru, pink,
|
||||
plum, powderblue, purple, red, rosybrown,
|
||||
royalblue, rebeccapurple, saddlebrown, salmon,
|
||||
sandybrown, seagreen, seashell, sienna, silver,
|
||||
skyblue, slateblue, slategray, slategrey, snow,
|
||||
springgreen, steelblue, tan, teal, thistle, tomato,
|
||||
turquoise, violet, wheat, white, whitesmoke,
|
||||
yellow, yellowgreen
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["color"]
|
||||
|
||||
@color.setter
|
||||
def color(self, val):
|
||||
self["color"] = val
|
||||
|
||||
# family
|
||||
# ------
|
||||
@property
|
||||
def family(self):
|
||||
"""
|
||||
HTML font family - the typeface that will be applied by the web
|
||||
browser. The web browser will only be able to apply a font if
|
||||
it is available on the system which it operates. Provide
|
||||
multiple font families, separated by commas, to indicate the
|
||||
preference in which to apply fonts if they aren't available on
|
||||
the system. The Chart Studio Cloud (at https://chart-
|
||||
studio.plotly.com or on-premise) generates images on a server,
|
||||
where only a select number of fonts are installed and
|
||||
supported. These include "Arial", "Balto", "Courier New",
|
||||
"Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans
|
||||
Narrow", "Raleway", "Times New Roman".
|
||||
|
||||
The 'family' property is a string and must be specified as:
|
||||
- A non-empty string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["family"]
|
||||
|
||||
@family.setter
|
||||
def family(self, val):
|
||||
self["family"] = val
|
||||
|
||||
# size
|
||||
# ----
|
||||
@property
|
||||
def size(self):
|
||||
"""
|
||||
The 'size' property is a number and may be specified as:
|
||||
- An int or float in the interval [1, inf]
|
||||
|
||||
Returns
|
||||
-------
|
||||
int|float
|
||||
"""
|
||||
return self["size"]
|
||||
|
||||
@size.setter
|
||||
def size(self, val):
|
||||
self["size"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be applied by
|
||||
the web browser. The web browser will only be able to
|
||||
apply a font if it is available on the system which it
|
||||
operates. Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to apply
|
||||
fonts if they aren't available on the system. The Chart
|
||||
Studio Cloud (at https://chart-studio.plotly.com or on-
|
||||
premise) generates images on a server, where only a
|
||||
select number of fonts are installed and supported.
|
||||
These include "Arial", "Balto", "Courier New", "Droid
|
||||
Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT
|
||||
Sans Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
|
||||
"""
|
||||
Construct a new Labelfont object
|
||||
|
||||
Sets the font for the `dimension` labels.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of
|
||||
:class:`plotly.graph_objs.parcats.Labelfont`
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be applied by
|
||||
the web browser. The web browser will only be able to
|
||||
apply a font if it is available on the system which it
|
||||
operates. Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to apply
|
||||
fonts if they aren't available on the system. The Chart
|
||||
Studio Cloud (at https://chart-studio.plotly.com or on-
|
||||
premise) generates images on a server, where only a
|
||||
select number of fonts are installed and supported.
|
||||
These include "Arial", "Balto", "Courier New", "Droid
|
||||
Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT
|
||||
Sans Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
|
||||
Returns
|
||||
-------
|
||||
Labelfont
|
||||
"""
|
||||
super(Labelfont, self).__init__("labelfont")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.Labelfont
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.Labelfont`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("color", None)
|
||||
_v = color if color is not None else _v
|
||||
if _v is not None:
|
||||
self["color"] = _v
|
||||
_v = arg.pop("family", None)
|
||||
_v = family if family is not None else _v
|
||||
if _v is not None:
|
||||
self["family"] = _v
|
||||
_v = arg.pop("size", None)
|
||||
_v = size if size is not None else _v
|
||||
if _v is not None:
|
||||
self["size"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
@ -0,0 +1,154 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Legendgrouptitle(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats"
|
||||
_path_str = "parcats.legendgrouptitle"
|
||||
_valid_props = {"font", "text"}
|
||||
|
||||
# font
|
||||
# ----
|
||||
@property
|
||||
def font(self):
|
||||
"""
|
||||
Sets this legend group's title font.
|
||||
|
||||
The 'font' property is an instance of Font
|
||||
that may be specified as:
|
||||
- An instance of :class:`plotly.graph_objs.parcats.legendgrouptitle.Font`
|
||||
- A dict of string/value properties that will be passed
|
||||
to the Font constructor
|
||||
|
||||
Supported dict properties:
|
||||
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be
|
||||
applied by the web browser. The web browser
|
||||
will only be able to apply a font if it is
|
||||
available on the system which it operates.
|
||||
Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to
|
||||
apply fonts if they aren't available on the
|
||||
system. The Chart Studio Cloud (at
|
||||
https://chart-studio.plotly.com or on-premise)
|
||||
generates images on a server, where only a
|
||||
select number of fonts are installed and
|
||||
supported. These include "Arial", "Balto",
|
||||
"Courier New", "Droid Sans",, "Droid Serif",
|
||||
"Droid Sans Mono", "Gravitas One", "Old
|
||||
Standard TT", "Open Sans", "Overpass", "PT Sans
|
||||
Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
Returns
|
||||
-------
|
||||
plotly.graph_objs.parcats.legendgrouptitle.Font
|
||||
"""
|
||||
return self["font"]
|
||||
|
||||
@font.setter
|
||||
def font(self, val):
|
||||
self["font"] = val
|
||||
|
||||
# text
|
||||
# ----
|
||||
@property
|
||||
def text(self):
|
||||
"""
|
||||
Sets the title of the legend group.
|
||||
|
||||
The 'text' property is a string and must be specified as:
|
||||
- A string
|
||||
- A number that will be converted to a string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["text"]
|
||||
|
||||
@text.setter
|
||||
def text(self, val):
|
||||
self["text"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
font
|
||||
Sets this legend group's title font.
|
||||
text
|
||||
Sets the title of the legend group.
|
||||
"""
|
||||
|
||||
def __init__(self, arg=None, font=None, text=None, **kwargs):
|
||||
"""
|
||||
Construct a new Legendgrouptitle object
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of
|
||||
:class:`plotly.graph_objs.parcats.Legendgrouptitle`
|
||||
font
|
||||
Sets this legend group's title font.
|
||||
text
|
||||
Sets the title of the legend group.
|
||||
|
||||
Returns
|
||||
-------
|
||||
Legendgrouptitle
|
||||
"""
|
||||
super(Legendgrouptitle, self).__init__("legendgrouptitle")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.Legendgrouptitle
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.Legendgrouptitle`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("font", None)
|
||||
_v = font if font is not None else _v
|
||||
if _v is not None:
|
||||
self["font"] = _v
|
||||
_v = arg.pop("text", None)
|
||||
_v = text if text is not None else _v
|
||||
if _v is not None:
|
||||
self["text"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
1045
.venv/Lib/site-packages/plotly/graph_objs/parcats/_line.py
Normal file
1045
.venv/Lib/site-packages/plotly/graph_objs/parcats/_line.py
Normal file
File diff suppressed because it is too large
Load Diff
141
.venv/Lib/site-packages/plotly/graph_objs/parcats/_stream.py
Normal file
141
.venv/Lib/site-packages/plotly/graph_objs/parcats/_stream.py
Normal file
@ -0,0 +1,141 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Stream(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats"
|
||||
_path_str = "parcats.stream"
|
||||
_valid_props = {"maxpoints", "token"}
|
||||
|
||||
# maxpoints
|
||||
# ---------
|
||||
@property
|
||||
def maxpoints(self):
|
||||
"""
|
||||
Sets the maximum number of points to keep on the plots from an
|
||||
incoming stream. If `maxpoints` is set to 50, only the newest
|
||||
50 points will be displayed on the plot.
|
||||
|
||||
The 'maxpoints' property is a number and may be specified as:
|
||||
- An int or float in the interval [0, 10000]
|
||||
|
||||
Returns
|
||||
-------
|
||||
int|float
|
||||
"""
|
||||
return self["maxpoints"]
|
||||
|
||||
@maxpoints.setter
|
||||
def maxpoints(self, val):
|
||||
self["maxpoints"] = val
|
||||
|
||||
# token
|
||||
# -----
|
||||
@property
|
||||
def token(self):
|
||||
"""
|
||||
The stream id number links a data trace on a plot with a
|
||||
stream. See https://chart-studio.plotly.com/settings for more
|
||||
details.
|
||||
|
||||
The 'token' property is a string and must be specified as:
|
||||
- A non-empty string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["token"]
|
||||
|
||||
@token.setter
|
||||
def token(self, val):
|
||||
self["token"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
maxpoints
|
||||
Sets the maximum number of points to keep on the plots
|
||||
from an incoming stream. If `maxpoints` is set to 50,
|
||||
only the newest 50 points will be displayed on the
|
||||
plot.
|
||||
token
|
||||
The stream id number links a data trace on a plot with
|
||||
a stream. See https://chart-studio.plotly.com/settings
|
||||
for more details.
|
||||
"""
|
||||
|
||||
def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):
|
||||
"""
|
||||
Construct a new Stream object
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of
|
||||
:class:`plotly.graph_objs.parcats.Stream`
|
||||
maxpoints
|
||||
Sets the maximum number of points to keep on the plots
|
||||
from an incoming stream. If `maxpoints` is set to 50,
|
||||
only the newest 50 points will be displayed on the
|
||||
plot.
|
||||
token
|
||||
The stream id number links a data trace on a plot with
|
||||
a stream. See https://chart-studio.plotly.com/settings
|
||||
for more details.
|
||||
|
||||
Returns
|
||||
-------
|
||||
Stream
|
||||
"""
|
||||
super(Stream, self).__init__("stream")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.Stream
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.Stream`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("maxpoints", None)
|
||||
_v = maxpoints if maxpoints is not None else _v
|
||||
if _v is not None:
|
||||
self["maxpoints"] = _v
|
||||
_v = arg.pop("token", None)
|
||||
_v = token if token is not None else _v
|
||||
if _v is not None:
|
||||
self["token"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
227
.venv/Lib/site-packages/plotly/graph_objs/parcats/_tickfont.py
Normal file
227
.venv/Lib/site-packages/plotly/graph_objs/parcats/_tickfont.py
Normal file
@ -0,0 +1,227 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Tickfont(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats"
|
||||
_path_str = "parcats.tickfont"
|
||||
_valid_props = {"color", "family", "size"}
|
||||
|
||||
# color
|
||||
# -----
|
||||
@property
|
||||
def color(self):
|
||||
"""
|
||||
The 'color' property is a color and may be specified as:
|
||||
- A hex string (e.g. '#ff0000')
|
||||
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
||||
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
||||
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
||||
- A named CSS color:
|
||||
aliceblue, antiquewhite, aqua, aquamarine, azure,
|
||||
beige, bisque, black, blanchedalmond, blue,
|
||||
blueviolet, brown, burlywood, cadetblue,
|
||||
chartreuse, chocolate, coral, cornflowerblue,
|
||||
cornsilk, crimson, cyan, darkblue, darkcyan,
|
||||
darkgoldenrod, darkgray, darkgrey, darkgreen,
|
||||
darkkhaki, darkmagenta, darkolivegreen, darkorange,
|
||||
darkorchid, darkred, darksalmon, darkseagreen,
|
||||
darkslateblue, darkslategray, darkslategrey,
|
||||
darkturquoise, darkviolet, deeppink, deepskyblue,
|
||||
dimgray, dimgrey, dodgerblue, firebrick,
|
||||
floralwhite, forestgreen, fuchsia, gainsboro,
|
||||
ghostwhite, gold, goldenrod, gray, grey, green,
|
||||
greenyellow, honeydew, hotpink, indianred, indigo,
|
||||
ivory, khaki, lavender, lavenderblush, lawngreen,
|
||||
lemonchiffon, lightblue, lightcoral, lightcyan,
|
||||
lightgoldenrodyellow, lightgray, lightgrey,
|
||||
lightgreen, lightpink, lightsalmon, lightseagreen,
|
||||
lightskyblue, lightslategray, lightslategrey,
|
||||
lightsteelblue, lightyellow, lime, limegreen,
|
||||
linen, magenta, maroon, mediumaquamarine,
|
||||
mediumblue, mediumorchid, mediumpurple,
|
||||
mediumseagreen, mediumslateblue, mediumspringgreen,
|
||||
mediumturquoise, mediumvioletred, midnightblue,
|
||||
mintcream, mistyrose, moccasin, navajowhite, navy,
|
||||
oldlace, olive, olivedrab, orange, orangered,
|
||||
orchid, palegoldenrod, palegreen, paleturquoise,
|
||||
palevioletred, papayawhip, peachpuff, peru, pink,
|
||||
plum, powderblue, purple, red, rosybrown,
|
||||
royalblue, rebeccapurple, saddlebrown, salmon,
|
||||
sandybrown, seagreen, seashell, sienna, silver,
|
||||
skyblue, slateblue, slategray, slategrey, snow,
|
||||
springgreen, steelblue, tan, teal, thistle, tomato,
|
||||
turquoise, violet, wheat, white, whitesmoke,
|
||||
yellow, yellowgreen
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["color"]
|
||||
|
||||
@color.setter
|
||||
def color(self, val):
|
||||
self["color"] = val
|
||||
|
||||
# family
|
||||
# ------
|
||||
@property
|
||||
def family(self):
|
||||
"""
|
||||
HTML font family - the typeface that will be applied by the web
|
||||
browser. The web browser will only be able to apply a font if
|
||||
it is available on the system which it operates. Provide
|
||||
multiple font families, separated by commas, to indicate the
|
||||
preference in which to apply fonts if they aren't available on
|
||||
the system. The Chart Studio Cloud (at https://chart-
|
||||
studio.plotly.com or on-premise) generates images on a server,
|
||||
where only a select number of fonts are installed and
|
||||
supported. These include "Arial", "Balto", "Courier New",
|
||||
"Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans
|
||||
Narrow", "Raleway", "Times New Roman".
|
||||
|
||||
The 'family' property is a string and must be specified as:
|
||||
- A non-empty string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["family"]
|
||||
|
||||
@family.setter
|
||||
def family(self, val):
|
||||
self["family"] = val
|
||||
|
||||
# size
|
||||
# ----
|
||||
@property
|
||||
def size(self):
|
||||
"""
|
||||
The 'size' property is a number and may be specified as:
|
||||
- An int or float in the interval [1, inf]
|
||||
|
||||
Returns
|
||||
-------
|
||||
int|float
|
||||
"""
|
||||
return self["size"]
|
||||
|
||||
@size.setter
|
||||
def size(self, val):
|
||||
self["size"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be applied by
|
||||
the web browser. The web browser will only be able to
|
||||
apply a font if it is available on the system which it
|
||||
operates. Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to apply
|
||||
fonts if they aren't available on the system. The Chart
|
||||
Studio Cloud (at https://chart-studio.plotly.com or on-
|
||||
premise) generates images on a server, where only a
|
||||
select number of fonts are installed and supported.
|
||||
These include "Arial", "Balto", "Courier New", "Droid
|
||||
Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT
|
||||
Sans Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
|
||||
"""
|
||||
Construct a new Tickfont object
|
||||
|
||||
Sets the font for the `category` labels.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of
|
||||
:class:`plotly.graph_objs.parcats.Tickfont`
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be applied by
|
||||
the web browser. The web browser will only be able to
|
||||
apply a font if it is available on the system which it
|
||||
operates. Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to apply
|
||||
fonts if they aren't available on the system. The Chart
|
||||
Studio Cloud (at https://chart-studio.plotly.com or on-
|
||||
premise) generates images on a server, where only a
|
||||
select number of fonts are installed and supported.
|
||||
These include "Arial", "Balto", "Courier New", "Droid
|
||||
Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT
|
||||
Sans Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
|
||||
Returns
|
||||
-------
|
||||
Tickfont
|
||||
"""
|
||||
super(Tickfont, self).__init__("tickfont")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.Tickfont
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.Tickfont`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("color", None)
|
||||
_v = color if color is not None else _v
|
||||
if _v is not None:
|
||||
self["color"] = _v
|
||||
_v = arg.pop("family", None)
|
||||
_v = family if family is not None else _v
|
||||
if _v is not None:
|
||||
self["family"] = _v
|
||||
_v = arg.pop("size", None)
|
||||
_v = size if size is not None else _v
|
||||
if _v is not None:
|
||||
self["size"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
@ -0,0 +1,9 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._font import Font
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])
|
@ -0,0 +1,227 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Font(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats.legendgrouptitle"
|
||||
_path_str = "parcats.legendgrouptitle.font"
|
||||
_valid_props = {"color", "family", "size"}
|
||||
|
||||
# color
|
||||
# -----
|
||||
@property
|
||||
def color(self):
|
||||
"""
|
||||
The 'color' property is a color and may be specified as:
|
||||
- A hex string (e.g. '#ff0000')
|
||||
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
||||
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
||||
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
||||
- A named CSS color:
|
||||
aliceblue, antiquewhite, aqua, aquamarine, azure,
|
||||
beige, bisque, black, blanchedalmond, blue,
|
||||
blueviolet, brown, burlywood, cadetblue,
|
||||
chartreuse, chocolate, coral, cornflowerblue,
|
||||
cornsilk, crimson, cyan, darkblue, darkcyan,
|
||||
darkgoldenrod, darkgray, darkgrey, darkgreen,
|
||||
darkkhaki, darkmagenta, darkolivegreen, darkorange,
|
||||
darkorchid, darkred, darksalmon, darkseagreen,
|
||||
darkslateblue, darkslategray, darkslategrey,
|
||||
darkturquoise, darkviolet, deeppink, deepskyblue,
|
||||
dimgray, dimgrey, dodgerblue, firebrick,
|
||||
floralwhite, forestgreen, fuchsia, gainsboro,
|
||||
ghostwhite, gold, goldenrod, gray, grey, green,
|
||||
greenyellow, honeydew, hotpink, indianred, indigo,
|
||||
ivory, khaki, lavender, lavenderblush, lawngreen,
|
||||
lemonchiffon, lightblue, lightcoral, lightcyan,
|
||||
lightgoldenrodyellow, lightgray, lightgrey,
|
||||
lightgreen, lightpink, lightsalmon, lightseagreen,
|
||||
lightskyblue, lightslategray, lightslategrey,
|
||||
lightsteelblue, lightyellow, lime, limegreen,
|
||||
linen, magenta, maroon, mediumaquamarine,
|
||||
mediumblue, mediumorchid, mediumpurple,
|
||||
mediumseagreen, mediumslateblue, mediumspringgreen,
|
||||
mediumturquoise, mediumvioletred, midnightblue,
|
||||
mintcream, mistyrose, moccasin, navajowhite, navy,
|
||||
oldlace, olive, olivedrab, orange, orangered,
|
||||
orchid, palegoldenrod, palegreen, paleturquoise,
|
||||
palevioletred, papayawhip, peachpuff, peru, pink,
|
||||
plum, powderblue, purple, red, rosybrown,
|
||||
royalblue, rebeccapurple, saddlebrown, salmon,
|
||||
sandybrown, seagreen, seashell, sienna, silver,
|
||||
skyblue, slateblue, slategray, slategrey, snow,
|
||||
springgreen, steelblue, tan, teal, thistle, tomato,
|
||||
turquoise, violet, wheat, white, whitesmoke,
|
||||
yellow, yellowgreen
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["color"]
|
||||
|
||||
@color.setter
|
||||
def color(self, val):
|
||||
self["color"] = val
|
||||
|
||||
# family
|
||||
# ------
|
||||
@property
|
||||
def family(self):
|
||||
"""
|
||||
HTML font family - the typeface that will be applied by the web
|
||||
browser. The web browser will only be able to apply a font if
|
||||
it is available on the system which it operates. Provide
|
||||
multiple font families, separated by commas, to indicate the
|
||||
preference in which to apply fonts if they aren't available on
|
||||
the system. The Chart Studio Cloud (at https://chart-
|
||||
studio.plotly.com or on-premise) generates images on a server,
|
||||
where only a select number of fonts are installed and
|
||||
supported. These include "Arial", "Balto", "Courier New",
|
||||
"Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans
|
||||
Narrow", "Raleway", "Times New Roman".
|
||||
|
||||
The 'family' property is a string and must be specified as:
|
||||
- A non-empty string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["family"]
|
||||
|
||||
@family.setter
|
||||
def family(self, val):
|
||||
self["family"] = val
|
||||
|
||||
# size
|
||||
# ----
|
||||
@property
|
||||
def size(self):
|
||||
"""
|
||||
The 'size' property is a number and may be specified as:
|
||||
- An int or float in the interval [1, inf]
|
||||
|
||||
Returns
|
||||
-------
|
||||
int|float
|
||||
"""
|
||||
return self["size"]
|
||||
|
||||
@size.setter
|
||||
def size(self, val):
|
||||
self["size"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be applied by
|
||||
the web browser. The web browser will only be able to
|
||||
apply a font if it is available on the system which it
|
||||
operates. Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to apply
|
||||
fonts if they aren't available on the system. The Chart
|
||||
Studio Cloud (at https://chart-studio.plotly.com or on-
|
||||
premise) generates images on a server, where only a
|
||||
select number of fonts are installed and supported.
|
||||
These include "Arial", "Balto", "Courier New", "Droid
|
||||
Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT
|
||||
Sans Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
|
||||
"""
|
||||
Construct a new Font object
|
||||
|
||||
Sets this legend group's title font.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of :class:`plotly.graph_objs.parcats.legend
|
||||
grouptitle.Font`
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be applied by
|
||||
the web browser. The web browser will only be able to
|
||||
apply a font if it is available on the system which it
|
||||
operates. Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to apply
|
||||
fonts if they aren't available on the system. The Chart
|
||||
Studio Cloud (at https://chart-studio.plotly.com or on-
|
||||
premise) generates images on a server, where only a
|
||||
select number of fonts are installed and supported.
|
||||
These include "Arial", "Balto", "Courier New", "Droid
|
||||
Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT
|
||||
Sans Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
|
||||
Returns
|
||||
-------
|
||||
Font
|
||||
"""
|
||||
super(Font, self).__init__("font")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.legendgrouptitle.Font
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.legendgrouptitle.Font`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("color", None)
|
||||
_v = color if color is not None else _v
|
||||
if _v is not None:
|
||||
self["color"] = _v
|
||||
_v = arg.pop("family", None)
|
||||
_v = family if family is not None else _v
|
||||
if _v is not None:
|
||||
self["family"] = _v
|
||||
_v = arg.pop("size", None)
|
||||
_v = size if size is not None else _v
|
||||
if _v is not None:
|
||||
self["size"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
@ -0,0 +1,12 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._colorbar import ColorBar
|
||||
from . import colorbar
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__, [".colorbar"], ["._colorbar.ColorBar"]
|
||||
)
|
2166
.venv/Lib/site-packages/plotly/graph_objs/parcats/line/_colorbar.py
Normal file
2166
.venv/Lib/site-packages/plotly/graph_objs/parcats/line/_colorbar.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,16 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._tickfont import Tickfont
|
||||
from ._tickformatstop import Tickformatstop
|
||||
from ._title import Title
|
||||
from . import title
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[".title"],
|
||||
["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"],
|
||||
)
|
@ -0,0 +1,227 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Tickfont(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats.line.colorbar"
|
||||
_path_str = "parcats.line.colorbar.tickfont"
|
||||
_valid_props = {"color", "family", "size"}
|
||||
|
||||
# color
|
||||
# -----
|
||||
@property
|
||||
def color(self):
|
||||
"""
|
||||
The 'color' property is a color and may be specified as:
|
||||
- A hex string (e.g. '#ff0000')
|
||||
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
||||
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
||||
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
||||
- A named CSS color:
|
||||
aliceblue, antiquewhite, aqua, aquamarine, azure,
|
||||
beige, bisque, black, blanchedalmond, blue,
|
||||
blueviolet, brown, burlywood, cadetblue,
|
||||
chartreuse, chocolate, coral, cornflowerblue,
|
||||
cornsilk, crimson, cyan, darkblue, darkcyan,
|
||||
darkgoldenrod, darkgray, darkgrey, darkgreen,
|
||||
darkkhaki, darkmagenta, darkolivegreen, darkorange,
|
||||
darkorchid, darkred, darksalmon, darkseagreen,
|
||||
darkslateblue, darkslategray, darkslategrey,
|
||||
darkturquoise, darkviolet, deeppink, deepskyblue,
|
||||
dimgray, dimgrey, dodgerblue, firebrick,
|
||||
floralwhite, forestgreen, fuchsia, gainsboro,
|
||||
ghostwhite, gold, goldenrod, gray, grey, green,
|
||||
greenyellow, honeydew, hotpink, indianred, indigo,
|
||||
ivory, khaki, lavender, lavenderblush, lawngreen,
|
||||
lemonchiffon, lightblue, lightcoral, lightcyan,
|
||||
lightgoldenrodyellow, lightgray, lightgrey,
|
||||
lightgreen, lightpink, lightsalmon, lightseagreen,
|
||||
lightskyblue, lightslategray, lightslategrey,
|
||||
lightsteelblue, lightyellow, lime, limegreen,
|
||||
linen, magenta, maroon, mediumaquamarine,
|
||||
mediumblue, mediumorchid, mediumpurple,
|
||||
mediumseagreen, mediumslateblue, mediumspringgreen,
|
||||
mediumturquoise, mediumvioletred, midnightblue,
|
||||
mintcream, mistyrose, moccasin, navajowhite, navy,
|
||||
oldlace, olive, olivedrab, orange, orangered,
|
||||
orchid, palegoldenrod, palegreen, paleturquoise,
|
||||
palevioletred, papayawhip, peachpuff, peru, pink,
|
||||
plum, powderblue, purple, red, rosybrown,
|
||||
royalblue, rebeccapurple, saddlebrown, salmon,
|
||||
sandybrown, seagreen, seashell, sienna, silver,
|
||||
skyblue, slateblue, slategray, slategrey, snow,
|
||||
springgreen, steelblue, tan, teal, thistle, tomato,
|
||||
turquoise, violet, wheat, white, whitesmoke,
|
||||
yellow, yellowgreen
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["color"]
|
||||
|
||||
@color.setter
|
||||
def color(self, val):
|
||||
self["color"] = val
|
||||
|
||||
# family
|
||||
# ------
|
||||
@property
|
||||
def family(self):
|
||||
"""
|
||||
HTML font family - the typeface that will be applied by the web
|
||||
browser. The web browser will only be able to apply a font if
|
||||
it is available on the system which it operates. Provide
|
||||
multiple font families, separated by commas, to indicate the
|
||||
preference in which to apply fonts if they aren't available on
|
||||
the system. The Chart Studio Cloud (at https://chart-
|
||||
studio.plotly.com or on-premise) generates images on a server,
|
||||
where only a select number of fonts are installed and
|
||||
supported. These include "Arial", "Balto", "Courier New",
|
||||
"Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans
|
||||
Narrow", "Raleway", "Times New Roman".
|
||||
|
||||
The 'family' property is a string and must be specified as:
|
||||
- A non-empty string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["family"]
|
||||
|
||||
@family.setter
|
||||
def family(self, val):
|
||||
self["family"] = val
|
||||
|
||||
# size
|
||||
# ----
|
||||
@property
|
||||
def size(self):
|
||||
"""
|
||||
The 'size' property is a number and may be specified as:
|
||||
- An int or float in the interval [1, inf]
|
||||
|
||||
Returns
|
||||
-------
|
||||
int|float
|
||||
"""
|
||||
return self["size"]
|
||||
|
||||
@size.setter
|
||||
def size(self, val):
|
||||
self["size"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be applied by
|
||||
the web browser. The web browser will only be able to
|
||||
apply a font if it is available on the system which it
|
||||
operates. Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to apply
|
||||
fonts if they aren't available on the system. The Chart
|
||||
Studio Cloud (at https://chart-studio.plotly.com or on-
|
||||
premise) generates images on a server, where only a
|
||||
select number of fonts are installed and supported.
|
||||
These include "Arial", "Balto", "Courier New", "Droid
|
||||
Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT
|
||||
Sans Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
|
||||
"""
|
||||
Construct a new Tickfont object
|
||||
|
||||
Sets the color bar's tick label font
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of :class:`plotly.graph_objs.parcats.line.c
|
||||
olorbar.Tickfont`
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be applied by
|
||||
the web browser. The web browser will only be able to
|
||||
apply a font if it is available on the system which it
|
||||
operates. Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to apply
|
||||
fonts if they aren't available on the system. The Chart
|
||||
Studio Cloud (at https://chart-studio.plotly.com or on-
|
||||
premise) generates images on a server, where only a
|
||||
select number of fonts are installed and supported.
|
||||
These include "Arial", "Balto", "Courier New", "Droid
|
||||
Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT
|
||||
Sans Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
|
||||
Returns
|
||||
-------
|
||||
Tickfont
|
||||
"""
|
||||
super(Tickfont, self).__init__("tickfont")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.line.colorbar.Tickfont
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.line.colorbar.Tickfont`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("color", None)
|
||||
_v = color if color is not None else _v
|
||||
if _v is not None:
|
||||
self["color"] = _v
|
||||
_v = arg.pop("family", None)
|
||||
_v = family if family is not None else _v
|
||||
if _v is not None:
|
||||
self["family"] = _v
|
||||
_v = arg.pop("size", None)
|
||||
_v = size if size is not None else _v
|
||||
if _v is not None:
|
||||
self["size"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
@ -0,0 +1,283 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Tickformatstop(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats.line.colorbar"
|
||||
_path_str = "parcats.line.colorbar.tickformatstop"
|
||||
_valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"}
|
||||
|
||||
# dtickrange
|
||||
# ----------
|
||||
@property
|
||||
def dtickrange(self):
|
||||
"""
|
||||
range [*min*, *max*], where "min", "max" - dtick values which
|
||||
describe some zoom level, it is possible to omit "min" or "max"
|
||||
value by passing "null"
|
||||
|
||||
The 'dtickrange' property is an info array that may be specified as:
|
||||
|
||||
* a list or tuple of 2 elements where:
|
||||
(0) The 'dtickrange[0]' property accepts values of any type
|
||||
(1) The 'dtickrange[1]' property accepts values of any type
|
||||
|
||||
Returns
|
||||
-------
|
||||
list
|
||||
"""
|
||||
return self["dtickrange"]
|
||||
|
||||
@dtickrange.setter
|
||||
def dtickrange(self, val):
|
||||
self["dtickrange"] = val
|
||||
|
||||
# enabled
|
||||
# -------
|
||||
@property
|
||||
def enabled(self):
|
||||
"""
|
||||
Determines whether or not this stop is used. If `false`, this
|
||||
stop is ignored even within its `dtickrange`.
|
||||
|
||||
The 'enabled' property must be specified as a bool
|
||||
(either True, or False)
|
||||
|
||||
Returns
|
||||
-------
|
||||
bool
|
||||
"""
|
||||
return self["enabled"]
|
||||
|
||||
@enabled.setter
|
||||
def enabled(self, val):
|
||||
self["enabled"] = val
|
||||
|
||||
# name
|
||||
# ----
|
||||
@property
|
||||
def name(self):
|
||||
"""
|
||||
When used in a template, named items are created in the output
|
||||
figure in addition to any items the figure already has in this
|
||||
array. You can modify these items in the output figure by
|
||||
making your own item with `templateitemname` matching this
|
||||
`name` alongside your modifications (including `visible: false`
|
||||
or `enabled: false` to hide it). Has no effect outside of a
|
||||
template.
|
||||
|
||||
The 'name' property is a string and must be specified as:
|
||||
- A string
|
||||
- A number that will be converted to a string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["name"]
|
||||
|
||||
@name.setter
|
||||
def name(self, val):
|
||||
self["name"] = val
|
||||
|
||||
# templateitemname
|
||||
# ----------------
|
||||
@property
|
||||
def templateitemname(self):
|
||||
"""
|
||||
Used to refer to a named item in this array in the template.
|
||||
Named items from the template will be created even without a
|
||||
matching item in the input figure, but you can modify one by
|
||||
making an item with `templateitemname` matching its `name`,
|
||||
alongside your modifications (including `visible: false` or
|
||||
`enabled: false` to hide it). If there is no template or no
|
||||
matching item, this item will be hidden unless you explicitly
|
||||
show it with `visible: true`.
|
||||
|
||||
The 'templateitemname' property is a string and must be specified as:
|
||||
- A string
|
||||
- A number that will be converted to a string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["templateitemname"]
|
||||
|
||||
@templateitemname.setter
|
||||
def templateitemname(self, val):
|
||||
self["templateitemname"] = val
|
||||
|
||||
# value
|
||||
# -----
|
||||
@property
|
||||
def value(self):
|
||||
"""
|
||||
string - dtickformat for described zoom level, the same as
|
||||
"tickformat"
|
||||
|
||||
The 'value' property is a string and must be specified as:
|
||||
- A string
|
||||
- A number that will be converted to a string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["value"]
|
||||
|
||||
@value.setter
|
||||
def value(self, val):
|
||||
self["value"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
dtickrange
|
||||
range [*min*, *max*], where "min", "max" - dtick values
|
||||
which describe some zoom level, it is possible to omit
|
||||
"min" or "max" value by passing "null"
|
||||
enabled
|
||||
Determines whether or not this stop is used. If
|
||||
`false`, this stop is ignored even within its
|
||||
`dtickrange`.
|
||||
name
|
||||
When used in a template, named items are created in the
|
||||
output figure in addition to any items the figure
|
||||
already has in this array. You can modify these items
|
||||
in the output figure by making your own item with
|
||||
`templateitemname` matching this `name` alongside your
|
||||
modifications (including `visible: false` or `enabled:
|
||||
false` to hide it). Has no effect outside of a
|
||||
template.
|
||||
templateitemname
|
||||
Used to refer to a named item in this array in the
|
||||
template. Named items from the template will be created
|
||||
even without a matching item in the input figure, but
|
||||
you can modify one by making an item with
|
||||
`templateitemname` matching its `name`, alongside your
|
||||
modifications (including `visible: false` or `enabled:
|
||||
false` to hide it). If there is no template or no
|
||||
matching item, this item will be hidden unless you
|
||||
explicitly show it with `visible: true`.
|
||||
value
|
||||
string - dtickformat for described zoom level, the same
|
||||
as "tickformat"
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
arg=None,
|
||||
dtickrange=None,
|
||||
enabled=None,
|
||||
name=None,
|
||||
templateitemname=None,
|
||||
value=None,
|
||||
**kwargs,
|
||||
):
|
||||
"""
|
||||
Construct a new Tickformatstop object
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of :class:`plotly.graph_objs.parcats.line.c
|
||||
olorbar.Tickformatstop`
|
||||
dtickrange
|
||||
range [*min*, *max*], where "min", "max" - dtick values
|
||||
which describe some zoom level, it is possible to omit
|
||||
"min" or "max" value by passing "null"
|
||||
enabled
|
||||
Determines whether or not this stop is used. If
|
||||
`false`, this stop is ignored even within its
|
||||
`dtickrange`.
|
||||
name
|
||||
When used in a template, named items are created in the
|
||||
output figure in addition to any items the figure
|
||||
already has in this array. You can modify these items
|
||||
in the output figure by making your own item with
|
||||
`templateitemname` matching this `name` alongside your
|
||||
modifications (including `visible: false` or `enabled:
|
||||
false` to hide it). Has no effect outside of a
|
||||
template.
|
||||
templateitemname
|
||||
Used to refer to a named item in this array in the
|
||||
template. Named items from the template will be created
|
||||
even without a matching item in the input figure, but
|
||||
you can modify one by making an item with
|
||||
`templateitemname` matching its `name`, alongside your
|
||||
modifications (including `visible: false` or `enabled:
|
||||
false` to hide it). If there is no template or no
|
||||
matching item, this item will be hidden unless you
|
||||
explicitly show it with `visible: true`.
|
||||
value
|
||||
string - dtickformat for described zoom level, the same
|
||||
as "tickformat"
|
||||
|
||||
Returns
|
||||
-------
|
||||
Tickformatstop
|
||||
"""
|
||||
super(Tickformatstop, self).__init__("tickformatstops")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.line.colorbar.Tickformatstop
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.line.colorbar.Tickformatstop`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("dtickrange", None)
|
||||
_v = dtickrange if dtickrange is not None else _v
|
||||
if _v is not None:
|
||||
self["dtickrange"] = _v
|
||||
_v = arg.pop("enabled", None)
|
||||
_v = enabled if enabled is not None else _v
|
||||
if _v is not None:
|
||||
self["enabled"] = _v
|
||||
_v = arg.pop("name", None)
|
||||
_v = name if name is not None else _v
|
||||
if _v is not None:
|
||||
self["name"] = _v
|
||||
_v = arg.pop("templateitemname", None)
|
||||
_v = templateitemname if templateitemname is not None else _v
|
||||
if _v is not None:
|
||||
self["templateitemname"] = _v
|
||||
_v = arg.pop("value", None)
|
||||
_v = value if value is not None else _v
|
||||
if _v is not None:
|
||||
self["value"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
@ -0,0 +1,210 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Title(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats.line.colorbar"
|
||||
_path_str = "parcats.line.colorbar.title"
|
||||
_valid_props = {"font", "side", "text"}
|
||||
|
||||
# font
|
||||
# ----
|
||||
@property
|
||||
def font(self):
|
||||
"""
|
||||
Sets this color bar's title font. Note that the title's font
|
||||
used to be set by the now deprecated `titlefont` attribute.
|
||||
|
||||
The 'font' property is an instance of Font
|
||||
that may be specified as:
|
||||
- An instance of :class:`plotly.graph_objs.parcats.line.colorbar.title.Font`
|
||||
- A dict of string/value properties that will be passed
|
||||
to the Font constructor
|
||||
|
||||
Supported dict properties:
|
||||
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be
|
||||
applied by the web browser. The web browser
|
||||
will only be able to apply a font if it is
|
||||
available on the system which it operates.
|
||||
Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to
|
||||
apply fonts if they aren't available on the
|
||||
system. The Chart Studio Cloud (at
|
||||
https://chart-studio.plotly.com or on-premise)
|
||||
generates images on a server, where only a
|
||||
select number of fonts are installed and
|
||||
supported. These include "Arial", "Balto",
|
||||
"Courier New", "Droid Sans",, "Droid Serif",
|
||||
"Droid Sans Mono", "Gravitas One", "Old
|
||||
Standard TT", "Open Sans", "Overpass", "PT Sans
|
||||
Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
Returns
|
||||
-------
|
||||
plotly.graph_objs.parcats.line.colorbar.title.Font
|
||||
"""
|
||||
return self["font"]
|
||||
|
||||
@font.setter
|
||||
def font(self, val):
|
||||
self["font"] = val
|
||||
|
||||
# side
|
||||
# ----
|
||||
@property
|
||||
def side(self):
|
||||
"""
|
||||
Determines the location of color bar's title with respect to
|
||||
the color bar. Defaults to "top" when `orientation` if "v" and
|
||||
defaults to "right" when `orientation` if "h". Note that the
|
||||
title's location used to be set by the now deprecated
|
||||
`titleside` attribute.
|
||||
|
||||
The 'side' property is an enumeration that may be specified as:
|
||||
- One of the following enumeration values:
|
||||
['right', 'top', 'bottom']
|
||||
|
||||
Returns
|
||||
-------
|
||||
Any
|
||||
"""
|
||||
return self["side"]
|
||||
|
||||
@side.setter
|
||||
def side(self, val):
|
||||
self["side"] = val
|
||||
|
||||
# text
|
||||
# ----
|
||||
@property
|
||||
def text(self):
|
||||
"""
|
||||
Sets the title of the color bar. Note that before the existence
|
||||
of `title.text`, the title's contents used to be defined as the
|
||||
`title` attribute itself. This behavior has been deprecated.
|
||||
|
||||
The 'text' property is a string and must be specified as:
|
||||
- A string
|
||||
- A number that will be converted to a string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["text"]
|
||||
|
||||
@text.setter
|
||||
def text(self, val):
|
||||
self["text"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
font
|
||||
Sets this color bar's title font. Note that the title's
|
||||
font used to be set by the now deprecated `titlefont`
|
||||
attribute.
|
||||
side
|
||||
Determines the location of color bar's title with
|
||||
respect to the color bar. Defaults to "top" when
|
||||
`orientation` if "v" and defaults to "right" when
|
||||
`orientation` if "h". Note that the title's location
|
||||
used to be set by the now deprecated `titleside`
|
||||
attribute.
|
||||
text
|
||||
Sets the title of the color bar. Note that before the
|
||||
existence of `title.text`, the title's contents used to
|
||||
be defined as the `title` attribute itself. This
|
||||
behavior has been deprecated.
|
||||
"""
|
||||
|
||||
def __init__(self, arg=None, font=None, side=None, text=None, **kwargs):
|
||||
"""
|
||||
Construct a new Title object
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of
|
||||
:class:`plotly.graph_objs.parcats.line.colorbar.Title`
|
||||
font
|
||||
Sets this color bar's title font. Note that the title's
|
||||
font used to be set by the now deprecated `titlefont`
|
||||
attribute.
|
||||
side
|
||||
Determines the location of color bar's title with
|
||||
respect to the color bar. Defaults to "top" when
|
||||
`orientation` if "v" and defaults to "right" when
|
||||
`orientation` if "h". Note that the title's location
|
||||
used to be set by the now deprecated `titleside`
|
||||
attribute.
|
||||
text
|
||||
Sets the title of the color bar. Note that before the
|
||||
existence of `title.text`, the title's contents used to
|
||||
be defined as the `title` attribute itself. This
|
||||
behavior has been deprecated.
|
||||
|
||||
Returns
|
||||
-------
|
||||
Title
|
||||
"""
|
||||
super(Title, self).__init__("title")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.line.colorbar.Title
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.line.colorbar.Title`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("font", None)
|
||||
_v = font if font is not None else _v
|
||||
if _v is not None:
|
||||
self["font"] = _v
|
||||
_v = arg.pop("side", None)
|
||||
_v = side if side is not None else _v
|
||||
if _v is not None:
|
||||
self["side"] = _v
|
||||
_v = arg.pop("text", None)
|
||||
_v = text if text is not None else _v
|
||||
if _v is not None:
|
||||
self["text"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
@ -0,0 +1,9 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._font import Font
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])
|
@ -0,0 +1,228 @@
|
||||
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
|
||||
import copy as _copy
|
||||
|
||||
|
||||
class Font(_BaseTraceHierarchyType):
|
||||
|
||||
# class properties
|
||||
# --------------------
|
||||
_parent_path_str = "parcats.line.colorbar.title"
|
||||
_path_str = "parcats.line.colorbar.title.font"
|
||||
_valid_props = {"color", "family", "size"}
|
||||
|
||||
# color
|
||||
# -----
|
||||
@property
|
||||
def color(self):
|
||||
"""
|
||||
The 'color' property is a color and may be specified as:
|
||||
- A hex string (e.g. '#ff0000')
|
||||
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
||||
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
||||
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
||||
- A named CSS color:
|
||||
aliceblue, antiquewhite, aqua, aquamarine, azure,
|
||||
beige, bisque, black, blanchedalmond, blue,
|
||||
blueviolet, brown, burlywood, cadetblue,
|
||||
chartreuse, chocolate, coral, cornflowerblue,
|
||||
cornsilk, crimson, cyan, darkblue, darkcyan,
|
||||
darkgoldenrod, darkgray, darkgrey, darkgreen,
|
||||
darkkhaki, darkmagenta, darkolivegreen, darkorange,
|
||||
darkorchid, darkred, darksalmon, darkseagreen,
|
||||
darkslateblue, darkslategray, darkslategrey,
|
||||
darkturquoise, darkviolet, deeppink, deepskyblue,
|
||||
dimgray, dimgrey, dodgerblue, firebrick,
|
||||
floralwhite, forestgreen, fuchsia, gainsboro,
|
||||
ghostwhite, gold, goldenrod, gray, grey, green,
|
||||
greenyellow, honeydew, hotpink, indianred, indigo,
|
||||
ivory, khaki, lavender, lavenderblush, lawngreen,
|
||||
lemonchiffon, lightblue, lightcoral, lightcyan,
|
||||
lightgoldenrodyellow, lightgray, lightgrey,
|
||||
lightgreen, lightpink, lightsalmon, lightseagreen,
|
||||
lightskyblue, lightslategray, lightslategrey,
|
||||
lightsteelblue, lightyellow, lime, limegreen,
|
||||
linen, magenta, maroon, mediumaquamarine,
|
||||
mediumblue, mediumorchid, mediumpurple,
|
||||
mediumseagreen, mediumslateblue, mediumspringgreen,
|
||||
mediumturquoise, mediumvioletred, midnightblue,
|
||||
mintcream, mistyrose, moccasin, navajowhite, navy,
|
||||
oldlace, olive, olivedrab, orange, orangered,
|
||||
orchid, palegoldenrod, palegreen, paleturquoise,
|
||||
palevioletred, papayawhip, peachpuff, peru, pink,
|
||||
plum, powderblue, purple, red, rosybrown,
|
||||
royalblue, rebeccapurple, saddlebrown, salmon,
|
||||
sandybrown, seagreen, seashell, sienna, silver,
|
||||
skyblue, slateblue, slategray, slategrey, snow,
|
||||
springgreen, steelblue, tan, teal, thistle, tomato,
|
||||
turquoise, violet, wheat, white, whitesmoke,
|
||||
yellow, yellowgreen
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["color"]
|
||||
|
||||
@color.setter
|
||||
def color(self, val):
|
||||
self["color"] = val
|
||||
|
||||
# family
|
||||
# ------
|
||||
@property
|
||||
def family(self):
|
||||
"""
|
||||
HTML font family - the typeface that will be applied by the web
|
||||
browser. The web browser will only be able to apply a font if
|
||||
it is available on the system which it operates. Provide
|
||||
multiple font families, separated by commas, to indicate the
|
||||
preference in which to apply fonts if they aren't available on
|
||||
the system. The Chart Studio Cloud (at https://chart-
|
||||
studio.plotly.com or on-premise) generates images on a server,
|
||||
where only a select number of fonts are installed and
|
||||
supported. These include "Arial", "Balto", "Courier New",
|
||||
"Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans
|
||||
Narrow", "Raleway", "Times New Roman".
|
||||
|
||||
The 'family' property is a string and must be specified as:
|
||||
- A non-empty string
|
||||
|
||||
Returns
|
||||
-------
|
||||
str
|
||||
"""
|
||||
return self["family"]
|
||||
|
||||
@family.setter
|
||||
def family(self, val):
|
||||
self["family"] = val
|
||||
|
||||
# size
|
||||
# ----
|
||||
@property
|
||||
def size(self):
|
||||
"""
|
||||
The 'size' property is a number and may be specified as:
|
||||
- An int or float in the interval [1, inf]
|
||||
|
||||
Returns
|
||||
-------
|
||||
int|float
|
||||
"""
|
||||
return self["size"]
|
||||
|
||||
@size.setter
|
||||
def size(self, val):
|
||||
self["size"] = val
|
||||
|
||||
# Self properties description
|
||||
# ---------------------------
|
||||
@property
|
||||
def _prop_descriptions(self):
|
||||
return """\
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be applied by
|
||||
the web browser. The web browser will only be able to
|
||||
apply a font if it is available on the system which it
|
||||
operates. Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to apply
|
||||
fonts if they aren't available on the system. The Chart
|
||||
Studio Cloud (at https://chart-studio.plotly.com or on-
|
||||
premise) generates images on a server, where only a
|
||||
select number of fonts are installed and supported.
|
||||
These include "Arial", "Balto", "Courier New", "Droid
|
||||
Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT
|
||||
Sans Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
|
||||
"""
|
||||
Construct a new Font object
|
||||
|
||||
Sets this color bar's title font. Note that the title's font
|
||||
used to be set by the now deprecated `titlefont` attribute.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
arg
|
||||
dict of properties compatible with this constructor or
|
||||
an instance of :class:`plotly.graph_objs.parcats.line.c
|
||||
olorbar.title.Font`
|
||||
color
|
||||
|
||||
family
|
||||
HTML font family - the typeface that will be applied by
|
||||
the web browser. The web browser will only be able to
|
||||
apply a font if it is available on the system which it
|
||||
operates. Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to apply
|
||||
fonts if they aren't available on the system. The Chart
|
||||
Studio Cloud (at https://chart-studio.plotly.com or on-
|
||||
premise) generates images on a server, where only a
|
||||
select number of fonts are installed and supported.
|
||||
These include "Arial", "Balto", "Courier New", "Droid
|
||||
Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas
|
||||
One", "Old Standard TT", "Open Sans", "Overpass", "PT
|
||||
Sans Narrow", "Raleway", "Times New Roman".
|
||||
size
|
||||
|
||||
|
||||
Returns
|
||||
-------
|
||||
Font
|
||||
"""
|
||||
super(Font, self).__init__("font")
|
||||
|
||||
if "_parent" in kwargs:
|
||||
self._parent = kwargs["_parent"]
|
||||
return
|
||||
|
||||
# Validate arg
|
||||
# ------------
|
||||
if arg is None:
|
||||
arg = {}
|
||||
elif isinstance(arg, self.__class__):
|
||||
arg = arg.to_plotly_json()
|
||||
elif isinstance(arg, dict):
|
||||
arg = _copy.copy(arg)
|
||||
else:
|
||||
raise ValueError(
|
||||
"""\
|
||||
The first argument to the plotly.graph_objs.parcats.line.colorbar.title.Font
|
||||
constructor must be a dict or
|
||||
an instance of :class:`plotly.graph_objs.parcats.line.colorbar.title.Font`"""
|
||||
)
|
||||
|
||||
# Handle skip_invalid
|
||||
# -------------------
|
||||
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
||||
self._validate = kwargs.pop("_validate", True)
|
||||
|
||||
# Populate data dict with properties
|
||||
# ----------------------------------
|
||||
_v = arg.pop("color", None)
|
||||
_v = color if color is not None else _v
|
||||
if _v is not None:
|
||||
self["color"] = _v
|
||||
_v = arg.pop("family", None)
|
||||
_v = family if family is not None else _v
|
||||
if _v is not None:
|
||||
self["family"] = _v
|
||||
_v = arg.pop("size", None)
|
||||
_v = size if size is not None else _v
|
||||
if _v is not None:
|
||||
self["size"] = _v
|
||||
|
||||
# Process unknown kwargs
|
||||
# ----------------------
|
||||
self._process_kwargs(**dict(arg, **kwargs))
|
||||
|
||||
# Reset skip_invalid
|
||||
# ------------------
|
||||
self._skip_invalid = False
|
Reference in New Issue
Block a user