MathGroup Archive 2007

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

Search the Archive

RuleDelayed plot options and Show

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77781] RuleDelayed plot options and Show
  • From: zac <replicatorzed at gmail.com>
  • Date: Sat, 16 Jun 2007 04:00:24 -0400 (EDT)

Dear Group,

evaluate code to see error message:

SetOptions[Plot, AxesLabel :> {"X", y[[i]]}];

y = {"Y1", "Y2"};

Show[
    GraphicsArray[
      Table[
        Plot[Sin[x], {x, -1, 1}]
        , {i, 2}]
      ]
    ];

The problem is Show does not know what iterator 'i' means. The
individual plots have the correct y axis labels, but Show failes to
print them in the array (since in Show the y labels are re-evaluated -
due to RuleDelayed).
The layout of this code I do not want to change (ie. the SetOptions as
initialization, and the delayed rule for the y label).
Any suggestion?

thanks in forward
Istvan Zachar



  • Prev by Date: ListConvolve on TIFF images
  • Next by Date: REgarding grid point superposition
  • Previous by thread: ListConvolve on TIFF images
  • Next by thread: Re: RuleDelayed plot options and Show