MathGroup Archive 2008

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

Search the Archive

Re: SetOptions[Plot, BaseStyle :> myBaseStyle] does not work


Hi,

myBaseStyle = {FontFamily -> "Helvetica"};
SetOptions[Plot, BaseStyle -> myBaseStyle];

work as expected.

Regards
   Jens

Szabolcs Horv=E1t wrote:
> Why doesn't the following work?
>
> myBaseStyle = {FontFamily -> "Helvetica"};
> SetOptions[Plot, BaseStyle :> myBaseStyle];
> Plot[Sin[x], {x, 0, 10}]
>
> It seems that myBaseStyle does not get evaluated before plotting.  Is
> this a bug?  Using Plot[Sin[x], {x, 0, 10}, BaseStyle :> myBaseStyle]
> does work.
>
> The old TextStyle option used exactly this pattern, and PerformanceGoal=

> and DisplayFunction still use it.
>


  • Prev by Date: Re: CurrentValue
  • Next by Date: Re: CurrentValue
  • Previous by thread: SetOptions[Plot, BaseStyle :> myBaseStyle] does not work
  • Next by thread: Linking EventHandler to a Control Object