On Tue, Sep 3, 2013 at 8:19 AM, Dan Aldrich <[email protected]> wrote:
> I'm trying to put a point on a contour plot.
>
> p1 = contour_plot(f(x,y), (x,-10,10),(y,-10,10))
> p2 = point((0,0), color = 'red', point size = 30)
> show(p1+p2)
>
> I think the problem is apples and oranges related. Is there a way to do this?

Use zorder:

f(x,y) = sin(x)*cos(y)
p1 = contour_plot(f(x,y), (x,-10,10),(y,-10,10))
p2 = point((0,0), color = 'red', size = 30, zorder=1)
show(p1+p2)

>
> Thanks,
> -d
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/groups/opt_out.



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to