MathGroup Archive 2012

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

Search the Archive

Re: How to change graph options?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126133] Re: How to change graph options?
  • From: James Stein <james at stein.org>
  • Date: Fri, 20 Apr 2012 07:45:19 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <CAKStUKpVUSLvpW1rmdewpwx57pht2wrr6sT7v9kqzkKirb+kUQ@mail.gmail.com>

I will answer my own question:

Keep the options in a list called, perhaps, 'options'.
Manipulate the list as you wish.
When time comes to make a graph:
   Graph [ vList, eList, Apply [ Sequence, options ] ]
L'esprit d'escalier.


On Thu, Apr 19, 2012 at 12:18 PM, James Stein <james at stein.org> wrote:

> This code fails to achieve its purpose:
>
>    ClearAll [ g ] ;
>    g = Graph [ { 1, 2 } , { 1 -> 2 } , ImageSize -> Tiny]
>    Options [ g ]
>    SetOptions [ g, ImagePadding -> 10 ] ;
>
> The reason, I assume, is that 'g' is neither a user-defined nor built-in
> function.
> The only work-around I can think of is too ugly to describe.
> Is there any clean way to change or append the option settings of a Graph?
>




  • Prev by Date: Solution - DatabaseLink connetion to MSSQL using Windows authentication
  • Next by Date: Re: convolution involving UnitStep
  • Previous by thread: How to change graph options?
  • Next by thread: Re: How to change graph options?