MathGroup Archive 2005

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

Search the Archive

Re: How to suppress plot output ?


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 ?