Lazy on demand subplots.
Project description
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-matplotlibif it's installed.)
Demo
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()
# out:
# examples/readme.py:20: Mont3Warning:
# (1, 1): No x-label.
# (1, 1): No y-label.
3️⃣: This code raises the following warnings.
examples/readme.py:16: Mont3Warning:
(1, 1): No x-label.
(1, 1): No y-label.
fig.show()
Requirement
Installation
pip install oekaki
If you want to also install japanize-matplotlib, run below.
pip install "oekaki[ja]"
Usage
Under construction.
Note
Under construction.
Author
Under construction.
License
Under construction.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oekaki-0.0.0.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oekaki-0.0.0.tar.gz.
File metadata
- Download URL: oekaki-0.0.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb14bda8a00e393cf1bdc6cb955efc5143baf56045a5a1f33004a4b629a1e338
|
|
| MD5 |
2df7a105c2578cef185d9e0acb06a9b5
|
|
| BLAKE2b-256 |
3ffad5cda91e8ed0da45adde65bf00fc85667515673866316b9480670e61cc65
|
File details
Details for the file oekaki-0.0.0-py3-none-any.whl.
File metadata
- Download URL: oekaki-0.0.0-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac7ae5e3840463d0c87bfac14a76ea1a76a91cdd6e75b7efecbe5173dd7f37d1
|
|
| MD5 |
a6e4328905af833889bd61d1900569bb
|
|
| BLAKE2b-256 |
f8c08106c726654463777122a770ea6131dce621629aeda12b671261cae39020
|