Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Plotting in the If[]' topicStudent Support Forum > General > Archives > "Plotting in the If[]"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
10/25/12 1:51pm

In the olden days Plot[] had a side effect of displaying the graphic. So things like

x=4;
Plot[y^2,{y,-2,2}];
z=3;

would show the plot.

Now days if Plot has a trailing semicolon you see nothing. So do this

x=4;
Print[Plot[y^2,{y,-2,2}]];
z=3;

and you should see your plot

URL: ,

Subject (listing for 'Plotting in the If[]')
Author Date Posted
Plotting in the If[] PhysicsGuy 10/24/12 8:59pm
Re: Plotting in the If[] yehuda 10/25/12 1:33pm
Re: Plotting in the If[] Bill Simpson 10/25/12 1:51pm
Re: Re: Plotting in the If[] PhysicsGuy 10/25/12 1:58pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic