Ask Your Question

Revision history [back]

Contour Plots and Points

Why can I not have a single point on a contour plot?

var('x,y') f(x,y)=sin(x)*cos(y) G = contour_plot(f(x,y),(x,-3,3),(y,-3,3),contours=20,plot_points=100) G += point((1,1), size=100) G.show()

does not display the point. I can add a line (for example)

G += line(((1.5,1),(1.5,0)))

and that line shows up but not the point.

Thanks.

JT

Contour Plots and Points

Why can I not have a single point on a contour plot?

var('x,y') f(x,y)=sin(x)*cos(y) var('x,y')

f(x,y)=sin(x)*cos(y)

G = contour_plot(f(x,y),(x,-3,3),(y,-3,3),contours=20,plot_points=100) contour_plot(f(x,y),(x,-3,3),(y,-3,3),contours=20,plot_points=100)

G += point((1,1), size=100)

G.show()

does not display the point. I can add a line (for example)

G += line(((1.5,1),(1.5,0)))

and that line shows up but not the point.

Thanks.

JT

click to hide/show revision 3
No.3 Revision

Contour Plots and Points

Why can I not have a single point on a contour plot?

var('x,y')

var('x,y')
 f(x,y)=sin(x)*cos(y)
 

f(x,y)=sin(x)*cos(y)

G = contour_plot(f(x,y),(x,-3,3),(y,-3,3),contours=20,plot_points=100)

contour_plot(f(x,y),(x,-3,3),(y,-3,3),contours=20,plot_points=100)

G += point((1,1), size=100)

G.show()

G.show()

does not display the point. I can add a line (for example)

G += line(((1.5,1),(1.5,0))) 

line(((1.5,1),(1.5,0)))

and that line shows up but not the point.

Thanks.

JT