File tree 15 files changed +100
-10
lines changed
15 files changed +100
-10
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# You can set these variables from the command line.
5
5
SPHINXOPTS =
6
- SPHINXBUILD = python3 -m sphinx
6
+ SPHINXBUILD = python -m sphinx
7
7
SOURCEDIR = .
8
8
BUILDDIR = _build
9
9
22
22
sed -i ' s/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/* /* .py
23
23
sed -i ' s/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/* /* /* .py
24
24
sed -i ' s/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/* /* /* /* .py
25
- sphinx-apidoc -o generated ../../packages/python/plotly/plotly ../../packages/python/plotly/plotly/validators ../../packages/python/plotly/plotly/tests ../../packages/python/plotly/plotly/matplotlylib/ ../../packages/python/plotly/plotly/offline ../../packages/python/plotly/plotly/api
25
+ cp ../../packages/python/plotly/_plotly_utils/colors/sequential.py ../../packages/python/plotly/_plotly_utils/colors/diverging.py ../../packages/python/plotly/_plotly_utils/colors/qualitative.py ../../packages/python/plotly/_plotly_utils/colors/cyclical.py ../../packages/python/plotly/plotly/colors
26
+ cp ../../packages/python/plotly/_plotly_utils/colors/sequential.py ../../packages/python/plotly/_plotly_utils/colors/diverging.py ../../packages/python/plotly/_plotly_utils/colors/qualitative.py ../../packages/python/plotly/_plotly_utils/colors/cyclical.py ../../packages/python/plotly/plotly/express/colors
27
+ sphinx-apidoc -M -o generated ../../packages/python/plotly/plotly ../../packages/python/plotly/plotly/validators ../../packages/python/plotly/plotly/tests ../../packages/python/plotly/plotly/matplotlylib/ ../../packages/python/plotly/plotly/offline ../../packages/python/plotly/plotly/api
26
28
@$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
27
29
git checkout -- ../../packages/python/plotly/plotly/graph_objs
30
+ rm ../../packages/python/plotly/plotly/colors/diverging.py ../../packages/python/plotly/plotly/colors/sequential.py ../../packages/python/plotly/plotly/colors/qualitative.py ../../packages/python/plotly/plotly/colors/cyclical.py
31
+ rm ../../packages/python/plotly/plotly/express/colors/diverging.py ../../packages/python/plotly/plotly/express/colors/sequential.py ../../packages/python/plotly/plotly/express/colors/qualitative.py ../../packages/python/plotly/plotly/express/colors/cyclical.py
28
32
rename ' s/graph_objs/graph_objects/' _build/html/* .html _build/html/generated/* .html
29
33
mv _build/html/generated/plotly.graph_objs.html _build/html/generated/plotly.graph_objects.html
30
34
sed -i ' s/graph_objs/graph_objects/g' _build/html/* .html
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ Submodules
17
17
* :ref: `Subplots: helper function for layout out multi-plot figures <subplots >`
18
18
* :ref: `Figure Factories: helper methods for building specific complex charts <ff >`
19
19
* :ref: `I/O: low-level interface for displaying, reading and writing figures <io >`
20
+ * :mod: `plotly.colors `: colorscales and utility functions
21
+ * :mod: `plotly.data `: built-in datasets for demonstration, educational and test purposes
20
22
21
23
Full reference list
22
24
-------------------
Original file line number Diff line number Diff line change 1
1
.. _px :
2
2
3
3
`plotly.express `: high-level interface for data visualization
4
- ================================
4
+ =============================================================
5
5
6
6
The `plotly.express <https://plot.ly/python/plotly-express/ >`_ module is
7
7
plotly's high-level API for rapid figure generation. ::
@@ -49,4 +49,12 @@ plotly's high-level API for rapid figure generation. ::
49
49
imshow
50
50
51
51
52
+ `plotly.express ` subpackages
53
+ ---------------------------
52
54
55
+
56
+ .. toctree ::
57
+ :maxdepth: 1
58
+
59
+ generated/plotly.express.data.rst
60
+ generated/plotly.express.colors.rst
Original file line number Diff line number Diff line change @@ -185,3 +185,9 @@ def swatches_cyclical(template=None):
185
185
if _k .startswith ("_" ) or _k .startswith ("swatches" ) or _k .endswith ("_r" ):
186
186
continue
187
187
globals ()[_k + "_r" ] = _cols [::- 1 ]
188
+
189
+
190
+ __all__ = [
191
+ "swatches" ,
192
+ "swatches_cyclical" ,
193
+ ]
Original file line number Diff line number Diff line change @@ -37,3 +37,6 @@ def swatches(template=None):
37
37
if _k .startswith ("_" ) or _k == "swatches" or _k .endswith ("_r" ):
38
38
continue
39
39
globals ()[_k + "_r" ] = _cols [::- 1 ]
40
+
41
+
42
+ __all__ = ["swatches" ]
Original file line number Diff line number Diff line change @@ -152,3 +152,6 @@ def swatches(template=None):
152
152
if _k .startswith ("_" ) or _k == "swatches" or _k .endswith ("_r" ):
153
153
continue
154
154
globals ()[_k + "_r" ] = _cols [::- 1 ]
155
+
156
+
157
+ __all__ = ["swatches" ]
Original file line number Diff line number Diff line change @@ -162,3 +162,6 @@ def swatches(template=None):
162
162
if _k .startswith ("_" ) or _k == "swatches" or _k .endswith ("_r" ):
163
163
continue
164
164
globals ()[_k + "_r" ] = _cols [::- 1 ]
165
+
166
+
167
+ __all__ = ["swatches" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ """For a list of colors available in `plotly.colors`, please see
2
+
3
+ * the `tutorial on discrete color sequences <https://plotly.com/python/discrete-color/#color-sequences-in-plotly-express>`_
4
+ * the `list of built-in continuous color scales <https://plotly.com/python/builtin-colorscales/>`_
5
+ * the `tutorial on continuous colors <https://plotly.com/python/colorscales/>`_
6
+
7
+ Color scales and sequences are available within the following namespaces
8
+
9
+ * cyclical
10
+ * diverging
11
+ * qualitative
12
+ * sequential
13
+ """
14
+
15
+ from __future__ import absolute_import
16
+ from _plotly_utils .colors import * # noqa: F401
17
+
18
+ __all__ = [
19
+ "named_colorscales" ,
20
+ "cyclical" ,
21
+ "diverging" ,
22
+ "sequential" ,
23
+ "qualitative" ,
24
+ ]
Original file line number Diff line number Diff line change 4
4
from ._special_inputs import IdentityMap , Constant , Range
5
5
6
6
from _plotly_utils .basevalidators import ColorscaleValidator
7
- from .colors import qualitative , sequential
7
+ from plotly .colors import qualitative , sequential
8
8
import math
9
9
import pandas as pd
10
10
import numpy as np
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ """For a list of colors available in `plotly.express.colors`, please see
2
+
3
+ * the `tutorial on discrete color sequences <https://plotly.com/python/discrete-color/#color-sequences-in-plotly-express>`_
4
+ * the `list of built-in continuous color scales <https://plotly.com/python/builtin-colorscales/>`_
5
+ * the `tutorial on continuous colors <https://plotly.com/python/colorscales/>`_
6
+
7
+ Color scales are available within the following namespaces
8
+
9
+ * cyclical
10
+ * diverging
11
+ * qualitative
12
+ * sequential
13
+ """
14
+
15
+ from __future__ import absolute_import
16
+ from plotly .colors import *
17
+
18
+
19
+ __all__ = [
20
+ "named_colorscales" ,
21
+ "cyclical" ,
22
+ "diverging" ,
23
+ "sequential" ,
24
+ "qualitative" ,
25
+ ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ """Built-in datasets for demonstration, educational and test purposes.
2
+ """
3
+
4
+ from __future__ import absolute_import
5
+ from plotly .data import *
6
+
7
+ __all__ = [
8
+ "carshare" ,
9
+ "election" ,
10
+ "election_geojson" ,
11
+ "gapminder" ,
12
+ "iris" ,
13
+ "tips" ,
14
+ "wind" ,
15
+ ]
Original file line number Diff line number Diff line change @@ -479,7 +479,10 @@ def run(self):
479
479
"plotly.matplotlylib.mplexporter.renderers" ,
480
480
"plotly.figure_factory" ,
481
481
"plotly.data" ,
482
+ "plotly.colors" ,
482
483
"plotly.express" ,
484
+ "plotly.express.data" ,
485
+ "plotly.express.colors" ,
483
486
"plotly.graph_objects" ,
484
487
"_plotly_utils" ,
485
488
"_plotly_utils.colors" ,
You can’t perform that action at this time.
0 commit comments