MathGroup Archive 2007

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

Search the Archive

Re: Graphics output in Mathematica 6 functions ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80331] Re: Graphics output in Mathematica 6 functions ?
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 18 Aug 2007 05:28:03 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fa3e2l$16n$1@smc.vnet.net>

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 ?