Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88717] Re: SetOptions[Plot, BaseStyle :> myBaseStyle] does not work
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 14 May 2008 06:03:53 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <g0bt47$o3q$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

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