| New Reply |
Mathematica:how to plot a maximum point in a graph |
Share Thread | Thread Tools |
| Mar29-12, 01:15 AM | #1 |
|
|
Mathematica:how to plot a maximum point in a graph
anyone can help me to plot a point.
Code:
r = Plot[Sin[j], {j, 0, Pi}];
Code:
FindMaximum[Sin[j], {j, Pi}]
Code:
onedot = ListPlot[{{1.5707963267948966, 1}},
PlotStyle -> {Hue[0.67], AbsolutePointSize[7]}];
Show[r, onedot]
thanks |
| Mar29-12, 01:52 AM | #2 |
|
|
If you need the point at its original position then just add the x coordinate to every x point in the dataset. |
| Mar29-12, 12:26 PM | #3 |
|
|
r = Plot[Sin[j], {j, 0, Pi}];
onedot = ListPlot[{j, 1} /. Rest[FindMaximum[Sin[j], {j, Pi}]], PlotStyle -> {Hue[0.67], AbsolutePointSize[7]}]; Show[r, onedot] |
| Mar30-12, 12:34 AM | #4 |
|
|
Mathematica:how to plot a maximum point in a graphCode:
onedot = ListPlot[{j, k} /. Rest[FindMaximum[Sin[j], {j, Pi}]], PlotStyle -> {Hue[0.67], AbsolutePointSize[7]}];
thanks again. |
| Mar30-12, 01:34 AM | #5 |
|
|
r = Plot[Sin[j], {j, 0, Pi}];
onedot = ListPlot[{j, Sin[j]} /. Rest[FindMaximum[Sin[j], {j, Pi}]], \ PlotStyle -> {Hue[0.67], AbsolutePointSize[7]}]; Show[r, onedot] |
| New Reply |
| Thread Tools | |
Similar Threads for: Mathematica:how to plot a maximum point in a graph
|
||||
| Thread | Forum | Replies | ||
| Plot 3D matrix as 2D plot and 3rd dimension as color in Mathematica | Math & Science Software | 8 | ||
| How to plot it graph in Mathematica | General Physics | 4 | ||
| Creating equation out of 5 point or more from graph plot. | Calculus | 5 | ||
| Rasterized density plot + countour plot in Mathematica (to solve EPS issues) | Math & Science Software | 0 | ||
| Tracing a point on a graph and displaying the y value - Mathematica | Math & Science Software | 0 | ||