MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Graphics output in Mathematica 6 functions ?


Alex wrote:
> Hi,
> 
> one modification in Mathematica 6 is that a semicolon at the end of a plot
> command suppresses the output of the complete graphics.
> My question is now how can I generate graphics output from one of my
> own functions?
> I must not have a semicolon at the end of the Plot[] command because
> otherwise no diagram appears, but on the other hand I need a semicolon
> to separate the different commands within my function !?

Wrap a Print statement around your plot expression as in

Print[Plot3D[2*Sin[x + Sin[y]], {x, -10, 10}, {y, -10, 10}]];

-- 
Jean-Marc


  • Prev by Date: Re: 3DPlot in Mathematica 6
  • Next by Date: Re: 3DPlot in Mathematica 6
  • Previous by thread: Re: Graphics output in Mathematica 6 functions ?
  • Next by thread: Re: Graphics output in Mathematica 6 functions ?