MathGroup Archive 2006

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

Search the Archive

Re: undocumented setting for the Frame option revised!

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70652] Re: [mg70617] undocumented setting for the Frame option revised!
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 22 Oct 2006 01:19:45 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Each side of the Frame can be individually controlled. Frame -> True is shorthand for (defaults to) Frame -> {True, True, True, True} and Frame -> False is shorthand for Frame -> {False, False, False, False}

opts16 = IntegerDigits[Range[0, 15], 2, 4] /. {0 -> False, 1 -> True};

Plot[x, {x, 1, 2}, Frame -> #]& /@ opts16

If the list has length two then it cycles (i.e., opposite sides are paired).

opts4 = IntegerDigits[Range[0, 3], 2, 2] /. {0 -> False, 1 -> True};

Plot[x, {x, 1, 2}, Frame -> #]& /@ opts4

The documentation is indirect. Frame refers you to FrameStyle which addresses setting the style on the different (individual) edges. Similarly, see FrameTicks which can be individually controlled (useful for having separate left and right scales and/or separate top and bottom scales on a single plot).


Bob Hanlon

---- dimitris <dimmechan at yahoo.com> wrote: 
> Searching a little more I found something quite interesting (at least
> for me!).
> 
> Options[Plot, Frame]
> {Frame -> False}
> 
> graph1 = Plot[x, {x, 1, 2}];
> 
> Options[graph1, Frame]
> {Frame -> False}
> 
> AbsoluteOptions[graph1, Frame]
> {Frame -> {False, False, False, False}}
> 
> In the begining it looked like incosistency but after executing
> the following commands I understood why AbsoluteOptions
> gived above result
> 
> Options[graph1, PlotRange]
> {PlotRange -> Automatic}
> 
> AbsoluteOptions[graph1, PlotRange]
> {PlotRange -> {{0.9750000437499999, 2.0249999562500003},
> {0.9750000437499999, 2.0249999562500003}}}
> 
> So, at least, you can found somewhere the setting Frame -> {False,
> False, False, False} !
> 
> However, I still continue to search for any documentation and wait
> responses
> from you!
> 
> Regards
> Dimitris
> 

--

Bob Hanlon
hanlonr at cox.net



  • Prev by Date: Re: Re: Programming style: postfix/prefix vs. functional
  • Next by Date: Re: Re: Programming style: postfix/prefix vs. functional
  • Previous by thread: undocumented setting for the Frame option revised!
  • Next by thread: Plot3D question