Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9728

Re: How to change graph options?

From Helen Read <readhpr@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to change graph options?
Date 2012-04-21 04:31 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jmtd6j$shc$1@smc.vnet.net> (permalink)
References <jmri7r$la4$1@smc.vnet.net>

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to change graph options? James Stein <james@stein.org> - 2012-04-20 11:44 +0000
  Re: How to change graph options? Helen Read <readhpr@gmail.com> - 2012-04-21 04:31 +0000
  Re: How to change graph options? A Retey <awnl@gmx-topmail.de> - 2012-04-21 04:31 +0000
  Re: How to change graph options? A Retey <awnl@gmx-topmail.de> - 2012-04-21 04:30 +0000

csiph-web