In the previous example, a plot was created through the Plot Builder. If you are creating many plots, this can become a tedious way to create the modifications you want. For more efficient graphing, you can use the Plot Builder once, and extract command with all the settings you selected.
When exiting the Plot Builder, instead of returning a plot, you can opt to return the command used to create the plot. This provides a way to learn the way to specify these options directly to the plot command. If you intend to graph numerous similar functions with the same plot settings, this is an efficient way to do it.
Here are the steps to create the same plot as in the previous section and then to return a command from Plot Builder:
Use the context menu to launch the Plot Builder for your expression, such as .
In the Plot Builder, press the Options button to access the dialog for plot options, then select the Advanced Settings option under Axes on the lower left. In the Advanced Axis Settings dialog box, open the drop-down listing under Tickmarks for the -axis. Select spacing(Pi, 0).
Press Apply and then Command.
The result obtained from choosing Command instead of Plot is shown in Figure 11.
Figure 11 The command returned from Plot Builder
Now, you can copy and paste this command on a new line (ensure you are in 2-D math mode when you paste it) to create a graph. You can modify the command to create variations. For instance, you can graph without having to go through the Plot Builder steps again.
Some final illustrations of graphs obtained by modifying this command.
1. Graph of and .
2. One period of the graphs of and with constrained scaling.
3. Labeling every
For more information on tickmarks, including how to place one tickmark at a fixed location and then draw other tickmarks relative to that point, see plot/tickmarks.
4. Using the Plot Builder to play with plot settings and preview the graph can be helpful with discontinuous graphs such as . When satisfied, return the command.
After returning the command from the Plot Builder, copy into a 2-D math region and execute.
To learn more about the options shown here as well as other options accepted by the plot command, see plot/options.