plotly-extend-wrapper 1.2.0__py3-none-any.whl → 1.3.0__py3-none-any.whl
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/__init__.py +1 -1
- plotly_extend_wrapper/wrapper.py +16 -0
- {plotly_extend_wrapper-1.2.0.dist-info → plotly_extend_wrapper-1.3.0.dist-info}/METADATA +2 -12
- plotly_extend_wrapper-1.3.0.dist-info/RECORD +8 -0
- plotly_extend_wrapper-1.2.0.dist-info/RECORD +0 -8
- {plotly_extend_wrapper-1.2.0.dist-info → plotly_extend_wrapper-1.3.0.dist-info}/WHEEL +0 -0
- {plotly_extend_wrapper-1.2.0.dist-info → plotly_extend_wrapper-1.3.0.dist-info}/licenses/LICENSE +0 -0
plotly_extend_wrapper/wrapper.py
CHANGED
|
@@ -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)
|
|
@@ -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)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
plotly_extend_wrapper/__init__.py,sha256=qbQNutZVb9yrOGqDwDekSe3t1kkMyfWCQiZRrzogJgM,154
|
|
2
|
+
plotly_extend_wrapper/common.py,sha256=il-4w-f7gsgKuHKHyy-lAbema6-ADdRFdHXZNTYSdhk,262
|
|
3
|
+
plotly_extend_wrapper/updater.py,sha256=Q-O5FC7z_y1Xel24rBaaiN7MPOQqOy5wG7bpth_VVts,2510
|
|
4
|
+
plotly_extend_wrapper/wrapper.py,sha256=YA8sDVYGMTE8n5-q7tLlmfUGENG8qS9BfA3eSJu-VgY,13222
|
|
5
|
+
plotly_extend_wrapper-1.3.0.dist-info/METADATA,sha256=UnUrBrGDM1W0jdl_8pI3UCGcB3zRhoghkICCH6QhPiU,1541
|
|
6
|
+
plotly_extend_wrapper-1.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
plotly_extend_wrapper-1.3.0.dist-info/licenses/LICENSE,sha256=LanHfVWzsvc8f0WfJlk8s_qAhDW1RdNJMYDjDMJvl1Y,1070
|
|
8
|
+
plotly_extend_wrapper-1.3.0.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
plotly_extend_wrapper/__init__.py,sha256=0_Vut6cAmxsQUIfqkfwxf1WTG10IJseCqoEcXVGfB-Q,154
|
|
2
|
-
plotly_extend_wrapper/common.py,sha256=il-4w-f7gsgKuHKHyy-lAbema6-ADdRFdHXZNTYSdhk,262
|
|
3
|
-
plotly_extend_wrapper/updater.py,sha256=Q-O5FC7z_y1Xel24rBaaiN7MPOQqOy5wG7bpth_VVts,2510
|
|
4
|
-
plotly_extend_wrapper/wrapper.py,sha256=T1cpVJ9hbmO_aFPQ9jtQMRWCUuxCA8h4Ndk89UG6U8w,12763
|
|
5
|
-
plotly_extend_wrapper-1.2.0.dist-info/METADATA,sha256=91k2H2qgNB2G24CaXrr7KHFDAPEXy0HOKpfUG1FzhXw,1802
|
|
6
|
-
plotly_extend_wrapper-1.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
plotly_extend_wrapper-1.2.0.dist-info/licenses/LICENSE,sha256=LanHfVWzsvc8f0WfJlk8s_qAhDW1RdNJMYDjDMJvl1Y,1070
|
|
8
|
-
plotly_extend_wrapper-1.2.0.dist-info/RECORD,,
|
|
File without changes
|
{plotly_extend_wrapper-1.2.0.dist-info → plotly_extend_wrapper-1.3.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|