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()
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
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.1.tar.gz
(3.8 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.1.tar.gz.
File metadata
- Download URL: oekaki-0.0.1.tar.gz
- Upload date:
- Size: 3.8 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 |
e5bddd10b79599a2daa7c37fca88f3c15a12f38250a9e97ddae6975d049800ab
|
|
| MD5 |
e9dd6b292bff43ec1dc0502f153ee808
|
|
| BLAKE2b-256 |
0ddb3f9633e9c3ee85f7cd0ff53847b7a8bb043ea992557bd9dae32d1eea312d
|
File details
Details for the file oekaki-0.0.1-py3-none-any.whl.
File metadata
- Download URL: oekaki-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 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 |
0d012e8afa46767c3055868a33184dd3f1793f9a9fd15a9d45b21f42967a29a9
|
|
| MD5 |
965d313c7a44470cb9ad88c513c76db5
|
|
| BLAKE2b-256 |
e2f8c8dee69ea58db35ac0954e1032dd39bb484975a0ff0cc8f7bc2911dbf9e9
|