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:
- Create the appropriate first graph. For instance, if the first graph should be a bar chart, click the Home | New Graph | Bar | Vertical Bar Chart command (
).
- 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.
- 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.
The original graph contains 1 X axis, 1 Y axis, and 1 plot.
Adding a New Y Axis:
- Click anywhere on the graph to select it.
- Click the Home | Add to Graph | Axis | Y Axis command (
).
- In the Position Y Axis 2 dialog, set the location for the new Y axis.
- 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.
- 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.
- For more customized positioning, select Manual positioning or At data value of.
- Check the Flip tick marks and labels if the tick marks and labels should be on the opposite side of the axis.
- Check the Disable tick marks or Disable tick labels if the tick marks and/or labels should not be displayed.
- Click OK and the axis is added.
- Click on the Y Axis 2 to select it.
- 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:
- Click anywhere on the graph to select it.
- Cilck the Home | Add to Graph | Axis | X Axis command.
- In the Position Y Axis 2 dialog, set the location for the new X axis.
- 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.
- 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.
- Check the Flip tick marks and labels if the tick marks and labels should be on the opposite side of the axis.
- Check the Disable tick marks or Disable tick labels if the tick marks and/or labels should not be displayed.
- Click OK and the axis is added.
- Click on the X Axis 2 to select it.
- 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.
This graph shows two Y axes, one on either side
of the graph and two X axes, one below the other.
Updated July 17, 2019
Comments
0 comments
Please sign in to leave a comment.