How can I overlay two plots in Grapher?

To create a graph with a single Y axis, a single X axis, and multiple plots, you can add additional plots to the graph. To create a graph with 1 horizontal X axis and 1 vertical Y axis, follow these steps:


Creating the First Plot and Axes:

  1. 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 (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 first plot and the axes are 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 and the color and width of the bar chart in this example.

Grapher 14 bar chart
The original graph contains 1 X axis, 1 Y axis, and 1 plot.


Adding a New Plot:

  1. Click anywhere on the graph to select it.
  2. Click the Home| Add to Graph | Plot command ().
  3. In the Select Plot Type dialog, click your desired plot type and then click OK. For instance, you may select a Line Plot.
  4. In the Choose Axes dialog, be sure to select X Axis 1 and Y Axis 1 and click OK.
  5. Select the data file and click Open. The new plot is added to the original X axis and Y axis.

Grapher 14: Bar chart and line plot with shared axes
A graph is created with 1 Y axis and 1 X axis and multiple plots. Both the line plot and bar chart use the same axes.


If you would like to create a graph where the X axis is shared and Y axes are separate, see the article How can I create a stacked graph with multiple Y axes in Grapher?


Updated September 18, 2018

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


Please sign in to leave a comment.