AnsweredAssumed Answered

Scatter plot of two rasters

Question asked by india123 on Oct 11, 2016
Latest reply on Oct 17, 2016 by Dan_Patterson
Branched from an earlier discussion

Xander Bakker and Dan Patterson , Kindly your cooperation is highly appreciate. 

I have two raster file, i want to perform Scatter plot of those raster . I found one code that is written by Dan Patterson 

Below code

from matplotlib import pyplot as plt
xs = [1,3,2,5,6,4] # Which fomart of data i have to give here?
ys = [3,2,1,5,3,2]
plt.scatter(xs, ys)
main_title ="My first graph"
plt.title(main_title, loc='center')  #loc is either left, right or center
plt.minorticks_on()
plt.tick_params(which='major', direction='in', length=6, width=2)
plt.tick_params(which='minor', direction='in', length=4, width=2)
plt.show()

Earlier Dan suggest to someone convert those raster to arrays. I followed the same  but could not solve it. How to process tiff to array.

 how do i execute two raster in X and Y axis. I have tiff images.

 

 

Branched from Perform Raster Calculation from Multiple Sub-folder Using ArcPy 

Outcomes