Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9710 > unrolled thread
| Started by | James Stein <james@stein.org> |
|---|---|
| First post | 2012-04-20 11:47 +0000 |
| Last post | 2012-04-20 11:47 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How to change graph options? James Stein <james@stein.org> - 2012-04-20 11:47 +0000
| From | James Stein <james@stein.org> |
|---|---|
| Date | 2012-04-20 11:47 +0000 |
| Subject | Re: How to change graph options? |
| Message-ID | <jmrick$ld2$1@smc.vnet.net> |
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@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?
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web