Compare commits
4 Commits
40a33ecf13
...
48896c9529
| Author | SHA1 | Date | |
|---|---|---|---|
| 48896c9529 | |||
| 9cde38b620 | |||
| 60375d787a | |||
| ebff45fefe |
@ -1,2 +1,5 @@
|
||||
from .variability import variability_plot as variability_plot
|
||||
from .wmap import wafermap as wafermap
|
||||
|
||||
|
||||
__version__ = '0.1'
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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]
|
||||
@ -202,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
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
[project]
|
||||
name = "miscplot"
|
||||
version = "0.1.0"
|
||||
description = "Miscellaneous plots"
|
||||
readme = "README.md"
|
||||
license = { file = "LICENSE.md" }
|
||||
@ -9,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",
|
||||
@ -33,5 +32,5 @@ build-backend = "hatchling.build"
|
||||
|
||||
|
||||
[tool.hatch.version]
|
||||
path = "klamath/__init__.py"
|
||||
path = "miscplot/__init__.py"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user