MathGroup Archive 2001

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

Search the Archive

Re: Supressing the output of Plot


Frank,

Use Block:

gr=
Block[{$DisplayFunction=Identity},Plot[{Sin[t], Cos[t]}, {t, 0, 5},
PlotLegend -> {"Uno", "Dos"}, LegendPosition -> {.3, -.6},
PlotRange -> {{0, 5}, {-2, 2}}]];

Show[gr];

For your table use

tb= Block[{$DisplayFunction=Identity},Table[Plot[...]]]

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Frank Black" <fblack2 at mail.com> wrote in message
news:9mkt0v$1un$1 at smc.vnet.net...
> I'm making a Table full of Plots using Table[Plot[...]],  and would
> like to suppress the display of the resulting plots until later, when
> I will use GraphicsArray.
>
> Setting DisplayFunction -> Identity in the Plot command works until I
> include a legend with PlotLegend, then every single plot will be
> displayed.
>
> Example of no plot output:
>   Plot[{Sin[t], Cos[t]}, {t, 0, 5}, DisplayFunction -> Identity,
>        PlotRange -> {{0, 5}, {-2, 2}}];
>
> Example of undesired plot outputs:
>   Plot[{Sin[t], Cos[t]}, {t, 0, 5}, DisplayFunction -> Identity,
>       PlotLegend -> {"Uno", "Dos"}, LegendPosition -> {.3, -.6},
>       PlotRange -> {{0, 5}, {-2, 2}}];
>
> Any suggestions?
>
> Thanks,
> Frank
>




  • Prev by Date: Re: Simultaneous difference equation
  • Next by Date: RE: Supressing the output of Plot
  • Previous by thread: Supressing the output of Plot
  • Next by thread: RE: Supressing the output of Plot