plotly-extend-wrapper 1.2.0__tar.gz → 1.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/PKG-INFO +2 -12
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/README.md +1 -11
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/plotly_extend_wrapper/__init__.py +1 -1
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/plotly_extend_wrapper/wrapper.py +16 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/pyproject.toml +1 -1
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/test/test_wrapper.py +36 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/.devcontainer/devcontainer.json +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/.github/dependabot.yml +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/.github/workflows/deploy_pages.yaml +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/.github/workflows/pypi_release.yml +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/.github/workflows/unittest.yml +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/.gitignore +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/.python-version +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/.vscode/settings.json +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/LICENSE +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/codecov.yaml +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/docs/Makefile +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/docs/conf.py +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/docs/index.rst +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/docs/make.bat +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/docs/source/introduction.md +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/docs/source/wrapper.md +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/plotly_extend_wrapper/common.py +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/plotly_extend_wrapper/updater.py +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/requirements-dev.lock +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/requirements.lock +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/test/test_common.py +0 -0
- {plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/test/test_updater.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotly-extend-wrapper
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Author-email: Laplusdestiny <prayonshootingstars@gmail.com>
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -20,7 +20,6 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
[](https://github.com/Laplusdestiny/plotly_extend_wrapper/releases)
|
|
21
21
|
[](https://pypi.org/project/plotly-extend-wrapper/)
|
|
22
22
|
|
|
23
|
-
|
|
24
23
|
Extended Python library for Plotly
|
|
25
24
|
|
|
26
25
|
You can make plot simply
|
|
@@ -33,17 +32,8 @@ You can make plot simply
|
|
|
33
32
|
- pandas >= 2.2.0
|
|
34
33
|
- scipy >= 1.12.0
|
|
35
34
|
|
|
36
|
-
## Graph
|
|
37
|
-
|
|
38
|
-
- Pie (`wrapper.Plot_pie`)
|
|
39
|
-
- Sunburst (`wrapper.Plot_sunburst`)
|
|
40
|
-
- Bubble (`wrapper.Plot_bubble_chart`)
|
|
41
|
-
- Line with secondary y-axis (`wrapper.Plot_line`)
|
|
42
|
-
- Bubble with linear line (`wrapper.Plot_bubble_with_line`)
|
|
43
|
-
- Surface (`wrapper.Plot_surface`)
|
|
44
|
-
|
|
45
|
-
|
|
46
35
|
## Issue
|
|
36
|
+
|
|
47
37
|
If there are some bugs, please make issue to tell me!
|
|
48
38
|
|
|
49
39
|
[](https://github.com/Laplusdestiny/plotly_extend_wrapper/issues)
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
[](https://github.com/Laplusdestiny/plotly_extend_wrapper/releases)
|
|
6
6
|
[](https://pypi.org/project/plotly-extend-wrapper/)
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
Extended Python library for Plotly
|
|
10
9
|
|
|
11
10
|
You can make plot simply
|
|
@@ -18,17 +17,8 @@ You can make plot simply
|
|
|
18
17
|
- pandas >= 2.2.0
|
|
19
18
|
- scipy >= 1.12.0
|
|
20
19
|
|
|
21
|
-
## Graph
|
|
22
|
-
|
|
23
|
-
- Pie (`wrapper.Plot_pie`)
|
|
24
|
-
- Sunburst (`wrapper.Plot_sunburst`)
|
|
25
|
-
- Bubble (`wrapper.Plot_bubble_chart`)
|
|
26
|
-
- Line with secondary y-axis (`wrapper.Plot_line`)
|
|
27
|
-
- Bubble with linear line (`wrapper.Plot_bubble_with_line`)
|
|
28
|
-
- Surface (`wrapper.Plot_surface`)
|
|
29
|
-
|
|
30
|
-
|
|
31
20
|
## Issue
|
|
21
|
+
|
|
32
22
|
If there are some bugs, please make issue to tell me!
|
|
33
23
|
|
|
34
24
|
[](https://github.com/Laplusdestiny/plotly_extend_wrapper/issues)
|
{plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/plotly_extend_wrapper/wrapper.py
RENAMED
|
@@ -198,6 +198,8 @@ def Plot_line(
|
|
|
198
198
|
save_html_path=None,
|
|
199
199
|
vspan=None,
|
|
200
200
|
vspan_color_randomize=False,
|
|
201
|
+
vline=None,
|
|
202
|
+
vline_color=None,
|
|
201
203
|
sort_column=True,
|
|
202
204
|
sort_x=True,
|
|
203
205
|
opacity=0.2,
|
|
@@ -228,6 +230,10 @@ def Plot_line(
|
|
|
228
230
|
Tuple list for filling color in specify period , by default None
|
|
229
231
|
vspan_color_randomize : bool, optional
|
|
230
232
|
If True, choose random color, by default False
|
|
233
|
+
vline : list, optional
|
|
234
|
+
List of timestamp to add vertical line, by default None
|
|
235
|
+
vline_color : str, optional
|
|
236
|
+
Color of vertical line, by default None
|
|
231
237
|
sort_column: boolean, optional
|
|
232
238
|
If True, sort y column list
|
|
233
239
|
sort_x: boolean, optional
|
|
@@ -301,6 +307,16 @@ def Plot_line(
|
|
|
301
307
|
line_width=0,
|
|
302
308
|
)
|
|
303
309
|
|
|
310
|
+
if vline is not None:
|
|
311
|
+
if not isinstance(vline, list):
|
|
312
|
+
vline = [vline]
|
|
313
|
+
|
|
314
|
+
if vline_color is None:
|
|
315
|
+
vline_color = pick_color()
|
|
316
|
+
|
|
317
|
+
for v in vline:
|
|
318
|
+
subfig.add_vline(x=v, line_color=vline_color)
|
|
319
|
+
|
|
304
320
|
if save_html_path is not None:
|
|
305
321
|
output_p = check_directory(save_html_path)
|
|
306
322
|
subfig.write_html(output_p)
|
|
@@ -81,6 +81,42 @@ def test_Line():
|
|
|
81
81
|
assert isinstance(plot, go.Figure)
|
|
82
82
|
|
|
83
83
|
|
|
84
|
+
def test_LineVline():
|
|
85
|
+
data = MakeTimeSeriesData()
|
|
86
|
+
|
|
87
|
+
plot = Plot_line(
|
|
88
|
+
data,
|
|
89
|
+
x="timestamp",
|
|
90
|
+
y=["y1"],
|
|
91
|
+
secondary_y=["y2"],
|
|
92
|
+
xtitle="timestamp",
|
|
93
|
+
ytitle="value",
|
|
94
|
+
secondary_ytitle="value2",
|
|
95
|
+
save_html_path="line.html",
|
|
96
|
+
vline=["2024-01-01 06:00:00"]
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
assert isinstance(plot, go.Figure)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def test_LineVlineinstr():
|
|
103
|
+
data = MakeTimeSeriesData()
|
|
104
|
+
|
|
105
|
+
plot = Plot_line(
|
|
106
|
+
data,
|
|
107
|
+
x="timestamp",
|
|
108
|
+
y=["y1"],
|
|
109
|
+
secondary_y=["y2"],
|
|
110
|
+
xtitle="timestamp",
|
|
111
|
+
ytitle="value",
|
|
112
|
+
secondary_ytitle="value2",
|
|
113
|
+
save_html_path="line.html",
|
|
114
|
+
vline="2024-01-01 06:00:00"
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
assert isinstance(plot, go.Figure)
|
|
118
|
+
|
|
119
|
+
|
|
84
120
|
def test_LinewithVspan():
|
|
85
121
|
data = MakeTimeSeriesData()
|
|
86
122
|
|
|
File without changes
|
|
File without changes
|
{plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/.github/workflows/deploy_pages.yaml
RENAMED
|
File without changes
|
{plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/.github/workflows/pypi_release.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plotly_extend_wrapper-1.2.0 → plotly_extend_wrapper-1.3.0}/plotly_extend_wrapper/updater.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|