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: [mg126151] Re: How to change graph options?
  • From: Helen Read <readhpr at gmail.com>
  • Date: Sat, 21 Apr 2012 00:30:20 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <jmri7r$la4$1@smc.vnet.net>

On 4/20/2012 7:44 AM, James Stein 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?
>
>

Why not use Show?

Show[g, ImagePadding -> 10]


-- 
Helen Read
University of Vermont



  • Prev by Date: LogLogPlot encounters Infinite expression
  • Next by Date: Re: Encode and Get
  • Previous by thread: Re: How to change graph options?
  • Next by thread: Re: How to change graph options?