Plot
Plot
Plot[ listfunc, { xmin, xmax}, { textx, texty }, associative arguments ] plots a graph containing a function or functions in a domain.
Plot[ listfunc, { xmin, xmax}, { textx, texty }, options ]
Plot[ listfunc, { xmin, xmax}, { textx, texty }, options ] plots the functions in listfunc in the domain xmin to xmax. The x- and y-axes of this graph are labelled textx and texty, respectively.
| Example | in | rendered |
|---|---|---|
The graph of the function x^2+3x plotted from -10 to 10 with the x- and y-axis. |
Plot[ {x^2+3x }, {-10, 10}, {x,y} ] |
Refer to the sandbox to view the output of the example. |
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Ticks=>False ]
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Ticks=>False ] plots the graph without any marks or labels on the x- and y-axis.
| Example | in | rendered |
|---|---|---|
The graph of the functions x^2+3x and -3x^2-3x+50 plotted from -10 to 10 without any marks and labelling. |
Plot[ {x^2+3x ,-3x^2-3x+50}, {-10, 10}, {x,y}, Ticks=>False ] |
Refer to the sandbox to view the output of the example. |
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Grid=> 'value' ]
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Grid=> 'value' ] plots the graph with or without a background grid. Supported values are Grid=>'None' and Grid=>'Both'.
| Example | in | rendered |
|---|---|---|
The graph of the functions x^2+3x and -3x^2-3x+50 plotted from -10 to 10 with regular marks and labelling and with the background grid turned on. |
Plot[ {x^2+3x ,-3x^2-3x+50}, {-10, 10}, {x,y}, Grid=>'Both' ] |
Refer to the sandbox to view the output of the example. |
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Size => percentage ]
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Size => percentage ] plots the graph, with regular marks and labelling and zooms the rendered graph to a size (percentage) using CSS style="width:...%".
| Example | in | rendered |
|---|---|---|
The graphs x^2+3x and -3x^2-3x+50 plotted from -10 to 10 with regular marks and labelling at 50% of its original size. |
Plot[ {x^2+3x ,-3x^2-3x+50}, {-10, 10}, {x,y}, Size => 50 ] |
Refer to the sandbox to view the output of the example. |
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Points => listpoints ]
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Points => listpoints ] plots the graph, with regular marks and labelling and renders a list of points. A point is a list of length two containing the x and y coordinates in order.
| Example | in | rendered |
|---|---|---|
The graphs x^2 plotted from -10 to 10 with regular marks and the two points for x=-2 and x=2. |
Plot[ {x^2}, {-10, 10}, {x,y}, Points => { {-2,4},{2,4} } ] |
Refer to the sandbox to view the output of the example. |
Points
Points plots the graph, with regular marks and labelling and renders a list of points. A point is a list of length two containing the x and y coordinates in order.
| Syntax | Example |
|---|---|
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Points => listpoints ] |
Plot[ {x^2}, {-10, 10}, {x,y}, Points => { {-2,4},{2,4} } ] |
Grid
Grid plots the graph with or without a background grid. Supported values are Grid=>'None' and Grid=>'Both'.
| Syntax | Example |
|---|---|
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Grid=> 'value' ] |
Plot[ {x^2+3x ,-3x^2-3x+50}, {-10, 10}, {x,y}, Grid=>'Both' ] |
Ticks
Ticks plots the graph without any marks or labels on the x- and y-axis.
| Syntax | Example |
|---|---|
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Ticks=>False ] |
Plot[ {x^2+3x ,-3x^2-3x+50}, {-10, 10}, {x,y}, Ticks=>False ] |
Size
Size plots the graph, with regular marks and labelling and zooms the rendered graph to a size (percentage) using CSS style="width:...%".
| Syntax | Example |
|---|---|
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Size => percentage ] |
Plot[ {x^2+3x ,-3x^2-3x+50}, {-10, 10}, {x,y}, Size => 50 ] |
Range
Range plots the graph, with regular marks and labelling within a range (vertical axis). The plot is rendered in a 1:1 ratio, so the minimum and maximum of the horizontal and vertical axes are the same.
| Syntax | Example |
|---|---|
Plot[ listfunc, { xmin, xmax}, { textx, texty }, Range => { s1, s2} ] |
Plot[ {x^2}, {-10, 10}, {x, y}, Range=>{-10,10} ] |