프로젝트
GitHub에서 보기
dantaki/vapeplot
소개
vaporwave 미학을 구현하는 matplotlib 확장 기능
데이터 및 분석측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -4
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalvapeplot
matplotlib extension for vaporwave aesthetics
install
pip install vapeplot
demo
view all palettes
import vapeplot
%matplotlib inline
vapeplot.available()

try from vapeplot import vapeplot if the above commands failed
view specific palettes
vapeplot.view_palette("cool",'sunset')

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

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()

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


crystal_pepsi


jazzcup


macplus


mallsoft


seapunk


sunset


vaporwave


Contributer palettes, submit your pull request!
avanti by mike-u


api
vapeplot.available(show=True)- function to plot all vapeplot palettes
show=Falseprints palette names
vapeplot.cmap(palname)- returns a colormap object
palnameis the name of the color palette
vapeplot.despine(ax,all=False)- removes figure axes
- default action: remove right and top axes
all=Trueremoves all axes
vapeplot.font_size(s)- change the font size globally
vapeplot.palette(palname)- returns a list of colors
- if no
palnameis 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:
관련 프로젝트 살펴보기
불러오는 중…