semvec/pypi-packages huggingface dataset:
spiderplotlib 0.1.0
Helper for spider/radar plot visualization
License: MIT
Requires Python: >=3.10

# Spiderplotlib

**Simple spider/radar plots for Python with matplotlib.**

## Installation (using PyPI)

```bash
pip install spiderplotlib
```

## Development (using uv)

```bash
git clone https://github.com/gabriel-jung/spiderplotlib
cd spiderplotlib
uv sync
```

## Quick Start

```python
import matplotlib.pyplot as plt
from spiderplotlib import spider_plot

# Algorithm performance
groups = [
    [0.89, 0.92, 0.78, 0.95, 0.88],
    [0.85, 0.88, 0.90, 0.82, 0.91],
]

labels = ['Precision', 'Recall', 'Speed', 'Memory', 'F1']

fig = spider_plot(
    groups=groups,
    labels=labels,
    title='Algorithm Comparison',
    group_names=['RF', 'XGBoost']
)

plt.show()
```

## API Reference

### `spider_plot()`

```python
spider_plot(
    groups: List[Union[List[float], np.ndarray]],
    labels: List[str],
    group_names: Optional[List[str]] = None,
    group_colors: Optional[List[str]] = None,
    title: Optional[str] = None,
    show_legend: bool = True,
    show_values: bool = False,
    show_scale: bool = True,
    figsize: tuple = (8, 8),
    alpha: float = 0.3,
    grid_levels: Optional[List[float]] = None,
    value_format: str = "{:.2f}",
    label_distance: float = 1.2,
) -> mpl.figure.Figure
```

**Parameters:**

- `groups`: List of groups to compare (each contains values for all axes)
- `labels`: List of strings representing axis/parameter labels.
- `group_names`: Optional list of labels for each group (displayed in legend).
- `group_colors`: Optional list of colors for each group.
- `title`: Optional plot title string.
- `show_legend`: Whether to display legend (default: True).
- `show_values`: Whether to display maximum values on each axis (default: False).
- `show_scale`: Whether to display percentage scale indicators (default: True).
- `figsize`: Figure size as (width, height) tuple (default: (8, 8)).
- `alpha`: Transparency for filled areas, range 0-1 (default: 0.3).
- `grid_levels`: Custom grid levels as fractions (default: [0.2, 0.4, 0.6, 0.8, 1.0]).
- `value_format`: Format string for displayed values (default: "{:.2f}").
- `label_distance`: Distance of labels from center (default: 1.2).

**Returns:**

- `matplotlib.figure.Figure`: The created figure object.

## Advanced Usage

### Custom Colors

```python
fig = spider_plot(
    groups=groups,
    labels=labels,
    group_colors=['#1f77b4', '#ff7f0e'],
    alpha=0.4
)
```

### Adjust label distance

```python
fig = spider_plot(
    groups=groups,
    labels=long_labels,
    label_distance=1.4  # Move labels further out
)
```

## Examples

See `example.py` for complete working examples and `example.ipynb` for comprehensive exploration of features.
km3smk 0.2.0
The km3smk project
License: MIT
Requires Python: >=3.6
Keywords: neutrino, astroparticle, physics, HEP

The km3smk project
==================

.. image:: https://git.km3net.de/vpestel/km3smk/badges/master/pipeline.svg
    :target: https://git.km3net.de/vpestel/km3smk/pipelines

.. image:: https://git.km3net.de/vpestel/km3smk/badges/master/coverage.svg
    :target: https://vpestel.pages.km3net.de/km3smk/coverage

.. image:: https://git.km3net.de/examples/km3badges/-/raw/master/docs-latest-brightgreen.svg
    :target: https://vpestel.pages.km3net.de/km3smk


Installation
~~~~~~~~~~~~

It is recommended to first create an isolated virtualenvironment to not interfere
with other Python projects::

  git clone https://git.km3net.de/vpestel/km3smk
  cd km3smk
  python3 -m venv venv
  . venv/bin/activate

Install directly from the Git server via ``pip`` (no cloneing needed)::

  pip install git+https://git.km3net.de/vpestel/km3smk

Or clone the repository and run::

  make install

To install all the development dependencies, in case you want to contribute or
run the test suite::

  make install-dev
  make test


---

*Created with ``cookiecutter https://git.km3net.de/templates/python-project``*