pandas-plots 0.15.8__tar.gz → 0.15.10__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.
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pandas-plots
3
- Version: 0.15.8
3
+ Version: 0.15.10
4
4
  Summary: A collection of helper for table handling and visualization
5
5
  Keywords: tables,pivot,plotly,venn,plot,vizualization
6
6
  Author: smeisegeier
7
7
  Author-email: smeisegeier <dexterDSD@googlemail.com>
8
8
  Classifier: License :: OSI Approved :: MIT License
9
9
  Classifier: Programming Language :: Python :: 3
10
- Classifier: Programming Language :: Python :: 3.12
10
+ Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Development Status :: 4 - Beta
12
12
  Classifier: Intended Audience :: Science/Research
13
13
  Classifier: Operating System :: OS Independent
@@ -26,7 +26,7 @@ Requires-Dist: duckdb>=1.3.0
26
26
  Requires-Dist: nbformat>=4.2.0
27
27
  Requires-Dist: dataframe-image>=0.2.6
28
28
  Requires-Dist: connection-helper>=0.12
29
- Requires-Python: ~=3.12.0
29
+ Requires-Python: >=3.11
30
30
  Project-URL: Bug Tracker, https://github.com/smeisegeier/pandas-plots/issues
31
31
  Project-URL: Homepage, https://github.com/smeisegeier/pandas-plots
32
32
  Project-URL: Repository, https://github.com/smeisegeier/pandas-plots
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "pandas-plots"
3
- version = "0.15.8"
3
+ version = "0.15.10"
4
4
  description = "A collection of helper for table handling and visualization"
5
5
  long_description = "file: README.md"
6
6
  long_description_content_type = "text/markdown"
7
7
  readme = "README.md"
8
- requires-python = "~=3.12.0"
8
+ requires-python = ">=3.11"
9
9
  keywords = ["tables", "pivot", "plotly", "venn", "plot", "vizualization"]
10
10
  authors = [
11
11
  { name = "smeisegeier", email = "dexterDSD@googlemail.com" },
@@ -14,7 +14,7 @@ authors = [
14
14
  classifiers = [
15
15
  "License :: OSI Approved :: MIT License",
16
16
  "Programming Language :: Python :: 3",
17
- "Programming Language :: Python :: 3.12",
17
+ "Programming Language :: Python :: 3.11",
18
18
  'Development Status :: 4 - Beta',
19
19
  'Intended Audience :: Science/Research',
20
20
  'Operating System :: OS Independent',
@@ -499,6 +499,11 @@ def plot_stacked_bars(
499
499
  fig.update_xaxes(showgrid=True, gridwidth=1)
500
500
  fig.update_yaxes(showgrid=True, gridwidth=1)
501
501
 
502
+ fig.update_layout(
503
+ width=width,
504
+ height=height,
505
+ )
506
+
502
507
  # * save to png if path is provided
503
508
  if png_path is not None:
504
509
  fig.write_image(Path(png_path).as_posix())
@@ -782,6 +787,11 @@ def plot_bars(
782
787
  textposition="outside",
783
788
  # error_y=dict(thickness=0)
784
789
  )
790
+
791
+ _fig.update_layout(
792
+ width=width,
793
+ height=height,
794
+ )
785
795
 
786
796
  # * set axis title
787
797
  _fig.show(
@@ -881,6 +891,11 @@ def plot_histogram(
881
891
  },
882
892
  showlegend=False if df.shape[1] == 1 else True,
883
893
  )
894
+
895
+ fig.update_layout(
896
+ width=width,
897
+ height=height,
898
+ )
884
899
 
885
900
  fig.show(
886
901
  renderer,
@@ -1142,6 +1157,11 @@ def plot_box(
1142
1157
  y=-0,
1143
1158
  )
1144
1159
 
1160
+ fig.update_layout(
1161
+ width=width,
1162
+ height=height,
1163
+ )
1164
+
1145
1165
  fig.show(
1146
1166
  renderer=renderer or os.getenv("RENDERER"),
1147
1167
  width=width,
@@ -1517,6 +1537,12 @@ def plot_facet_stacked_bars(
1517
1537
  if relative:
1518
1538
  fig.update_yaxes(tickformat=".0%")
1519
1539
 
1540
+ fig.update_layout(
1541
+ width=subplot_size * subplots_per_row,
1542
+ height=subplot_size
1543
+ * (-(-len(aggregated_df["facet"].unique()) // subplots_per_row)),
1544
+ )
1545
+
1520
1546
  if png_path:
1521
1547
  png_path = Path(png_path)
1522
1548
  fig.write_image(str(png_path))
@@ -1859,7 +1885,8 @@ def plot_sankey(
1859
1885
  ]
1860
1886
  )
1861
1887
 
1862
- fig.update_layout(title_text=chart_title, font_size=font_size)
1888
+
1889
+ fig.update_layout(title_text=chart_title, font_size=font_size, width=width, height=height)
1863
1890
  fig.show(renderer=renderer or os.getenv("RENDERER"), width=width, height=height)
1864
1891
 
1865
1892
  # * extend objects to enable chaining
@@ -263,7 +263,11 @@ def describe_df(
263
263
  height=fig_rowheight * fig_rows, # <-- Set height here
264
264
  )
265
265
 
266
- fig.show(renderer)
266
+ fig.show(
267
+ renderer,
268
+ width=fig_width * fig_cols, # <-- Set width here
269
+ height=fig_rowheight * fig_rows, # <-- Set height here
270
+ )
267
271
 
268
272
  if use_missing:
269
273
  import missingno as msno
File without changes