Dear Ken,
One thing you could do is just to modify your Sage installation. In
the code for Posets, there is
def plot(self, label_elements=True, element_labels=None,
label_font_size=12,label_font_color='black',
vertex_size=300, vertex_colors=None,**kwds):
"""
Returns a Graphic object corresponding the Hasse diagram of
the
poset. Optionally, it is labelled.
1) Change the None for vertex_colors to your preference ('orange' or
something else)
2) In the command line, run `./sage -b` from the directory Sage lives
in
3) Start Sage however you usually do
That should work.
For many plot things there are also dictionaries you can set with
options like this, but it doesn't look like this is the case for graph
plots. There is a dictionary *listing* the options! But it doesn't
seem to come with a global dictionary one could modify once and for
all of defaults.
If that's not the case, I hope someone will correct me!
Good luck.
- kcrisman
On Sep 4, 1:05 pm, Ken Levasseur <[email protected]> wrote:
> I'm displaying a bunch of posets and prefer the vertices to be orange as
> opposed to the default blue. The code below works fine, but I'd like to
> avoid including the option specification by setting the option for vertex
> colors to be 'orange' and I can't find exactly how to do this. Any help?
>
> example=Poset({0:[2],1:[2],2:[3],3:[]})
> example.show(vertex_colors='orange')
>
> Ken Levasseur
> UMass Lowellhttp://faculty.uml.edu/klevasseur/ads2
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org