Adding Options to Plot

Stan Wagon
Macalester College
St. Paul, Minnesota

wagon@macalstr.edu

Here is a way to overload [Graphics:../Images/tricks_gr_146.gif] to include two new options for displaying the sampled plot points.

[Graphics:../Images/tricks_gr_147.gif]
[Graphics:../Images/tricks_gr_148.gif]
[Graphics:../Images/tricks_gr_149.gif]
[Graphics:../Images/tricks_gr_150.gif]
[Graphics:../Images/tricks_gr_151.gif]
[Graphics:../Images/tricks_gr_152.gif]

The code calls the standard [Graphics:../Images/tricks_gr_153.gif] (without the options) and then finds the plot points using [Graphics:../Images/tricks_gr_154.gif]. This code fragment also turns the plot points into graphical [Graphics:../Images/tricks_gr_155.gif] objects, which are combined with the standard plot and displayed. For example:

[Graphics:../Images/tricks_gr_156.gif]

Document converted by Mathematica of Wolfram Research