Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: How to suppress plot output ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58468] Re: How to suppress plot output ?
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sun, 3 Jul 2005 03:57:25 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, England
  • References: <da5jmc$25r$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Paul McHale wrote:
> Hi,
> 
> I am having difficulty forcing a suppression of output for mathematica
> commands when writing documents.  I want to show a multi-part graph:
> 
> plot1=Plot[ ... ];
> plot2=Plot[ ... ];
> plot3=Plot[ ... ];
> plot4=Plot[ ... ];
> 
> Show[ plot1, plot2, plot3, plot4 ];
> 
> In the above, I get four individual plots and one final plot.  How do
> I suppress the first four?
> 
> Thanks,
> Paul
> 
Hi Paul,

Setting *DisplayFunction* to *Identity* will do the trick. For example:

In[1]:=
p1 = Plot[Sin[x], {x, 0, 10}, DisplayFunction ->
      Identity];

In[2]:=
p2 = Plot[Cos[x], {x, 0, 10}, DisplayFunction ->
      Identity];

In[3]:=
Show[p1, p2, DisplayFunction -> $DisplayFunction];

Best regards,
/J.M.


  • Prev by Date: Re: How to suppress plot output ?
  • Next by Date: Re: How to suppress plot output ?
  • Previous by thread: Re: How to suppress plot output ?
  • Next by thread: Re: How to suppress plot output ?