#13827: Allow more customization in GraphPlot
--------------------------------+----------------------------------
       Reporter:  ppurka        |        Owner:  jason, ncohen, rlm
           Type:  enhancement   |       Status:  new
       Priority:  major         |    Milestone:  sage-6.4
      Component:  graph theory  |   Resolution:
       Keywords:                |    Merged in:
        Authors:                |    Reviewers:
Report Upstream:  N/A           |  Work issues:
         Branch:                |       Commit:
   Dependencies:                |     Stopgaps:
--------------------------------+----------------------------------

Comment (by jmantysalo):

 Replying to [comment:12 ppurka]:
 > In my opinion, it will get unwieldy if all the options are put into
 plot. Making a plot will involve a massive single line of `p.plot(shapes=,
 colors=, fonts=,....)`. Breaking it up into multiple methods should make
 it clearer which methods control which aspects of the graph.

 It depends. User may not use all possible options. And if he/she uses,
 then it won't be that much easier with several lines of settings. And one
 can say

 {{{
 edge_colors = ... # something complicated
  ...
 vertex_shapes = ... # something complicated
 ...plot(edge_colors=edge_colors, ...)
 }}}

 > From the programming point of view, it should also make the functions
 more manageable. Otherwise, all of that code will end up in a single huge
 function `plot`.

 I guess that backend should have `set_edges` and so on. But `plot` can
 call them.

 I believe that there is not very good solution. There are just too many
 options that could be useful to someone. OTOH reducing possible options
 sounds odd. So we can only make sure that the design is as orthogonal as
 it can.

--
Ticket URL: <http://trac.sagemath.org/ticket/13827#comment:13>
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.

Reply via email to