#19451: Graph plot default options before first call to plot() fail
--------------------------------+-------------------------
Reporter: jmantysalo | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-6.10
Component: graph theory | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------+-------------------------
Changes (by jmantysalo):
* component: group theory => graph theory
Old description:
> {{{
> sage: G = Graph({1:[2,3,4]})
> sage: sage.graphs.graph_plot.DEFAULT_PLOT_OPTIONS['vertex_shape'] = 's'
> ---------------------------------------------------------------------------
> AttributeError Traceback (most recent call
> last)
> <ipython-input-2-aa626427af43> in <module>()
> ----> 1 sage.graphs.graph_plot.DEFAULT_PLOT_OPTIONS['vertex_shape'] = 's'
>
> AttributeError: 'module' object has no attribute 'graph_plot'
> sage: G.plot()
> Launched png viewer for Graphics object consisting of 8 graphics
> primitives
> sage: sage.graphs.graph_plot.DEFAULT_PLOT_OPTIONS['vertex_shape'] = 's'
> sage:
> }}}
>
> I.e. I can set up default options for graph plotting, but only after
> making at least one plot.
New description:
{{{
sage: G = Graph({1:[2,3,4]})
sage: sage.graphs.graph_plot.DEFAULT_PLOT_OPTIONS['vertex_shape'] = 's'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
<ipython-input-2-aa626427af43> in <module>()
----> 1 sage.graphs.graph_plot.DEFAULT_PLOT_OPTIONS['vertex_shape'] = 's'
AttributeError: 'module' object has no attribute 'graph_plot'
sage: G.plot()
Launched png viewer for Graphics object consisting of 8 graphics
primitives
sage: sage.graphs.graph_plot.DEFAULT_PLOT_OPTIONS['vertex_shape'] = 's'
sage:
}}}
I.e. I can set up default options for graph plotting, but only after
making at least one plot.
Also this might relate to
{{{
sage.graphs.graph_plot.DEFAULT_SHOW_OPTIONS['vertex_shape'] = 's'
G.show()
}}}
--> `TypeError: matplotlib() got an unexpected keyword argument
'vertex_shape'`. It seems that default options for **show** does not work
at all.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/19451#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.