Follow

How can I place a Grapher axis at a specific data value?

Grapher allows many options for setting the axis position. By default, the X and Y axes meet at the bottom left corner, with Y increasing up and X increasing to the right. But, the axes can be located at any page position you desire. In addition, the axes can cross and be located at relative locations to each other. To set the axis position:
 
  1. Create your graph, as normal. In this example, I've created a function plot using the Graphs | Create | Basic | YX Function Plot. The default cosine curve is displayed.

default Grapher function plot displayed
The graph is displayed with the default axis locations.

    1. Let's display the plot from -5 to +5 along the X axis. To do this:
      1. Click on the Function Plot 1 to select it.
      2. In the Property Manager, change the First value to -5.
      3. Change the Last value to 5. The axis automatically updates to show all the data.
    2. Now, let's move the X axis so that it crosses the Y axis at the zero value.
      1. Click on the X Axis 1 to select it.
      2. In the Property Manager, click on the Axis tab.
      3. Next to the Position option, click the Set button.
      4. In the dialog, select At data value of... and make sure the value is 0.0.
      5. Click OK.

      Grapher graph with X axis located at Y=0.
      The X axis now crosses the Y axis at Y=0.

    3. Move the Y axis so that it crosses the X axis at the zero value.
      1. Click on the Y Axis 1 to select it.
      2. In the Property Manager, click on the Axis tab.
      3. Next to the Position option, click the Set button.
      4. In the dialog, select At data value of... and make sure the value is 0.0. Change the Move option so that X Only is selected. This will move the Y axis to the right, but not up/down.

        Set the axis location in the Position Axis dialog.
        Set the position to At data value of... and select to Move in the X Only direction.

      5. Click OK.

 

The axes now cross each other at the zero values.

Grapher graph with axes crossing at X=0, Y=0.
Once both axes are moved, the axes cross each other at the X=0 and Y=0 locations.


If the axis limits change, the axes will need to be reset to these locations again, but following the steps above again.


Updated October 3, 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.