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 .variability import variability_plot as variability_plot
|
||||||
from .wmap import wafermap as wafermap
|
from .wmap import wafermap as wafermap
|
||||||
|
|
||||||
|
|
||||||
|
__version__ = '0.1'
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import numpy
|
|||||||
from numpy.typing import NDArray
|
from numpy.typing import NDArray
|
||||||
import polars
|
import polars
|
||||||
from polars import col
|
from polars import col
|
||||||
from matplotlib import pyplot, gridspec
|
from matplotlib import pyplot, gridspec, ticker
|
||||||
from matplotlib.figure import Figure
|
from matplotlib.figure import Figure
|
||||||
from matplotlib.axes import Axes
|
from matplotlib.axes import Axes
|
||||||
|
|
||||||
@ -118,6 +118,7 @@ def variability_plot(
|
|||||||
boxprops.setdefault('showfliers', False)
|
boxprops.setdefault('showfliers', False)
|
||||||
boxprops.setdefault('medianprops', dict(linewidth=3, color='darkred', alpha=0.8))
|
boxprops.setdefault('medianprops', dict(linewidth=3, color='darkred', alpha=0.8))
|
||||||
boxprops.setdefault('boxprops', dict(linewidth=0.5, color='black'))
|
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)
|
_boxplt = ax.boxplot(y_lists, positions=range(num_dsets), **boxprops)
|
||||||
if meanprops:
|
if meanprops:
|
||||||
means = [yl.mean() for yl in y_lists]
|
means = [yl.mean() for yl in y_lists]
|
||||||
@ -202,6 +203,7 @@ def variability_plot(
|
|||||||
ax.grid(alpha=1, which='major')
|
ax.grid(alpha=1, which='major')
|
||||||
ax.set_ylabel(data_col)
|
ax.set_ylabel(data_col)
|
||||||
ax.set_title(data_col)
|
ax.set_title(data_col)
|
||||||
|
ax.yaxis.set_minor_locator(ticker.AutoMinorLocator())
|
||||||
|
|
||||||
def resize_labels(event) -> None:
|
def resize_labels(event) -> None:
|
||||||
# Resize labels
|
# Resize labels
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "miscplot"
|
name = "miscplot"
|
||||||
version = "0.1.0"
|
|
||||||
description = "Miscellaneous plots"
|
description = "Miscellaneous plots"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = { file = "LICENSE.md" }
|
license = { file = "LICENSE.md" }
|
||||||
@ -9,7 +8,7 @@ authors = [
|
|||||||
]
|
]
|
||||||
homepage = "https://mpxd.net/code/jan/miscplot"
|
homepage = "https://mpxd.net/code/jan/miscplot"
|
||||||
repository = "https://mpxd.net/code/jan/miscplot"
|
repository = "https://mpxd.net/code/jan/miscplot"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.11"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"matplotlib>=3.10.7",
|
"matplotlib>=3.10.7",
|
||||||
"numpy>=2.3.4",
|
"numpy>=2.3.4",
|
||||||
@ -33,5 +32,5 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
|
|
||||||
[tool.hatch.version]
|
[tool.hatch.version]
|
||||||
path = "klamath/__init__.py"
|
path = "miscplot/__init__.py"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user