Matplotlib wrapper for comfortable figure handling
Project description
classfig
Comfortable figure handling in Python3 / Matplotlib
written by Fabian Stutzki, fast@fast-apps.de
licensed under MIT
Usage
The package has to be imported:
from classfig import classfig
A very simple example is:
fig = classfig()
fig.plot()
fig.show()
classfig allows for more complex behavior with multiple subplots, legend, grid and saving to multiple files at once.
fig = classfig('PPT',nrows=2) # create figure
fig.plot([1,2,3,1,2,3,4,1,1]) # plot first data set
fig.title('First data set') # set title for subplot
fig.subplot() # set focus to next subplot/axis
fig.plot([0,1,2,3,4],[0,1,1,2,3],label="random") # plot second data set
fig.legend() # generate legend
fig.grid() # show translucent grid to highlight major ticks
fig.xlabel('Data') # create xlabel for second axis
fig.save('test_fig1.png','pdf') # save figure to png and pdf
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
classfig-0.2.6.tar.gz
(9.1 kB
view details)
Built Distribution
File details
Details for the file classfig-0.2.6.tar.gz
.
File metadata
- Download URL: classfig-0.2.6.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61571967f50ed590ee7f9a4476b2c5d292c31f9625aa11fb76edd52e544320d0 |
|
MD5 | e2086cebc869d6416a4537764efaa09c |
|
BLAKE2b-256 | c2b63865c22527b289f04925b4d8ebdf56a70134bd3808b0c87a88a63616bd48 |
File details
Details for the file classfig-0.2.6-py3-none-any.whl
.
File metadata
- Download URL: classfig-0.2.6-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c81d6bb79227125fc4285a1c1d31c29f31a549c2d571918506a32c31e7f984a |
|
MD5 | 3e1530315a7e49ea36d1c4ac50c09347 |
|
BLAKE2b-256 | 626678ae1be34303babc61060e53ff6ffafa690e30680a8ba815469608871343 |