Follow

Can I create an inverse or reciprocal axis in Grapher?

Grapher does not currently support inverted or reciprocal axis scales. But, you can create an axis that has the desired look using a combination of linked axes and worksheet labels.

 

  1. Create the original scatter plot from the XY data in the worksheet by clicking the Graphs | Create | Basic | Scatter Plot (Grapher 12 scatter plot) command. Select the data file and click Open.
  2. Click on the axis that should be inversed or the reciprocal of the current values.
  3. Click the Graphs | Add to Graph | Duplicate Axis command.
  4. Set the location for the duplicate axis and click OK. The duplicate axis is added to the graph.
  5. If you do not want to see the original axis, uncheck the box in the Object Manager next to the original axis.
  6. Click on the scatter plot to select it. Click the Graphs | Worksheet | Display command to open the worksheet that contains your plotted data.
  7. In a blank column, type the header X Value and then type the actual X values that are displayed as tick marks on the original axis. In the attached example, this is Column D.
  8. In the next blank column, type the header X Label.
  9. Click the Cells | Data | Transform command.
  10. In the Transform equation, type the equation E=round(1/D,2). The E is the X Label column letter. The D is the X Value column label. The 2 is how many digits you want to be displayed in the label. Click OK.

 Inverse Data Columns
Type the X Value values into the column D.
Use the Transform command to generate the
X Label values.

  1. Return to the plot window.
  2. Click on the second axis to select it.
  3. In the Property Manager, click on the Link Axis tab.
  4. Make sure that the axis is linked to the original axis. Set the Limits Y = F(X) = value to X.
  5. Click on the Tick Labels tab.
  6. In the Major Label Text section, change the Label source to From worksheet.
  7. Change the Worksheet to the worksheet that has the data and labels.
  8. Set the Data column to the column that contains the X Value, as defined in step 7.
  9. Set the Label column to the column that contains the X Label, as defined in step 8.

 


The duplicate top axis now shows the 1/X labels.

 

See the attached plot and worksheet for an example.

 

Updated September 30, 2016

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.