Metadata-Version: 2.1
Name: oekaki
Version: 0.0.1
Summary: Lazy on demand subplots.
Home-page: https://github.com/yuji96/oekaki
Author: Yuji Yamamoto
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Provides-Extra: dev
Provides-Extra: ja

# Oekaki

Lazy on demand subplots.

# Features

- 1️⃣ You can add subplots later, wherever you want.
- 2️⃣ You can manipulate subplots with numpy-like slices.
- 3️⃣ Oekaki warn about potentially misleading graphs. (ex: No labels or units.)
- 🍣 (Oekaki imports `japanize-matplotlib` if it's installed.)

# Demo

<img src="https://raw.githubusercontent.com/yuji96/oekaki/main/examples/readme.png" width="500px" >

```python
import numpy as np
import oekaki

# 1️⃣: lazy draw subplots
fig = oekaki.figure(strict=False)

# 2️⃣: able to use slice
fig[:, 0].set(facecolor="black")
fig[0, :].grid(True)


# 🍣 japanize
fig[1, 1].set(aspect="equal", title="俺流 matplotlib")

theta = np.linspace(0, np.pi, 300)
r = np.abs(np.tan(theta))**(1 / np.abs(np.tan(theta)))
fig[1, 1].fill(r * np.cos(theta), r * np.sin(theta), color="#2ce62c")
fig.show()
```

3️⃣: This code raises the following warnings.

```
examples/readme.py:16: MisleadingWarning: 
(1, 1): No x-label.
(1, 1): No y-label.
  fig.show()
```

# Requirement

- [matplotlib](https://pypi.org/project/matplotlib/)

# Installation

```
pip install oekaki
```
If you want to also install [japanize-matplotlib](https://pypi.org/project/japanize-matplotlib/), run below.
```
pip install "oekaki[ja]"
```

# Usage

Under construction.

# Note

Under construction.

# Author

Under construction.

# License

Under construction.


