Skip to main content

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-matplotlib if 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oekaki-0.0.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

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

Hashes for oekaki-0.0.0.tar.gz
Algorithm Hash digest
SHA256 cb14bda8a00e393cf1bdc6cb955efc5143baf56045a5a1f33004a4b629a1e338
MD5 2df7a105c2578cef185d9e0acb06a9b5
BLAKE2b-256 3ffad5cda91e8ed0da45adde65bf00fc85667515673866316b9480670e61cc65

See more details on using hashes here.

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

Hashes for oekaki-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac7ae5e3840463d0c87bfac14a76ea1a76a91cdd6e75b7efecbe5173dd7f37d1
MD5 a6e4328905af833889bd61d1900569bb
BLAKE2b-256 f8c08106c726654463777122a770ea6131dce621629aeda12b671261cae39020

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page