Skip to main content

Matplotlib wrapper for comfortable figure handling

Project description


Comfortable figure handling in Python3 / Matplotlib

written by Fabian Stutzki,

licensed under MIT


The package has to be imported:

from classfig import classfig

A very simple example is:

fig = classfig()

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'test_fig1.png','pdf') # save figure to png and pdf

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

classfig-0.2.1.tar.gz (6.5 kB view hashes)

Uploaded source

Built Distribution

classfig-0.2.1-py3-none-any.whl (7.2 kB view hashes)

Uploaded py3

Supported by

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