――It's troublesome to change each time, but there are many parameters ――I want to change it in a gradation
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
x =np.linspace(0,2*np.pi,100)
for i in range(30):
plt.plot(x,i*np.sin(x),color=cm.hsv(i/30.0))
plt.xlim(0,2*np.pi)
plt.savefig("cm.png ")
plt.show()
――Illustrated what I tried to change the place of cm.hoge earlier -It has a gradation of [0,1], with 0 being the flattest and 1 being raised.
Please use it as a reference for visualization
--Other: http://matplotlib.org/examples/color/colormaps_reference.html
Recommended Posts