Metadata-Version: 2.4
Name: dossierviz
Version: 0.1.0
Summary: A spy-tech minimalist data-visualization library built on Matplotlib.
Project-URL: Homepage, https://github.com/danielpatel2000/Viz-MSDS
Project-URL: Repository, https://github.com/danielpatel2000/Viz-MSDS
Author-email: Daniel Patel <dpatel37@dons.usfca.edu>
License: MIT License
        
        Copyright (c) 2026 Daniel Patel
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: charts,dataviz,matplotlib,pandas,plotting,theme,visualization
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Matplotlib
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >=3.9
Requires-Dist: matplotlib>=3.7
Requires-Dist: numpy>=1.24
Requires-Dist: pandas>=2.0
Description-Content-Type: text/markdown

# dossierviz

A small, opinionated Python plotting library on top of Matplotlib. Every
public function takes a pandas `DataFrame` and returns a `Figure`, styled in
a muted "spy-tech minimalism" aesthetic — dark (or light) background, thin
lines, inward ticks, faint dotted gridlines, monospace type.

## Install

```bash
pip install dossierviz
```

The distribution is named `dossierviz`, but you import it as `dossier`:

```python
import dossier as dz
```

To work from a clone instead, install it in editable mode:

```bash
pip install -e .
```

## Usage

```python
import pandas as pd
import dossier as dz

df = pd.DataFrame({"date": pd.date_range("2025-01-01", periods=30),
                    "sales": range(30), "region": ["N", "S"] * 15})
fig = dz.plot_line(df, x="date", y="sales", hue="region", title="Sales")
fig.savefig("sales.png", dpi=150, bbox_inches="tight")
```

## Chart types

`plot_line`, `plot_area`, `plot_bar` (grouped/stacked via `stacked=`),
`plot_scatter`, `plot_histogram`, `plot_box`, `plot_heatmap`
(correlation matrix by default, or a pivoted heatmap when `x`/`y`/`hue`
are all given).

Every function shares the same signature convention:

```python
plot_<type>(df, x=None, y=None, hue=None, *, title=None, ax=None, mode="dark", **kwargs)
```

`x`/`y` are inferred from column dtypes when omitted, and missing/wrong-typed
columns raise a clear `ValueError`.

## Theme

`apply_theme(mode="dark"|"light")` sets the rcParams theme and returns its
8-color accent palette; it's called automatically by every plot function.
`get_palette(mode)` returns the palette without mutating rcParams.
`crosshair(ax, x, y)` and `rule(ax, y=..., x=...)` draw the corner-tick and
thin-rule annotations used throughout.

## Examples

```bash
python examples/generate_examples.py
```

Generates one figure per chart type into `examples/output/`.
