Need help with vapeplot?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

dantaki
483 Stars 25 Forks GNU General Public License v2.0 46 Commits 0 Opened issues

Description

matplotlib extension for vaporwave aesthetics

Services available

!
?

Need anything else?

Contributors list

vapeplot


matplotlib extension for vaporwave aesthetics


install

pip install vapeplot

demo

view all palettes

import vapeplot
%matplotlib inline

vapeplot.available()

alt text

try

from vapeplot import vapeplot
if the above commands failed

view specific palettes

vapeplot.view_palette("cool",'sunset')

alt text

set the color palette

import numpy as np
import matplotlib.pyplot as plt

vapeplot.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

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

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

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

alt_text

crystal_pepsi

alt_text

alt_text

jazzcup

alt_text

alt_text

macplus

alt_text

alt_text

mallsoft

alt_text

alt_text

seapunk

alt_text

alt_text

sunset

alt_text

alt_text

vaporwave

alt_text

alt_text

Contributer palettes, submit your pull request!

avanti by mike-u

alt_text

alt_text


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:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.