pandas-plots 0.12.22__tar.gz → 0.12.23__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,4 +1,4 @@
1
- Copyright 2024 smeisegeier
1
+ Copyright 2025 smeisegeier
2
2
 
3
3
  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:
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pandas-plots
3
- Version: 0.12.22
3
+ Version: 0.12.23
4
4
  Summary: A collection of helper for table handling and visualization
5
5
  Home-page: https://github.com/smeisegeier/pandas-plots
6
6
  Author: smeisegeier
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = pandas-plots
3
- version = 0.12.22
3
+ version = 0.12.23
4
4
  author = smeisegeier
5
5
  author_email = dexterDSDo@googlemail.com
6
6
  description = A collection of helper for table handling and visualization
@@ -1016,6 +1016,7 @@ def plot_box(
1016
1016
  lvl3 = height * 0.25
1017
1017
 
1018
1018
  caption = _set_caption(caption)
1019
+ log_str = " (log-scale)" if use_log else ""
1019
1020
  dict = {
1020
1021
  "data_frame": ser,
1021
1022
  "orientation": "h",
@@ -1026,7 +1027,7 @@ def plot_box(
1026
1027
  # 'box':True,
1027
1028
  "log_x": use_log, # * logarithmic scale, axis is always x
1028
1029
  # "notched": True,
1029
- "title": f"{caption}[{ser.name}], n = {n_:_}" if not title else title,
1030
+ "title": f"{caption}[{ser.name}]{log_str}, n = {n_:_}" if not title else title,
1030
1031
  }
1031
1032
 
1032
1033
  fig = px.violin(**{**dict, "box": True}) if violin else px.box(**dict)
@@ -1173,6 +1174,7 @@ def plot_boxes(
1173
1174
  items = df.iloc[:, 0].unique()
1174
1175
 
1175
1176
  caption = _set_caption(caption)
1177
+ log_str = " (log-scale)" if use_log else ""
1176
1178
 
1177
1179
  # * main plot
1178
1180
  fig = px.box(
@@ -1188,7 +1190,7 @@ def plot_boxes(
1188
1190
  log_y=use_log,
1189
1191
  # color_discrete_sequence=px.colors.qualitative.Plotly,
1190
1192
  title=(
1191
- f"{caption}[{df.columns[0]}] on [{df.columns[1]}], n = {len(df):_.0f}"
1193
+ f"{caption}[{df.columns[0]}] by [{df.columns[1]}]{log_str}, n = {len(df):_.0f}"
1192
1194
  if not title
1193
1195
  else title
1194
1196
  ),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pandas-plots
3
- Version: 0.12.22
3
+ Version: 0.12.23
4
4
  Summary: A collection of helper for table handling and visualization
5
5
  Home-page: https://github.com/smeisegeier/pandas-plots
6
6
  Author: smeisegeier
File without changes