aplotly 1.1.5__tar.gz → 1.1.6__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.
Files changed (28) hide show
  1. {aplotly-1.1.5/aplotly.egg-info → aplotly-1.1.6}/PKG-INFO +1 -1
  2. {aplotly-1.1.5 → aplotly-1.1.6}/aplotly/plots.py +6 -2
  3. {aplotly-1.1.5 → aplotly-1.1.6/aplotly.egg-info}/PKG-INFO +1 -1
  4. {aplotly-1.1.5 → aplotly-1.1.6}/examples/plot_lines.py +1 -0
  5. {aplotly-1.1.5 → aplotly-1.1.6}/pyproject.toml +2 -2
  6. {aplotly-1.1.5 → aplotly-1.1.6}/LICENSE +0 -0
  7. {aplotly-1.1.5 → aplotly-1.1.6}/MANIFEST.in +0 -0
  8. {aplotly-1.1.5 → aplotly-1.1.6}/README.md +0 -0
  9. {aplotly-1.1.5 → aplotly-1.1.6}/aplotly/__init__.py +0 -0
  10. {aplotly-1.1.5 → aplotly-1.1.6}/aplotly/colors.py +0 -0
  11. {aplotly-1.1.5 → aplotly-1.1.6}/aplotly/io.py +0 -0
  12. {aplotly-1.1.5 → aplotly-1.1.6}/aplotly/style.py +0 -0
  13. {aplotly-1.1.5 → aplotly-1.1.6}/aplotly/utils/return_breakdown.py +0 -0
  14. {aplotly-1.1.5 → aplotly-1.1.6}/aplotly.egg-info/SOURCES.txt +0 -0
  15. {aplotly-1.1.5 → aplotly-1.1.6}/aplotly.egg-info/dependency_links.txt +0 -0
  16. {aplotly-1.1.5 → aplotly-1.1.6}/aplotly.egg-info/requires.txt +0 -0
  17. {aplotly-1.1.5 → aplotly-1.1.6}/aplotly.egg-info/top_level.txt +0 -0
  18. {aplotly-1.1.5 → aplotly-1.1.6}/examples/plot_bars.py +0 -0
  19. {aplotly-1.1.5 → aplotly-1.1.6}/examples/plot_exposure_tree.py +0 -0
  20. {aplotly-1.1.5 → aplotly-1.1.6}/examples/plot_line.py +0 -0
  21. {aplotly-1.1.5 → aplotly-1.1.6}/examples/plot_line_and_save.py +0 -0
  22. {aplotly-1.1.5 → aplotly-1.1.6}/examples/plot_multiple_performance.py +0 -0
  23. {aplotly-1.1.5 → aplotly-1.1.6}/examples/plot_performance.py +0 -0
  24. {aplotly-1.1.5 → aplotly-1.1.6}/examples/plot_returns_tree.py +0 -0
  25. {aplotly-1.1.5 → aplotly-1.1.6}/setup.cfg +0 -0
  26. {aplotly-1.1.5 → aplotly-1.1.6}/tests/test_colors.py +0 -0
  27. {aplotly-1.1.5 → aplotly-1.1.6}/tests/test_io.py +0 -0
  28. {aplotly-1.1.5 → aplotly-1.1.6}/tests/test_style.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aplotly
3
- Version: 1.1.5
3
+ Version: 1.1.6
4
4
  License: MIT License
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@@ -113,6 +113,7 @@ def plot_multiple_lines(
113
113
  xlabel: str,
114
114
  labels: list = None,
115
115
  visible: list = None,
116
+ styles: list = None,
116
117
  legend: bool = True,
117
118
  color_palette: str = "",
118
119
  group_title: str = "",
@@ -140,12 +141,15 @@ def plot_multiple_lines(
140
141
  if visible is None:
141
142
  visible = [True] * len(series)
142
143
 
144
+ if styles is None:
145
+ styles = [{"width": 2}] * len(series)
146
+
143
147
  if any(visible) is False:
144
148
  legend = True
145
149
 
146
150
  configure_plotly(subplots=1, color_palette=color_palette)
147
151
  fig = go.Figure()
148
- for data, label, visibility in zip(series, labels, visible):
152
+ for data, label, visibility, style in zip(series, labels, visible, styles):
149
153
  fig.add_trace(
150
154
  go.Scatter(
151
155
  x=data.index,
@@ -155,7 +159,7 @@ def plot_multiple_lines(
155
159
  legendgroup=1,
156
160
  legendgrouptitle_text=group_title,
157
161
  visible=visibility,
158
- line=dict(width=2),
162
+ line=style,
159
163
  )
160
164
  )
161
165
  fig.update_xaxes(title_text=xlabel)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aplotly
3
- Version: 1.1.5
3
+ Version: 1.1.6
4
4
  License: MIT License
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@@ -6,6 +6,7 @@ from aplotly.plots import plot_multiple_lines
6
6
  fig = plot_multiple_lines(
7
7
  [pd.Series(np.random.rand(100), index=np.arange(100)) for _ in range(3)],
8
8
  labels=["Test 1", "Test 2", "Test 3"],
9
+ styles=[{"shape": "hv"}, {"shape": "vh"}, {"shape": "linear"}],
9
10
  xlabel="X",
10
11
  ylabel="Y",
11
12
  )
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "aplotly"
7
- version = "1.1.5"
7
+ version = "1.1.6"
8
8
  readme = "README.md"
9
9
  license = { file = "LICENSE" }
10
10
  classifiers = [
@@ -19,7 +19,7 @@ dependencies = [
19
19
  requires-python = ">=3.10.6"
20
20
 
21
21
  [tool.bumpver]
22
- current_version = "1.1.5"
22
+ current_version = "1.1.6"
23
23
  version_pattern = "MAJOR.MINOR.PATCH"
24
24
  commit_message = "Bump version {old_version} -> {new_version}"
25
25
  commit = true
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