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()

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


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)

Uploaded Source

Built Distribution

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

oekaki-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for oekaki-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e5bddd10b79599a2daa7c37fca88f3c15a12f38250a9e97ddae6975d049800ab
MD5 e9dd6b292bff43ec1dc0502f153ee808
BLAKE2b-256 0ddb3f9633e9c3ee85f7cd0ff53847b7a8bb043ea992557bd9dae32d1eea312d

See more details on using hashes here.

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

Hashes for oekaki-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d012e8afa46767c3055868a33184dd3f1793f9a9fd15a9d45b21f42967a29a9
MD5 965d313c7a44470cb9ad88c513c76db5
BLAKE2b-256 e2f8c8dee69ea58db35ac0954e1032dd39bb484975a0ff0cc8f7bc2911dbf9e9

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