Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 588 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 588 Bytes

neatplot

Style guideline for plotting data with Python using stylesheets.

Tutorial

For detailed explanations please see the accompanying tutorial notebook. A minimum working example:

import matplotlib.pyplot as plt
import numpy as np
plt.style.use('standard.mplstyle')

# make data
x = np.linspace(0, 10, 100)
y = 4 + 2 * np.sin(2 * x)
# plot
fig, ax = plt.subplots()
ax.plot(x, y)
plt.show()

output: