Question: python matplotlib pcolormesh plot from x,y,z data I have a set if images with dimensions 1200 x 1600 pixels and two txt file with 1200

python matplotlib pcolormesh plot from x,y,z data

I have a set if images with dimensions 1200 x 1600 pixels and two txt file with 1200 y values and 1600 x values.

txt file1: pixel#, x 0, 2.34 1, 5.6 . . . 1200, 3.45

txt file2: pixel#, y 0, 1.45

1, 6.46 .

. .

1600, 2.55

I am trying to find a way to combine my images with the data and using the pcolormesh function to create a heatmap. My number of images would be in x axis, the x values of the txtfile 1 in y axis and finally the y values of the txtfile 2 in z axis. I am expecting a heatmap with dimension 1200x1600.

I am confused on how to proceed after uploading the images and the two txtfiles on my notebook.

Thank you in advance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!