Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seba-1511/plotify
Best practices and sane defaults for Matplotlib.
https://github.com/seba-1511/plotify
data-visualization figures matplotlib plot plotting python
Last synced: 21 days ago
JSON representation
Best practices and sane defaults for Matplotlib.
- Host: GitHub
- URL: https://github.com/seba-1511/plotify
- Owner: seba-1511
- License: mit
- Created: 2017-10-10T08:06:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-05T00:07:18.000Z (over 1 year ago)
- Last Synced: 2024-11-30T11:50:12.326Z (26 days ago)
- Topics: data-visualization, figures, matplotlib, plot, plotting, python
- Language: Python
- Homepage: https://sebarnold.net/plotify
- Size: 35.3 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
--------------------------------------------------------------------------------
# Example
#### Output
#### Code
~~~python
import plotify as pl
import numpy as np# create plot object
plot = pl.ModernPlot(width=7500.0)# title
plot.set_title('Modern Plot Title')
plot.set_subtitle(r'Subtitle: $y = f(x)$')# settings
plot.set_palette('vibrant')
plot.set_axis(x=r'Argument $x$', y=r'Values $f(x) / 1,000$')
plot.set_notation(x='scientific', y='decimal')
plot.set_scales(x='linear', y='log2')
plot.set_grid('horizontal', granularity='coarse')
plot.set_legend(title='Curve Family')# plot data
num_points = 10
xs = np.arange(1, 1 + num_points)
plot.plot(
x=xs,
y=xs / 1000,
label=r'Linear',
linestyle='dashed',
)
plot.plot(
x=xs,
y=xs**2 / 1000,
label='Quadratic',
linestyle='dotted',
)
plot.plot(
x=xs,
y=xs**3 / 1000,
label='Cubic',
marker=False,
)
plot.plot(
x=xs,
y=np.exp(xs) / 1000,
label='Exponential',
marker=pl.markers.square(size='large'),
linestyle='-.',
)plot.save('docs/assets/images/examples/modern_plot.png')
~~~# Install
`pip install plotify`
# Resources
* GitHub: [github.com/seba-1511/plotify](https://github.com/seba-1511/plotify)
* Documentation: [sebarnold.net/plotify](https://sebarnold.net/plotify)
* Contact: [sebarnold.net](https://sebarnold.net)