Follow

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 Graphs | Create | 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.

A bar chart graph is displayed in Grapher.
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 Graphs | Add to Graph | Plot command (add a plot to a graph).
  3. Select the type of plot and click OK. For instance, you may select a Line/Scatter 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 the top Y axis.

 
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.

 

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.