MathGroup Archive 2007

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

Search the Archive

Global Variables in Options?


Can Options contain global variables?  (in 5.2)

For example, can I do

      SetOptions[Plot, TextStyle->{FontSize->myFontSize}];

      (* with no numerical value yet assigned to myFontSize *)

and then later on in the notebook write

      myFontSize = 14; Plot[ <<first plot>> ];

      myFontSize = 16; Plot[ <<second plot>> ];

Or must I structure this as

      myFontSize = 14; 
      SetOptions[Plot, TextStyle->{FontSize->myFontSize}];
      Plot[ <<first plot>> ];

      myFontSize = 16; 
      SetOptions[Plot, TextStyle->{FontSize->myFontSize}];
      Plot[ <<second plot>> ];


  • Prev by Date: Improper Integral & Mathematica
  • Next by Date: Cell brackets on left ?
  • Previous by thread: Re: Improper Integral & Mathematica
  • Next by thread: Cell brackets on left ?