Follow

How can I add a second axis to my graph in Grapher?

To create a graph with multiple X axes and multiple Y axes, you can add additional axes to the graph. Axes can be linked so that they stay in the same relative location, if desired. To create a graph with 2 horizontal X axes and 2 stacked Y axes, follow these steps:

 

Creating the First Plot and First Set of Axes:

  1. Create the appropriate bottom graph. For instance, if the bottom graph should be a bar chart, click the Home | New Graph | Bar | Vertical Bar Chart command (Bar Chart Button).
  2. Select the data file and click Open. For this example, I selected the bar chart orientations.dat file located in the Grapher Samples directory. The base graph is created.
  3. Make any changes to the Bar Chart 1, Y Axis 1, or X Axis 1, as desired. For instance, I have changed the X axis limits, the Y axis length, and the color and width of the bar chart in this example.

A bar chart graph is displayed in Grapher.
The original graph contains 1 X axis, 1 Y axis, and 1 plot.

Adding a New Y Axis:

  1. Click anywhere on the graph to select it.
  2. Cilck the Home | Add to Graph | Axis | Y Axis command (add an axis to a graph).
  3. In the Position Y Axis 2 dialog, set the location for the new Y axis.
    1. If you want the axis to the right of the existing graph: in the axis drop-down, select X Axis 1. Ensure that At the right of is selected. The new Y axis is created to the right of the existing graph.
    2. If you want the axis to the left of the existing Y axis: in the axis drop-down, select X Axis 1. Ensure that At the left of is selected. The new Y axis is placed directly on top of the existing Y axis.
    3. For more customized positioning, select Manual positioning or At data value of.
    4. Check the Flip tick marks and labels if the tick marks and labels should be on the opposite side of the axis.
    5. Check the Disable tick marks or Disable tick labels if the tick marks and/or labels should not be displayed.
    6. Click OK and the axis is added.
  4. Click on the Y Axis 2 to select it.
  5. If desired, change the Y position, X position, or Length. Or, use the options on the Link Axis tab to link the axis to an existing axis.

 

Adding a New X Axis:

  1. Click anywhere on the graph to select it.
  2. Cilck the Home | Add to Graph | Axis | X Axis command (add an axis to a graph).
  3. In the Position Y Axis 2 dialog, set the location for the new X axis.
    1. If you want the axis below the existing X axis: in the axis drop-down, select X Axis 1. Ensure that At the left of is selected. The new X axis is placed directly on top of the existing X axis.
    2. If you want the axis to the right of the existing X axis: in the axis drop-down, select X Axis 1. Ensure that At the right of is selected. The new X axis is placed to the right of the existing X axis.
    3. Check the Flip tick marks and labels if the tick marks and labels should be on the opposite side of the axis.
    4. Check the Disable tick marks or Disable tick labels if the tick marks and/or labels should not be displayed.
    5. Click OK and the axis is added.
  4. Click on the X Axis 2 to select it.
  5. If desired, change the Y position, X position, or Length. Or, use the options on the Link Axis tab to link the axis to an existing axis.

Graph with multiple axes
This graph shows two Y axes, one on either side
of the graph and two X axes, one below the other.

 

Updated November 16, 2017

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.