Код: Выделить всё
plt.cm.getcmap("coolwarm", num_steps)Код: Выделить всё
The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use matplotlib.colormaps[name] or matplotlib.colormaps.get_cmap() or pyplot.get_cmap() instead.Подробнее здесь: https://stackoverflow.com/questions/792 ... -num-steps
Мобильная версия