Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dantaki/vapeplot
matplotlib extension for vaporwave aesthetics
https://github.com/dantaki/vapeplot
aesthetics color-palette colormap matplotlib palette plot python seaborn vaporwave vaporwave-aesthetics visualization
Last synced: 16 days ago
JSON representation
matplotlib extension for vaporwave aesthetics
- Host: GitHub
- URL: https://github.com/dantaki/vapeplot
- Owner: dantaki
- License: gpl-2.0
- Created: 2018-01-25T19:21:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-29T18:09:58.000Z (about 6 years ago)
- Last Synced: 2024-10-01T21:17:20.305Z (about 1 month ago)
- Topics: aesthetics, color-palette, colormap, matplotlib, palette, plot, python, seaborn, vaporwave, vaporwave-aesthetics, visualization
- Language: Python
- Size: 1.39 MB
- Stars: 577
- Watchers: 18
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# vapeplot
---
matplotlib extension for vaporwave aesthetics
---
## install
```
pip install vapeplot
```---
## demo
#### view all palettes
```
import vapeplot
%matplotlib inlinevapeplot.available()
```![alt text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/vapeplot.png "vapeplot palettes")
try `from vapeplot import vapeplot` if the above commands failed
#### view specific palettes
```
vapeplot.view_palette("cool",'sunset')
```![alt text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/view_palette.png "cool sunset")
#### set the color palette
```
import numpy as np
import matplotlib.pyplot as pltvapeplot.set_palette('vaporwave')
for i in range(10):
plt.plot(range(100),np.random.normal(i,1,100))
vapeplot.despine(plt.axes()) # remove right and top axes
```![alt text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/vaporwave.png "vaporwave palette")
#### make a colormap
```
cmap = vapeplot.cmap('crystal_pepsi')
A = np.random.rand(25, 25)
plt.imshow(A,cmap=cmap)
vapeplot.despine(plt.axes(),True) # remove all axes
plt.show()
```![alt text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/vapeplot_colormaps.png "crystal_pepsi colormap")
#### access a palette
```
# cool is a list of colors
cool = vapeplot.palette("cool")# reverse the order of colors
seapunk_r = vapeplot.reverse("seapunk")```
---
## examples
plots produced with [seaborn tutorials](https://seaborn.pydata.org/examples/index.html)
set the palette with vapeplot
```
pal = sns.blend_palette(vapeplot.palette(palname))g = sns.FacetGrid(df, row="g",hue="g", palette=pal)
```### cool
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/cool_seaborn_facetgrid.png "cool facetgrid")
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/cool_seaborn_kdeplot.png "cool kdeplot")
### crystal_pepsi
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/crystal_pepsi_seaborn_facetgrid.png "crystal_pepsi facetgrid")
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/crystal_pepsi_seaborn_kdeplot.png "crystal_pepsi kdeplot")
### jazzcup
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/jazzcup_seaborn_facetgrid.png "jazzcup facetgrid")
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/jazzcup_seaborn_kdeplot.png "jazzcup kdeplot")
### macplus
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/macplus_seaborn_facetgrid.png "macplus facetgrid")
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/macplus_seaborn_kdeplot.png "macplus kdeplot")
### mallsoft
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/mallsoft_seaborn_facetgrid.png "mallsoft facetgrid")
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/mallsoft_seaborn_kdeplot.png "mallsoft kdeplot")
### seapunk
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/seapunk_seaborn_facetgrid.png "seapunk facetgrid")
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/seapunk_seaborn_kdeplot.png "seapunk kdeplot")
### sunset
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/sunset_seaborn_facetgrid.png "sunset facetgrid")
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/sunset_seaborn_kdeplot.png "sunset kdeplot")
### vaporwave
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/vaporwave_seaborn_facetgrid.png "vaporwave facetgrid")
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/vaporwave_seaborn_kdeplot.png "vaporwave kdeplot")
Contributer palettes, submit your pull request!
### avanti [by mike-u](https://github.com/mike-u)
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/avanti_seaborn_facetgrid.png "avanti facetgrid")
![alt_text](https://raw.githubusercontent.com/dantaki/vapeplot/master/examples/avanti_seaborn_kdeplot.png "avanti kdeplot")
---
## api
* `vapeplot.available(show=True)`
* function to plot all vapeplot palettes
* `show=False` prints palette names* `vapeplot.cmap(palname)`
* returns a colormap object
* `palname` is the name of the color palette* `vapeplot.despine(ax,all=False)`
* removes figure axes
* default action: remove right and top axes
* `all=True` removes all axes* `vapeplot.font_size(s)`
* change the font size globally* `vapeplot.palette(palname)`
* returns a list of colors
* if no `palname` is given, a dict of all the palettes is returned* `vapeplot.reverse(palname)`
* returns a list of colors in reverse* `vapeplot.set_palette(palname)`
* change the color palette globally* `vapeplot.view_palette(*args)`
* view individual palettes
* arguments: one or more palette names---
## more to come :wink: