Optional color scheme:
A few of the usual:
| Color Map |
Description |
| Autumn |
Red-orange-yellow |
| Bone |
Black-White, X-ray |
| Cool |
Cyan-Magenta |
| Copper |
Black-Copper |
| Flag |
Red-white-blue-black |
| Gray |
Black-White |
| Hot |
Black-red-yellow-white |
| Hsv |
HSV color space, red-yellow-green-cyan-blue-magenta-red |
| Inferno |
Black-red-yellow |
| Jet |
Blue-cyan-yellow-red
|
| Magma |
Black-red-white |
| Pink |
Black-powder-white |
| Plasma |
Green-red-yellow |
| Prism |
Red-yellow-green-blue-violet-...-Green mode |
| Spring |
Magenta-Yellow |
| Summer |
Green-Yellow |
| viridis |
Blue-green-yellow |
| Winter |
Blue-Green |
cm= ' spectral ' #hot bone cool copper gray HSV inferno jet Magma pink plasma Summer viridis BWR Ocean Rainbow coolwarm Sp Ectral ........ .........
Norm = Matplotlib.colors.Normalize (Vmin=min, Vmax=max)
Map=plt.imshow (Plt_arr,interpolation= ' nearest ',cmap=cm,norm=norm, origin= ' Upper ') # Plt_arr is the data to be displayed
mydpi=1000
Plt.savefig ("Filename.png", dpi=mydpi, bbox_inches= ' tight ', pad_inches=0) #, bbox_inches= ' tight ' less white area
Plt.show ()
Image example:
Hsv
Hot
Cool
Rainbow
Gist_earth
Python matplotlib package Image color scheme