Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Problem with plot of discontinuous function' topicStudent Support Forum > General > Archives > "Problem with plot of discontinuous function"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda
02/27/13 02:53am

note - your function is not defined for x,y=0

for the first question where the ContourPlot generates an empty graph you need to change the line to
ContourPlot[f[x, y] == 1, {x, -30 Pi, 30 Pi}, {y, -45 Pi, 20 Pi},
Axes -> True]
(* i.e., include the argument x,y in the call to f *)

for the second question, you need to use graphics primitives yourself and actually repeat what PlotLegend does. This is a task too large to answer as a forum question

yehuda

URL: ,

Subject (listing for 'Problem with plot of discontinuous function')
Author Date Posted
Problem with plot of discontinuous function Alex 02/25/13 11:43am
Re: Problem with plot of discontinuous function yehuda 02/27/13 02:53am
Re: Problem with plot of discontinuous function yehuda 02/27/13 4:34pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic