| New Reply |
Plotting functions and coordinates, Mathematica |
Share Thread |
| Feb19-13, 05:05 PM | #1 |
|
|
Plotting functions and coordinates, Mathematica
Hi all.
Is there a way to plot both functions and coordinates/points on the same graph in Mathematica? The various functions for plotting each seem very incompatible. I would like to compare a probability function to Monte-Carlo-method simulation results. Also, out of curiosity, do different programming languages have "better" pseudo-random number generation techniques or does it not really make a difference? Thank you. |
| Feb19-13, 11:42 PM | #2 |
|
|
data = Table[{x, x^2}, {x, 0, 2}];
Show[ Plot[x^2, {x, 0, 2}], ListPlot[data], Graphics[Text["(1,1)", {1, 1}, {-1, 0}]] ] will show a graph, points and a coordinate. If you need to you can change point size, color, background, dashing and a thousand other visual effects. There are expensive hardware random number generators you can buy. I've wanted someone to think of a cheap hardware hack that would generate a few random bits a second from the radioactive decay of a smoke detector, but I haven't found anyone interested in doing that. |
| Feb20-13, 06:55 PM | #3 |
|
|
Thanks Bill! It works nicely.
I'm self-taught so I ignored Show[]'s existence. Now I know. That's an interesting hack, although I guess for most purposes computer-generated numbers work fine ... and are simpler to obtain. Thanks again |
| New Reply |
Similar discussions for: Plotting functions and coordinates, Mathematica
|
||||
| Thread | Forum | Replies | ||
| Mathematica plotting several functions | Math & Science Software | 5 | ||
| mathematica problem regarding plotting many functions in one graph | Engineering, Comp Sci, & Technology Homework | 1 | ||
| Plotting and Integrating difficult functions/Maple or mathematica | Math & Science Software | 7 | ||
| Mathematica: Plotting piecewise functions | Math & Science Software | 2 | ||
| Plotting streamlines in polar coordinates mathematica? | Differential Equations | 0 | ||