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

MathGroup Archive 2008

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88697] SetOptions[Plot, BaseStyle :> myBaseStyle] does not work
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Tue, 13 May 2008 07:08:40 -0400 (EDT)
  • Organization: University of Bergen

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: Error messages from FunctionInterpolation (bug?)
  • Next by Date: Re: Null Return for a Module
  • Previous by thread: vehicle routing problem
  • Next by thread: Re: SetOptions[Plot, BaseStyle :> myBaseStyle] does not work