Plotting utilities
Project description
wunplots
Automating plot formatting
Basic Usage
from pathlib import Path
from wuncolors import ColorPalette, utils
from wunplots import Plotting
# See wuncolors package
palpath = Path(__file__)/"color_palette.toml"
colors = ColorPalette.from_toml(palpath, "example")
p = Plotting()
n = 1000
p.cycler_colors = utils.gradient(colors.all_colors("blue"), colors.all_colors("red"), n=n)
fig, ax = p.new(width=3, nrows=3, ncols=3)
for x in range(0, n):
ax[0, 0].plot([x/n, x/n], [0, 1], label=x)
p.show()
It can also be used by creating a new class inheriting from Plotting with more attributes and it can contain all your plotting boilerplate code to be later re-used.
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
wunplots-0.1.1.tar.gz
(3.6 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 wunplots-0.1.1.tar.gz.
File metadata
- Download URL: wunplots-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0c2c805eeca3dbf49b91e21e5a85c6ac8c807da18ffcf82192335aa787d3ccd
|
|
| MD5 |
d80a0f2450eeedb77251955c2bee9dfd
|
|
| BLAKE2b-256 |
77debf9d0d92ba63b95317a4273ccf19f65b870d71e4bdc70081bfb2754dc1e5
|
File details
Details for the file wunplots-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wunplots-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccbb279d38068a8a0a710226218b3cb026469b150fa68492d18d95061f34e73a
|
|
| MD5 |
f85a9e5e772184c793e47873b6a5124b
|
|
| BLAKE2b-256 |
a68683342ee7225890511842ca1da56bd8d5ed68d5bb4f41e9eca2e485329193
|