MathGroup Archive 1993

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

Search the Archive

Re: Hiding Plots

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Re: Hiding Plots
  • From: Boss Man <BOSS at noaapmel.gov>
  • Date: Mon, 03 May 1993 13:25:25 -0700 (PDT)

TB writes:
-------------------------------------------------------------------------------*
Hi,

        I would like to plot various functions  f1[x],f2[x].......
All these functions have different x ranges and would like to display
all at once. Well here is a standard solution.

p1      = Plot[f1[x],{x,a,b}]
p2      = Plot[f2[x],{x,c,d}]
.......

then say

Show[p1,p2,....].


Press RETURN for more...

L
        I would like to plot various functions  f1[x],f2[x].......
All these functions have different x ranges and would like to display
all at once. Well here is a standard solution.

p1      = Plot[f1[x],{x,a,b}]
p2      = Plot[f2[x],{x,c,d}]
.......

then say

Show[p1,p2,...]

Well it does work - What I donot want is the individual plots
(p1,p2..) to be displayed. I have'nt been able to figure out how to
suppress all the individual plots and only disply them together.
I tried putting semicolan's, piping it to a file etc. Does not work.

I tried putting semicolan's, piping it to a file etc. Does not work.
I tried putting semicolan's, piping it to a file etc. Does not work.
I would appreciate if some one can tell me if one can do this in
Mathematica at all  .


Thanks

T. Balasubramanian

Dept. Of Physics

Brandeis University
Waltham
MA 02254
-----------------------------------------------------------------------

The construct you need in this case is DisplayFunction -> <option>

Using your example:

p1      = Plot[f1[x],{x,a,b},DisplayFunction -> Identity]
p2      = Plot[f2[x],{x,c,d},DisplayFunction -> Identity]

Show[p1,p2,...DisplayFunction -> $DisplayFunction]

This will suppress the graphic output of the first two plots and
then turn graphic output back on for the Show command.

Regards,
Ed Boss
NOAA/Pacific Marine Environmental Laboratory






  • Prev by Date: Re: Mathematica -> LaTeX
  • Next by Date: Re: Mathematica -> LaTeX
  • Previous by thread: Re: Hiding Plots
  • Next by thread: Re: Hiding Plots