PewDiePlot is a object-oriented high-level API for Pyplot to easily create beautiful graphs.
All examples can be found as Jupyter notebooks in the examples folder.
(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()(ScatterPlot(title='Scatter Plot Example', size=(8, 5))
.legends(['Mean (0, 0)', 'Mean (2, 2)'])
.data(all_points)
).show()(BarChart(title='Bar Chart Example', size=(8, 5))
.xlabel_fn(lambda n: x_tick_labels[n])
.legends(['Red', 'Yellow', 'Green'])
.data(data)
).show()From the root folder of the project, simply install using:
$ pip install .
Then in your Python code simply import using:
import pewdieplot

