ntm1186
(Nathaniel Mallavarapu)
April 9, 2020, 9:01pm
1
Right now I have the contour plot equation:
ContourPlot[ E^(-((x^2) + (2 y^2))/10^4), {x, -100, 100}, {y, -100, 100},
Epilog -> {PointSize[0.018], Point[{{50, -40}, {0, 0}}]},
PlotStyle -> Brown]
And I have the line equation of the parabola y = -.016*x^2 that I’m wanting to graph onto the contour plot between the two points (50,-40) and (0,0). How do I draw this line equation onto the contour plot?
Hi Nathaniel,
Is this what you are looking for?
cp = ContourPlot[
E^(-((x^2) + (2 y^2))/10^4), {x, -100, 100}, {y, -100, 100},
Epilog -> {PointSize[0.018], Point[{{50, -40}, {0, 0}}]}];
y[x_] = -.016*x^2
Show[{cp, Plot[y[x], {x, 0, 50}, PlotStyle -> Red]}]
ntm1186
(Nathaniel Mallavarapu)
April 9, 2020, 10:24pm
3
Yes, that is exactly what I was looking for! Thank you for your help!