DaSPi 2.8.0__tar.gz → 2.9.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.
Files changed (188) hide show
  1. {daspi-2.8.0 → daspi-2.9.0}/PKG-INFO +1 -1
  2. {daspi-2.8.0 → daspi-2.9.0}/daspi/__init__.py +6 -0
  3. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/plotter.py +141 -0
  4. {daspi-2.8.0 → daspi-2.9.0}/pyproject.toml +1 -1
  5. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_alignments_basic.png +0 -0
  6. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_all_alignments.png +0 -0
  7. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_angles_basic.png +0 -0
  8. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_callable_formatters.png +0 -0
  9. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_combined_all_features.png +0 -0
  10. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_extreme_angles.png +0 -0
  11. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_formatters_basic.png +0 -0
  12. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_formatters_scientific.png +0 -0
  13. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_multivariate_formatting.png +0 -0
  14. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_orientation_mapping.png +0 -0
  15. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Formatting_Features_Test_percentage_formatter.png +0 -0
  16. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_comparison_with_violin.png +0 -0
  17. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_custom_color.png +0 -0
  18. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_custom_width.png +0 -0
  19. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_joint_chart_mixed_plots.png +0 -0
  20. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_multivariate_chart_facets.png +0 -0
  21. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_resolution_high.png +0 -0
  22. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_single_chart_horizontal.png +0 -0
  23. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_single_chart_no_fade.png +0 -0
  24. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_single_chart_no_fill.png +0 -0
  25. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_single_chart_simple.png +0 -0
  26. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/GaussianKDEContourUnivariate_single_chart_with_hue.png +0 -0
  27. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/JointChart_bar_stacking.png +0 -0
  28. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/JointChart_pareto_marked.png +0 -0
  29. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/JointChart_probability_dists-prob.png +0 -0
  30. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/JointChart_regression_kde.png +0 -0
  31. daspi-2.9.0/tests/charts/MultivariateChart_full-stripes.png +0 -0
  32. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/MultivariateChart_full.png +0 -0
  33. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_bivariate-univariate-charts_contour-mean-test.png +0 -0
  34. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_bivariate-univariate-charts_mean-test.png +0 -0
  35. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_bivariate-univariate-charts_simple.png +0 -0
  36. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_bivariate-univariate-charts_smoothed.png +0 -0
  37. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_bivariate-univariate-charts_user.png +0 -0
  38. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_goodness_of_fit_charts_basic.png +0 -0
  39. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_goodness_of_fit_charts_refit-epoch-7.png +0 -0
  40. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_pair_comparison_charts_basic.png +0 -0
  41. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_parameter_relevance_charts_basic.png +0 -0
  42. daspi-2.9.0/tests/charts/Precasts_process-capabity-analysis-charts_hue.png +0 -0
  43. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_residual_charts_basic.png +0 -0
  44. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_KDE-cumulative_multiple.png +0 -0
  45. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_KDE_multiple.png +0 -0
  46. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_KDE_ridge.png +0 -0
  47. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_beeswarm_multiple.png +0 -0
  48. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_beeswarm_simple.png +0 -0
  49. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_blandaltman_simple.png +0 -0
  50. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_blandaltman_user.png +0 -0
  51. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_box_fill.png +0 -0
  52. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_box_multiple.png +0 -0
  53. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_box_simple.png +0 -0
  54. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_categorical-float-features_simple.png +0 -0
  55. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_errorbar_mean-test.png +0 -0
  56. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_errorbar_sem.png +0 -0
  57. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_errorbar_std-test.png +0 -0
  58. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_errorbar_var-test.png +0 -0
  59. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_fitted-density_cdf-multiple.png +0 -0
  60. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_jitter_multiple.png +0 -0
  61. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_jitter_simple.png +0 -0
  62. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_line_hue.png +0 -0
  63. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_line_hue_size.png +0 -0
  64. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_pareto-threshold_simple.png +0 -0
  65. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_pareto_simple.png +0 -0
  66. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_pareto_transposed.png +0 -0
  67. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_quantiles_multiple.png +0 -0
  68. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_quantiles_simple.png +0 -0
  69. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_scatter_full.png +0 -0
  70. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_scatter_hue-shape.png +0 -0
  71. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_scatter_hue-size.png +0 -0
  72. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_scatter_hue.png +0 -0
  73. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_scatter_shape.png +0 -0
  74. daspi-2.9.0/tests/charts/SingleChart_scatter_simple-stripes-65ci.png +0 -0
  75. daspi-2.9.0/tests/charts/SingleChart_scatter_simple-stripes-99ci.png +0 -0
  76. daspi-2.9.0/tests/charts/SingleChart_scatter_simple-stripes.png +0 -0
  77. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_scatter_size-shape.png +0 -0
  78. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_scatter_size.png +0 -0
  79. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_violin_mono.png +0 -0
  80. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_violin_multiple.png +0 -0
  81. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_violin_simple.png +0 -0
  82. {daspi-2.8.0 → daspi-2.9.0}/tests/plotlib_plotter_test.py +99 -0
  83. daspi-2.8.0/tests/charts/MultivariateChart_full-stripes.png +0 -0
  84. daspi-2.8.0/tests/charts/Precasts_process-capabity-analysis-charts_hue.png +0 -0
  85. daspi-2.8.0/tests/charts/SingleChart_scatter_simple-stripes-65ci.png +0 -0
  86. daspi-2.8.0/tests/charts/SingleChart_scatter_simple-stripes-99ci.png +0 -0
  87. daspi-2.8.0/tests/charts/SingleChart_scatter_simple-stripes.png +0 -0
  88. {daspi-2.8.0 → daspi-2.9.0}/LICENSE +0 -0
  89. {daspi-2.8.0 → daspi-2.9.0}/README.md +0 -0
  90. {daspi-2.8.0 → daspi-2.9.0}/daspi/_typing.py +0 -0
  91. {daspi-2.8.0 → daspi-2.9.0}/daspi/_version.py +0 -0
  92. {daspi-2.8.0 → daspi-2.9.0}/daspi/anova/__init__.py +0 -0
  93. {daspi-2.8.0 → daspi-2.9.0}/daspi/anova/convert.py +0 -0
  94. {daspi-2.8.0 → daspi-2.9.0}/daspi/anova/model.py +0 -0
  95. {daspi-2.8.0 → daspi-2.9.0}/daspi/anova/tables.py +0 -0
  96. {daspi-2.8.0 → daspi-2.9.0}/daspi/config.py +0 -0
  97. {daspi-2.8.0 → daspi-2.9.0}/daspi/constants.py +0 -0
  98. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/__init__.py +0 -0
  99. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/ancova.csv +0 -0
  100. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/anova.csv +0 -0
  101. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/anova2.csv +0 -0
  102. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/anova2_unbalanced.csv +0 -0
  103. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/anova3.csv +0 -0
  104. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/anova3_unbalanced.csv +0 -0
  105. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/carpet_full-factorial.csv +0 -0
  106. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/covariate.csv +0 -0
  107. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/drop_card.csv +0 -0
  108. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/eeprom_full-factorial.csv +0 -0
  109. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/eeprom_partial-factorial.csv +0 -0
  110. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/grnr_adjustment.csv +0 -0
  111. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/grnr_layer_thickness.csv +0 -0
  112. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/grnr_spc.csv +0 -0
  113. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/iris.csv +0 -0
  114. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/mpg.csv +0 -0
  115. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/painkillers-dissolution.csv +0 -0
  116. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/partial_factorial.csv +0 -0
  117. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/penguins.csv +0 -0
  118. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/process_capability.mpx +0 -0
  119. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/salt_sticks.csv +0 -0
  120. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/shoe-sole.csv +0 -0
  121. {daspi-2.8.0 → daspi-2.9.0}/daspi/datasets/tips.csv +0 -0
  122. {daspi-2.8.0 → daspi-2.9.0}/daspi/doe/__init__.py +0 -0
  123. {daspi-2.8.0 → daspi-2.9.0}/daspi/doe/build.py +0 -0
  124. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/__init__.py +0 -0
  125. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/appearance.py +0 -0
  126. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/chart.py +0 -0
  127. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/classify.py +0 -0
  128. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/facets.py +0 -0
  129. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/precast.py +0 -0
  130. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/styles/daspi-dark.mplstyle +0 -0
  131. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/styles/daspi.mplstyle +0 -0
  132. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/styles/ggplot2.mplstyle +0 -0
  133. {daspi-2.8.0 → daspi-2.9.0}/daspi/plotlib/styles/seaborn.mplstyle +0 -0
  134. {daspi-2.8.0 → daspi-2.9.0}/daspi/requirements.txt +0 -0
  135. {daspi-2.8.0 → daspi-2.9.0}/daspi/statistics/__init__.py +0 -0
  136. {daspi-2.8.0 → daspi-2.9.0}/daspi/statistics/confidence.py +0 -0
  137. {daspi-2.8.0 → daspi-2.9.0}/daspi/statistics/estimation.py +0 -0
  138. {daspi-2.8.0 → daspi-2.9.0}/daspi/statistics/hypothesis.py +0 -0
  139. {daspi-2.8.0 → daspi-2.9.0}/daspi/statistics/montecarlo.py +0 -0
  140. {daspi-2.8.0 → daspi-2.9.0}/daspi/strings.py +0 -0
  141. {daspi-2.8.0 → daspi-2.9.0}/tests/ANOVA_SS_Fehler.mpx +0 -0
  142. {daspi-2.8.0 → daspi-2.9.0}/tests/ANOVA_SS_Fehler.mpx.bak +0 -0
  143. {daspi-2.8.0 → daspi-2.9.0}/tests/GageRnR.mpx +0 -0
  144. {daspi-2.8.0 → daspi-2.9.0}/tests/GageRnR.mpx.bak +0 -0
  145. {daspi-2.8.0 → daspi-2.9.0}/tests/__init__.py +0 -0
  146. {daspi-2.8.0 → daspi-2.9.0}/tests/anova_convert_test.py +0 -0
  147. {daspi-2.8.0 → daspi-2.9.0}/tests/anova_model_test.py +0 -0
  148. {daspi-2.8.0 → daspi-2.9.0}/tests/anova_tables_test.py +0 -0
  149. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/JointChart_kdes_kde-mean.png +0 -0
  150. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/JointChart_kdes_mixed-kde.png +0 -0
  151. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/JointChart_probability_norm-prob.png +0 -0
  152. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_gage_rnr_model_basic.png +0 -0
  153. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/Precasts_gage_study_model_basic.png +0 -0
  154. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_KDE-cumulative_simple.png +0 -0
  155. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_KDE_simple.png +0 -0
  156. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_fitted-density_pdf-data.png +0 -0
  157. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_fitted-density_pdf-norm.png +0 -0
  158. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_scatter_simple.png +0 -0
  159. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_scatter_transposed.png +0 -0
  160. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_smoothing_ma-ema.png +0 -0
  161. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_violine-contour_simple.png +0 -0
  162. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_violine_mono.png +0 -0
  163. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_violine_multiple.png +0 -0
  164. {daspi-2.8.0 → daspi-2.9.0}/tests/charts/SingleChart_violine_simple.png +0 -0
  165. {daspi-2.8.0 → daspi-2.9.0}/tests/config_test.py +0 -0
  166. {daspi-2.8.0 → daspi-2.9.0}/tests/data/anova3_result.csv +0 -0
  167. {daspi-2.8.0 → daspi-2.9.0}/tests/data/dists_10-samples.csv +0 -0
  168. {daspi-2.8.0 → daspi-2.9.0}/tests/data/dists_25-samples.csv +0 -0
  169. {daspi-2.8.0 → daspi-2.9.0}/tests/data/gage_rnr.csv +0 -0
  170. {daspi-2.8.0 → daspi-2.9.0}/tests/data/gage_study.csv +0 -0
  171. {daspi-2.8.0 → daspi-2.9.0}/tests/data/generate_dists.py +0 -0
  172. {daspi-2.8.0 → daspi-2.9.0}/tests/data/grnr_d-optimal.csv +0 -0
  173. {daspi-2.8.0 → daspi-2.9.0}/tests/data/uncertainties.csv +0 -0
  174. {daspi-2.8.0 → daspi-2.9.0}/tests/doe_build_test.py +0 -0
  175. {daspi-2.8.0 → daspi-2.9.0}/tests/plotlib_appearance_test.py +0 -0
  176. {daspi-2.8.0 → daspi-2.9.0}/tests/plotlib_chart_test.py +0 -0
  177. {daspi-2.8.0 → daspi-2.9.0}/tests/plotlib_classify_test.py +0 -0
  178. {daspi-2.8.0 → daspi-2.9.0}/tests/plotlib_facets_test.py +0 -0
  179. {daspi-2.8.0 → daspi-2.9.0}/tests/plotlib_templates_test.py +0 -0
  180. {daspi-2.8.0 → daspi-2.9.0}/tests/plotlib_visual_test.py +0 -0
  181. {daspi-2.8.0 → daspi-2.9.0}/tests/r2_pred.mpx +0 -0
  182. {daspi-2.8.0 → daspi-2.9.0}/tests/r2_pred.mpx.bak +0 -0
  183. {daspi-2.8.0 → daspi-2.9.0}/tests/statistics_confidence_test.py +0 -0
  184. {daspi-2.8.0 → daspi-2.9.0}/tests/statistics_estimation_test.py +0 -0
  185. {daspi-2.8.0 → daspi-2.9.0}/tests/statistics_hypothesis_test.py +0 -0
  186. {daspi-2.8.0 → daspi-2.9.0}/tests/statistics_montecarlo_test.py +0 -0
  187. {daspi-2.8.0 → daspi-2.9.0}/tests/strings_test.py +0 -0
  188. {daspi-2.8.0 → daspi-2.9.0}/tests/test_full_factorial_design_builder.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: DaSPi
3
- Version: 2.8.0
3
+ Version: 2.9.0
4
4
  Summary: Visualize and analyze your data with DaSPi. This package is designed for users who want to find relevant influencing factors in processes and validate improvements.
5
5
  Author-Email: Reto Jäggli <reto@jaeggli.email>
6
6
  License: MIT
@@ -101,8 +101,10 @@ if TYPE_CHECKING:
101
101
  Scatter,
102
102
  SkipSubplot,
103
103
  SpreadWidth,
104
+ Stairs,
104
105
  StandardErrorMean,
105
106
  Stem,
107
+ Step,
106
108
  StripeArea,
107
109
  StripeLine,
108
110
  StripeSpan,
@@ -263,8 +265,10 @@ _LAZY_SUBMODULES: dict[str, str] = {
263
265
  'Scatter': '.plotlib.plotter',
264
266
  'SkipSubplot': '.plotlib.plotter',
265
267
  'SpreadWidth': '.plotlib.plotter',
268
+ 'Stairs': '.plotlib.plotter',
266
269
  'StandardErrorMean': '.plotlib.plotter',
267
270
  'Stem': '.plotlib.plotter',
271
+ 'Step': '.plotlib.plotter',
268
272
  'StripeArea': '.plotlib.plotter',
269
273
  'StripeLine': '.plotlib.plotter',
270
274
  'StripeSpan': '.plotlib.plotter',
@@ -433,8 +437,10 @@ __all__ = [
433
437
  'SpecLimits',
434
438
  'Specification',
435
439
  'SpreadWidth',
440
+ 'Stairs',
436
441
  'StandardErrorMean',
437
442
  'Stem',
443
+ 'Step',
438
444
  'StripeArea',
439
445
  'StripeLine',
440
446
  'StripeSpan',
@@ -25,6 +25,8 @@ Continuous marks:
25
25
  - ``Scatter`` — scatter plot with optional hue, shape, and size
26
26
  encoding.
27
27
  - ``Line`` — line plot connecting consecutive observations.
28
+ - ``Stairs`` — stepwise constant plot defined by values and edges.
29
+ - ``Step`` — step plot through feature and target positions.
28
30
  - ``Stem`` — stem (lollipop) plot.
29
31
  - ``LinearRegressionLine`` — OLS regression line with an optional
30
32
  confidence band.
@@ -169,8 +171,10 @@ __all__ = [
169
171
  'Scatter',
170
172
  'SkipSubplot',
171
173
  'SpreadWidth',
174
+ 'Stairs',
172
175
  'StandardErrorMean',
173
176
  'Stem',
177
+ 'Step',
174
178
  'Stripe',
175
179
  'StripeArea',
176
180
  'StripeLine',
@@ -1030,6 +1034,143 @@ class Line(Plotter):
1030
1034
  self.ax.plot(self.x, self.y, **_kwds)
1031
1035
 
1032
1036
 
1037
+ class Stairs(Plotter):
1038
+ """A stepwise constant plotter with optional bin edges.
1039
+
1040
+ The target column supplies the step values. When no edges are given,
1041
+ Matplotlib assigns consecutive integer edges starting at zero.
1042
+
1043
+ Parameters
1044
+ ----------
1045
+ source : pandas DataFrame
1046
+ Pandas long format DataFrame containing the data source for the
1047
+ plot.
1048
+ target : str
1049
+ Column name containing the step values.
1050
+ feature : str, optional
1051
+ Column name retained for chart integration. It is not used as
1052
+ edges because stairs require one more edge than value.
1053
+ edges : array-like or None, optional
1054
+ The step positions. The sequence must contain one more item than
1055
+ the target column. If None, consecutive integer edges are used.
1056
+ baseline : float, array-like, or None, optional
1057
+ Baseline of the stairs, by default 0.
1058
+ fill : bool, optional
1059
+ Whether to fill the area below the stairs, by default False.
1060
+ target_on_y : bool, optional
1061
+ Flag indicating whether the target values are plotted on the
1062
+ y-axis, by default True.
1063
+ color : str or None, optional
1064
+ Color used to draw the stairs. If None, the first color from the
1065
+ color cycle is used.
1066
+ ax : matplotlib.axes.Axes or None, optional
1067
+ Axes to draw on. If None, the current axes are used.
1068
+ visible_spines : Literal['target', 'feature', 'none'] or None, optional
1069
+ Which spines should remain visible.
1070
+ hide_axis : Literal['target', 'feature', 'both'] or None, optional
1071
+ Which axes should be hidden.
1072
+ **kwds:
1073
+ Additional arguments accepted for chart compatibility.
1074
+ """
1075
+ __slots__ = ('baseline', 'edges', 'fill')
1076
+
1077
+ baseline: float | ArrayLike | None
1078
+ """Baseline of the stairs."""
1079
+ edges: ArrayLike | None
1080
+ """Positions of the stairs edges."""
1081
+ fill: bool
1082
+ """Whether the area below the stairs is filled."""
1083
+
1084
+ def __init__(
1085
+ self,
1086
+ source: DataFrame,
1087
+ target: str,
1088
+ feature: str = '',
1089
+ edges: ArrayLike | None = None,
1090
+ baseline: float | ArrayLike | None = 0,
1091
+ fill: bool = False,
1092
+ target_on_y: bool = True,
1093
+ color: str | None = None,
1094
+ ax: Axes | None = None,
1095
+ visible_spines: Literal['target', 'feature', 'none'] | None = None,
1096
+ hide_axis: Literal['target', 'feature', 'both'] | None = None,
1097
+ **kwds) -> None:
1098
+ super().__init__(
1099
+ source=source,
1100
+ target=target,
1101
+ feature=feature,
1102
+ target_on_y=target_on_y,
1103
+ color=color,
1104
+ marker=None,
1105
+ ax=ax,
1106
+ visible_spines=visible_spines,
1107
+ hide_axis=hide_axis)
1108
+ self.edges = edges
1109
+ self.baseline = baseline
1110
+ self.fill = fill
1111
+
1112
+ @property
1113
+ def kw_default(self) -> dict[str, Any]:
1114
+ """Default keyword arguments for plotting (read-only)."""
1115
+ return {
1116
+ 'color': self.color,
1117
+ 'orientation': 'vertical' if self.target_on_y else 'horizontal',
1118
+ 'baseline': self.baseline,
1119
+ 'fill': self.fill}
1120
+
1121
+ def __call__(self, edges: ArrayLike | None = None, **kwds) -> None:
1122
+ """Draw the stairs.
1123
+
1124
+ Parameters
1125
+ ----------
1126
+ edges : array-like or None, optional
1127
+ Step positions overriding the edges provided at
1128
+ initialization. If None, the initialized edges are used.
1129
+ **kwds:
1130
+ Additional keyword arguments passed to ``Axes.stairs``.
1131
+ """
1132
+ _kwds = self.kw_default | kwds
1133
+ _edges = self.edges if edges is None else edges
1134
+ self.ax.stairs(self.source[self.target], _edges, **_kwds)
1135
+
1136
+
1137
+ class Step(Line):
1138
+ """A step plotter for values at feature positions.
1139
+
1140
+ Parameters are the same as for :class:`Line`. The ``where`` argument
1141
+ controls whether steps extend before, after, or midway between the
1142
+ feature positions.
1143
+ """
1144
+
1145
+ @property
1146
+ def kw_default(self) -> dict[str, Any]:
1147
+ """Default keyword arguments for plotting (read-only)."""
1148
+ return {'color': self._color, 'where': 'pre'}
1149
+
1150
+ def __call__(
1151
+ self,
1152
+ marker: str | None = None,
1153
+ where: Literal['pre', 'post', 'mid'] = 'pre',
1154
+ **kwds) -> None:
1155
+ """Perform the step plot operation.
1156
+
1157
+ Parameters
1158
+ ----------
1159
+ marker : str or None, optional
1160
+ Marker style drawn at the feature/target positions.
1161
+ where : {'pre', 'post', 'mid'}, optional
1162
+ Placement of the steps, by default 'pre'.
1163
+ **kwds:
1164
+ Additional keyword arguments passed to ``Axes.step``.
1165
+ """
1166
+ alpha = COLOR.MARKER_ALPHA if marker is not None else None
1167
+ _kwds = (
1168
+ self.kw_default
1169
+ | {'marker': marker, 'alpha': alpha, 'where': where}
1170
+ | kwds)
1171
+ self.ax.step(self.x, self.y, **_kwds)
1172
+
1173
+
1033
1174
  class Stem(Plotter):
1034
1175
  """A stem plotter that extends the Plotter base class.
1035
1176
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "DaSPi"
3
- version = "2.8.0"
3
+ version = "2.9.0"
4
4
  description = "Visualize and analyze your data with DaSPi. This package is designed for users who want to find relevant influencing factors in processes and validate improvements."
5
5
  authors = [
6
6
  { name = "Reto Jäggli", email = "reto@jaeggli.email" },
@@ -54,6 +54,105 @@ class TestPlotterColorSync:
54
54
  assert line.color == default_color
55
55
 
56
56
 
57
+ class TestStairs:
58
+
59
+ @pytest.fixture
60
+ def source(self) -> pd.DataFrame:
61
+ return pd.DataFrame({'value': [1.0, 3.0, 2.0]})
62
+
63
+ @pytest.fixture
64
+ def ax(self) -> Axes:
65
+ return plt.subplots(1, 1)[1]
66
+
67
+ def test_call_draws_stairs_with_edges(
68
+ self, source: pd.DataFrame, ax: Axes) -> None:
69
+ edges = [0, 1, 2, 4]
70
+ plotter = Stairs(
71
+ source=source, target='value', edges=edges, ax=ax)
72
+
73
+ plotter(color='firebrick')
74
+
75
+ patch = ax.patches[-1]
76
+ vertices = patch.get_path().vertices
77
+ assert np.allclose(np.unique(vertices[:, 0]), edges)
78
+ assert np.allclose(
79
+ np.unique(vertices[:, 1]), [0, 1, 2, 3])
80
+ assert to_hex(patch.get_edgecolor()) == to_hex('firebrick')
81
+
82
+ def test_call_supports_horizontal_orientation(
83
+ self, source: pd.DataFrame, ax: Axes) -> None:
84
+ edges = [-1, 0, 2, 3]
85
+ plotter = Stairs(
86
+ source=source,
87
+ target='value',
88
+ edges=edges,
89
+ target_on_y=False,
90
+ baseline=None,
91
+ ax=ax)
92
+
93
+ plotter()
94
+
95
+ assert np.allclose(
96
+ np.unique(ax.patches[-1].get_path().vertices[:, 1]), edges)
97
+ assert plotter.kw_default['orientation'] == 'horizontal'
98
+
99
+ def test_call_can_override_edges_and_fill(
100
+ self, source: pd.DataFrame, ax: Axes) -> None:
101
+ plotter = Stairs(source=source, target='value', ax=ax)
102
+
103
+ plotter(edges=[10, 11, 12, 13], fill=True)
104
+
105
+ patch = ax.patches[-1]
106
+ assert np.allclose(
107
+ np.unique(patch.get_path().vertices[:, 0]), [10, 11, 12, 13])
108
+ assert patch.get_fill()
109
+
110
+
111
+ class TestStep:
112
+
113
+ @pytest.fixture
114
+ def source(self) -> pd.DataFrame:
115
+ return pd.DataFrame({
116
+ 'x': [1.0, 2.0, 4.0],
117
+ 'y': [2.0, 1.0, 3.0]})
118
+
119
+ @pytest.fixture
120
+ def ax(self) -> Axes:
121
+ return plt.subplots(1, 1)[1]
122
+
123
+ @pytest.mark.parametrize(
124
+ ('where', 'drawstyle'),
125
+ [('pre', 'steps-pre'), ('post', 'steps-post'), ('mid', 'steps-mid')])
126
+ def test_call_sets_positions_and_drawstyle(
127
+ self,
128
+ source: pd.DataFrame,
129
+ ax: Axes,
130
+ where: str,
131
+ drawstyle: str) -> None:
132
+ plotter = Step(source=source, target='y', feature='x', ax=ax)
133
+
134
+ plotter(where=where)
135
+
136
+ line = ax.lines[-1]
137
+ assert np.allclose(line.get_xdata(), source['x'])
138
+ assert np.allclose(line.get_ydata(), source['y'])
139
+ assert line.get_drawstyle() == drawstyle
140
+
141
+ def test_call_supports_target_on_x(
142
+ self, source: pd.DataFrame, ax: Axes) -> None:
143
+ plotter = Step(
144
+ source=source, target='y', feature='x',
145
+ target_on_y=False, ax=ax)
146
+
147
+ plotter(marker='o', color='navy')
148
+
149
+ line = ax.lines[-1]
150
+ assert np.allclose(line.get_xdata(), source['y'])
151
+ assert np.allclose(line.get_ydata(), source['x'])
152
+ assert line.get_marker() == 'o'
153
+ assert to_hex(line.get_color()) == to_hex('navy')
154
+
155
+
57
156
  class TestStripe:
58
157
 
59
158
  class ConcreteStripe(Stripe):
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
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
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
File without changes
File without changes
File without changes