From ebff45fefea2c721d3e3b31be84110d06750719a Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 5 Nov 2025 22:58:50 -0800 Subject: [PATCH 1/4] fixup version definition --- miscplot/__init__.py | 3 +++ pyproject.toml | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/miscplot/__init__.py b/miscplot/__init__.py index 69fdea9..bd10ef1 100644 --- a/miscplot/__init__.py +++ b/miscplot/__init__.py @@ -1,2 +1,5 @@ from .variability import variability_plot as variability_plot from .wmap import wafermap as wafermap + + +__version__ = '0.1' diff --git a/pyproject.toml b/pyproject.toml index 3d4701a..49cfed0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "miscplot" -version = "0.1.0" description = "Miscellaneous plots" readme = "README.md" license = { file = "LICENSE.md" } @@ -33,5 +32,5 @@ build-backend = "hatchling.build" [tool.hatch.version] -path = "klamath/__init__.py" +path = "miscplot/__init__.py" From 60375d787ad597a7c0f342dea541f585634ce7e2 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 5 Nov 2025 22:59:07 -0800 Subject: [PATCH 2/4] require python 3.11 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 49cfed0..00b6ecf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ authors = [ ] homepage = "https://mpxd.net/code/jan/miscplot" repository = "https://mpxd.net/code/jan/miscplot" -requires-python = ">=3.13" +requires-python = ">=3.11" dependencies = [ "matplotlib>=3.10.7", "numpy>=2.3.4", From 9cde38b6205ce50792262068379d9984baa2034b Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 5 Nov 2025 22:59:23 -0800 Subject: [PATCH 3/4] [variability] reduce whisker thickness --- miscplot/variability.py | 1 + 1 file changed, 1 insertion(+) diff --git a/miscplot/variability.py b/miscplot/variability.py index ae64261..af82647 100644 --- a/miscplot/variability.py +++ b/miscplot/variability.py @@ -118,6 +118,7 @@ def variability_plot( boxprops.setdefault('showfliers', False) boxprops.setdefault('medianprops', dict(linewidth=3, color='darkred', alpha=0.8)) boxprops.setdefault('boxprops', dict(linewidth=0.5, color='black')) + boxprops.setdefault('whiskerprops', dict(linewidth=0.5, color='black')) _boxplt = ax.boxplot(y_lists, positions=range(num_dsets), **boxprops) if meanprops: means = [yl.mean() for yl in y_lists] From 48896c952996e2750431e72b2c70f6b1cd8516bd Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 5 Nov 2025 22:59:44 -0800 Subject: [PATCH 4/4] Add auto minor ticks --- miscplot/variability.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miscplot/variability.py b/miscplot/variability.py index af82647..b380aac 100644 --- a/miscplot/variability.py +++ b/miscplot/variability.py @@ -9,7 +9,7 @@ import numpy from numpy.typing import NDArray import polars from polars import col -from matplotlib import pyplot, gridspec +from matplotlib import pyplot, gridspec, ticker from matplotlib.figure import Figure from matplotlib.axes import Axes @@ -203,6 +203,7 @@ def variability_plot( ax.grid(alpha=1, which='major') ax.set_ylabel(data_col) ax.set_title(data_col) + ax.yaxis.set_minor_locator(ticker.AutoMinorLocator()) def resize_labels(event) -> None: # Resize labels