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,13 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._z import ZValidator
|
||||
from ._y import YValidator
|
||||
from ._x import XValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"]
|
||||
)
|
@ -0,0 +1,34 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class XValidator(_plotly_utils.basevalidators.CompoundValidator):
|
||||
def __init__(self, plotly_name="x", parent_name="volume.slices", **kwargs):
|
||||
super(XValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
data_class_str=kwargs.pop("data_class_str", "X"),
|
||||
data_docs=kwargs.pop(
|
||||
"data_docs",
|
||||
"""
|
||||
fill
|
||||
Sets the fill ratio of the `slices`. The
|
||||
default fill value of the `slices` is 1 meaning
|
||||
that they are entirely shaded. On the other
|
||||
hand Applying a `fill` ratio less than one
|
||||
would allow the creation of openings parallel
|
||||
to the edges.
|
||||
locations
|
||||
Specifies the location(s) of slices on the
|
||||
axis. When not specified slices would be
|
||||
created for all points of the axis x except
|
||||
start and end.
|
||||
locationssrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `locations`.
|
||||
show
|
||||
Determines whether or not slice planes about
|
||||
the x dimension are drawn.
|
||||
""",
|
||||
),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,34 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class YValidator(_plotly_utils.basevalidators.CompoundValidator):
|
||||
def __init__(self, plotly_name="y", parent_name="volume.slices", **kwargs):
|
||||
super(YValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
data_class_str=kwargs.pop("data_class_str", "Y"),
|
||||
data_docs=kwargs.pop(
|
||||
"data_docs",
|
||||
"""
|
||||
fill
|
||||
Sets the fill ratio of the `slices`. The
|
||||
default fill value of the `slices` is 1 meaning
|
||||
that they are entirely shaded. On the other
|
||||
hand Applying a `fill` ratio less than one
|
||||
would allow the creation of openings parallel
|
||||
to the edges.
|
||||
locations
|
||||
Specifies the location(s) of slices on the
|
||||
axis. When not specified slices would be
|
||||
created for all points of the axis y except
|
||||
start and end.
|
||||
locationssrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `locations`.
|
||||
show
|
||||
Determines whether or not slice planes about
|
||||
the y dimension are drawn.
|
||||
""",
|
||||
),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,34 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ZValidator(_plotly_utils.basevalidators.CompoundValidator):
|
||||
def __init__(self, plotly_name="z", parent_name="volume.slices", **kwargs):
|
||||
super(ZValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
data_class_str=kwargs.pop("data_class_str", "Z"),
|
||||
data_docs=kwargs.pop(
|
||||
"data_docs",
|
||||
"""
|
||||
fill
|
||||
Sets the fill ratio of the `slices`. The
|
||||
default fill value of the `slices` is 1 meaning
|
||||
that they are entirely shaded. On the other
|
||||
hand Applying a `fill` ratio less than one
|
||||
would allow the creation of openings parallel
|
||||
to the edges.
|
||||
locations
|
||||
Specifies the location(s) of slices on the
|
||||
axis. When not specified slices would be
|
||||
created for all points of the axis z except
|
||||
start and end.
|
||||
locationssrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `locations`.
|
||||
show
|
||||
Determines whether or not slice planes about
|
||||
the z dimension are drawn.
|
||||
""",
|
||||
),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,21 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._show import ShowValidator
|
||||
from ._locationssrc import LocationssrcValidator
|
||||
from ._locations import LocationsValidator
|
||||
from ._fill import FillValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._show.ShowValidator",
|
||||
"._locationssrc.LocationssrcValidator",
|
||||
"._locations.LocationsValidator",
|
||||
"._fill.FillValidator",
|
||||
],
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class FillValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(self, plotly_name="fill", parent_name="volume.slices.x", **kwargs):
|
||||
super(FillValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
max=kwargs.pop("max", 1),
|
||||
min=kwargs.pop("min", 0),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator):
|
||||
def __init__(
|
||||
self, plotly_name="locations", parent_name="volume.slices.x", **kwargs
|
||||
):
|
||||
super(LocationsValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self, plotly_name="locationssrc", parent_name="volume.slices.x", **kwargs
|
||||
):
|
||||
super(LocationssrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ShowValidator(_plotly_utils.basevalidators.BooleanValidator):
|
||||
def __init__(self, plotly_name="show", parent_name="volume.slices.x", **kwargs):
|
||||
super(ShowValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,21 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._show import ShowValidator
|
||||
from ._locationssrc import LocationssrcValidator
|
||||
from ._locations import LocationsValidator
|
||||
from ._fill import FillValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._show.ShowValidator",
|
||||
"._locationssrc.LocationssrcValidator",
|
||||
"._locations.LocationsValidator",
|
||||
"._fill.FillValidator",
|
||||
],
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class FillValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(self, plotly_name="fill", parent_name="volume.slices.y", **kwargs):
|
||||
super(FillValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
max=kwargs.pop("max", 1),
|
||||
min=kwargs.pop("min", 0),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator):
|
||||
def __init__(
|
||||
self, plotly_name="locations", parent_name="volume.slices.y", **kwargs
|
||||
):
|
||||
super(LocationsValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self, plotly_name="locationssrc", parent_name="volume.slices.y", **kwargs
|
||||
):
|
||||
super(LocationssrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ShowValidator(_plotly_utils.basevalidators.BooleanValidator):
|
||||
def __init__(self, plotly_name="show", parent_name="volume.slices.y", **kwargs):
|
||||
super(ShowValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,21 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._show import ShowValidator
|
||||
from ._locationssrc import LocationssrcValidator
|
||||
from ._locations import LocationsValidator
|
||||
from ._fill import FillValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._show.ShowValidator",
|
||||
"._locationssrc.LocationssrcValidator",
|
||||
"._locations.LocationsValidator",
|
||||
"._fill.FillValidator",
|
||||
],
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class FillValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(self, plotly_name="fill", parent_name="volume.slices.z", **kwargs):
|
||||
super(FillValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
max=kwargs.pop("max", 1),
|
||||
min=kwargs.pop("min", 0),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator):
|
||||
def __init__(
|
||||
self, plotly_name="locations", parent_name="volume.slices.z", **kwargs
|
||||
):
|
||||
super(LocationsValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self, plotly_name="locationssrc", parent_name="volume.slices.z", **kwargs
|
||||
):
|
||||
super(LocationssrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ShowValidator(_plotly_utils.basevalidators.BooleanValidator):
|
||||
def __init__(self, plotly_name="show", parent_name="volume.slices.z", **kwargs):
|
||||
super(ShowValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
Reference in New Issue
Block a user