python - matplotlib: How to plot multiple scatter plots in one grid where each plot is different color based on a separate list? -


i plotting color values of images per pixel, trying create plot each image. have around 100 images. want plots present in single grid still want track image plot represents.

for "third variable" of color of image, depend on separate list valued 0-100 , each plot has corresponding level.

thanks.

edit:

here relevant snippet gets looped each image. z list containing numbers 0-100 (eg z=[5,2,6,13,100,0...])

    x = h_values[count]     y = v_values[count]      w = plt.cm.seismic(z[count]/100)      ax.set_xlabel("h",fontsize=12)     ax.set_ylabel("v",fontsize=12)     ax.grid(true,linestyle='-',color='0.75')     ax.scatter(x, y, color=w, s=1, cmap=plt.cm.seismic, edgecolors='none', vmin=0, vmax=100) 

here minimum working example of might trying do:

import pylab pl  pl.clf() count in range(5):     pl.scatter(pl.rand(10), pl.rand(10), color=pl.cm.seismic(count / 5.0), s=50) 

result: result

i guess z integer, after division 100 0. right? i'm avoiding integer division using 5.0 instead of 5.


Comments

Popular posts from this blog

angularjs - Showing an empty as first option in select tag -

python - argument 2 to map() must support iteration -

javafx - How to wait cancellation of task after Service#cancel? -