MathGroup Archive 2007

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

Search the Archive

Re: Plot without Show

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79188] Re: Plot without Show
  • From: Peter Pein <petsie at dordos.net>
  • Date: Fri, 20 Jul 2007 03:34:40 -0400 (EDT)
  • References: <f7n3tc$1g3$1@smc.vnet.net>

kitsche schrieb:
> Hello,
> I often plot several functions with Plot or its siblings and at the end want to show a combined graph with all plots on it.
> p1 = Plot[Sin[x],{x,0,Pi}];
> p2 = Plot[Cos[x],{x,0,Pi}];
> Show[p1,p2];
> 
> The output from the above are 3 plots, p1, p2 and the combined. How can I plot p1 and p2 silently, ie. without that their plot shows and only show the combined form?
> 
> Thanks Karl
> 

Block[{$DisplayFunction = # &},
    p1 = Plot[Sin[x], {x, 0, Pi}];
    p2 = Plot[Cos[x], {x, 0, Pi}]
    ];
Show[p1, p2];

Peter


  • Prev by Date: Re: Trouble with FindRoot
  • Next by Date: Re: strange bug?
  • Previous by thread: Re: Plot without Show
  • Next by thread: Re: Plot without Show