Text as axis labels for a correlation matrix (2D image)

Hi,

 

I have a correlation matrix that I am plotting as an image. I want to use a corresponding text file (list of the parameters) as axis labels for the image plot rather than just unexplicit numbers.

Is there a way for me to do that?

 

Cheers.

Yes there is.

You will need a couple of things

Text wave with label names which you have) and a numeric wave with the location that each label will be placed.

For a quick test and as an example I created an 8x8 wave.  I then created a graph using newimage from the data browser.

I have 2 text waves Lx and Ly with the corresponding labels for each position.

I have a numeric wave Lpos, Lpos = p, the point position.

Using the modify axis dialog window, go to Auto/Man Ticks and select User Ticks from Wave.  Then select Lx for the labels and lpos for the locations.  Repeat for the other axis.

For extra credit you may want to change the label orientation of the Y axis labels for readability in the Label options tab.

If you are programming it in the commands I used look like this:
ModifyGraph userticks(top)={lpos,lx}
ModifyGraph userticks(left)={lpos,ly}

 

Andy

example graph (5.28 KB)