What I immediately liked seabornwas the fact that he set the color palette for Matplotlib default images ( imshow, pcolormesh, contourf...) to very good, which I had not seen before (black-blue-green-brown-pink-Violet white):
seaborn
imshow
pcolormesh
contourf
plt.contourf(np.random.random((20,20)))
But when I upgraded the package from version 0.21 to 0.3, this default changed a few shades of gray:
What is the default color palette from v. 0.2.1 and how to return it?
0.2.1 - Dave Green 'cubehelix', 0.3
'cubehelix'
import seaborn as sns sns.set(rc={'image.cmap': 'cubehelix'})
" ", , :
img = plt.contourf(np.random.random((20,20))) print(img.cmap.name)
, . Matplotlib sample matplotlibrc .
j08lue , , , , , , lots . , , , .
, (?) matplotlib, colormap, cmap, .. plt.contourf(x, y, z, cmap="cubehelix") .
cmap
plt.contourf(x, y, z, cmap="cubehelix")
Source: https://habr.com/ru/post/1533356/More articles:Kendo UI Window - Prevents Download of Previous Content - model-view-controllerphalcon: volt get value from an array that is selected from a variable - phpWhat does it mean that "observer response functions should not change the model" using nested ng-repeat? - dartNUnit / Mono does not print stack trace line number even with --debug - c #Travis CI begins work on a new tag - githubSend data to the server from an Android device when the application enters the background - android$ mysqli-> info имеет значение null после успешной вставки одной строки - phpЕсть ли способ зарегистрировать каждый вызов веб-службы, приходящий на приложение в Джерси - javastatic pointer in C ++ inheritance - c ++What are the possible values for the status of the action of the Commission Junction - commission-junctionAll Articles