Как сделать так, чтобы цветовая карта в matplotlib плавно отображалась на дисплее?
Позвольте мне уточнить. Это код:
Код: Выделить всё
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.colors as mcolors
import matplotlib as mpl
from math import trunc
def wav2RGB(Wavelength):
Gamma = 0.80
IntensityMax = 255.0
def Adjust(Color, Factor):
if Color == 0.0:
return 0.0
else:
return round(IntensityMax * (Color * Factor)**Gamma)
if 380
Подробнее здесь: [url]https://stackoverflow.com/questions/79886183/smooth-colormap-in-matplotlib[/url]
Мобильная версия