Skip to content

floscha/pewdieplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PewDiePlot

PewDiePlot is a object-oriented high-level API for Pyplot to easily create beautiful graphs.

Examples

All examples can be found as Jupyter notebooks in the examples folder.

Line Chart Example

(LineChart('Line Chart Example', size=(8, 5))
 .xlabel_fn(lambda n: r'$%s\pi$' % Fraction(n / np.pi))
 .legends(['Sin', 'Cos', 'Tan'])
 .data(all_points)
 .pyplot('annotate', 'Sine Max', xy=(0.5 * np.pi, 1), xytext=(2.5, 2),
         arrowprops=dict(facecolor='black', shrink=0.05))
 ).show()

alt text

Scatter Plot Example

(ScatterPlot(title='Scatter Plot Example', size=(8, 5))
 .legends(['Mean (0, 0)', 'Mean (2, 2)'])
 .data(all_points)
 ).show()

alt text

Bar Chart Example

(BarChart(title='Bar Chart Example', size=(8, 5))
 .xlabel_fn(lambda n: x_tick_labels[n])
 .legends(['Red', 'Yellow', 'Green'])
 .data(data)
 ).show()

alt text

Build

From the root folder of the project, simply install using:

$ pip install .

Then in your Python code simply import using:

import pewdieplot

About

High-level API for Pyplot to easily create beautiful graphs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages