Create an image from a not scaled matrix wave

Goodrmoning,
I want to plot a 2D image where the colour of each pixel represents the value of a 2D matrix. After reading from the manual, I created the X and Y wave used for defining the pixel height and width. In particular I have a 501X199 matrix, so a created a 200 elements X wave and a 502 elements Y wave ( I add one element in both wave since I read this from the manual). When I created the image from Windows->New->Image Plot, I specified the 2D matrix and also the X and Y wave that I have created. However the result that I got is not properly. Could you help me? I'm using Igor 6.37 on W7.
I thank you in advance,

best regards

Giovanni

You need to tell us what is wrong. What did you expect? What did you actually get? Perhaps post the Igor experiment file so that we can see exactly what you have, and what it looks like.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
PFA three pictures that explain what I did, what I got and what I would like to have. In my case V34_2 is my 2D matrix of size 199X501. B is a vector of 200 evenly spaced elements and Vwi is a 502 unevenly elements vector. From the picture, you can notice that the plot that I got is not properly scaled in according to both B and Vwi (the values shown on the X and Y axis are right) and this is my first big problem. The second problem is that I would like to have B on the Y axis an Vwi on the Xaxis. Could you help me?
I thank you in advance,

kind regards

Giovanni
giovanniepfl wrote:
PFA three pictures that explain what I did, what I got and what I would like to have. In my case V34_2 is my 2D matrix of size 199X501. B is a vector of 200 evenly spaced elements and Vwi is a 502 unevenly elements vector. From the picture, you can notice that the plot that I got is not properly scaled in according to both B and Vwi (the values shown on the X and Y axis are right) and this is my first big problem. The second problem is that I would like to have B on the Y axis an Vwi on the Xaxis. Could you help me?
I thank you in advance,

kind regards

Giovanni


You can use wave scaling for the B values, since they are evenly spaced.

For debugging purposes, what does a plain
Display;Appendimage V34_2

look like?

But to really help you, it would be best to get an experiment from you containing only V34_2, B, and Vwi.

To solve the second problem use swap X & Y axes in the Modify Graph dialog.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.
Hello, thanks for your help. PFA the experiment containing all the needed data. I tried also the debug command but the result is not good, so I would still need your help.
I thank you in advance,

best regards

Giovanni
2Dimage plot.pxp

The error message gives you a hint. The last two values in Vwi are equal and the wave does't monotonically increase. Setting VWI[501] = 1 or so should help to generate the plot.