#20915: Plotting Set Partitions as Chord Diagrams
-------------------------------------+-------------------------------------
       Reporter:  jcourtie           |        Owner:
           Type:  enhancement        |       Status:  new
       Priority:  major              |    Milestone:  sage-7.3
      Component:  combinatorics      |   Resolution:
       Keywords:  set partition,     |    Merged in:
  days78                             |
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/aram.dermenjian/20915            |  6b346a42c77fd16aee0b9ea73df007dbb436ccc5
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by aram.dermenjian):

 It does work properly when circular. I just hadn't included "circular" as
 one of the plots. The options were: cycle, cyclic, and circle... I'll go
 ahead and add circular as well. Here is an example of it working if you
 wanna check it out:

 {{{
 sage: p=SetPartition([['a','c'],['b',1],[20]])
 sage: p.set_latex_options({'plot':'circle'})
 sage: latex(p)
 \begin{tikzpicture}[scale=1]
     \node[draw,circle, inner sep=0pt, minimum width=4pt,
 fill=black,label=90:a] (0) at (90:1cm) {};
     \node[draw,circle, inner sep=0pt, minimum width=4pt,
 fill=black,label=18:1] (1) at (18:1cm) {};
     \node[draw,circle, inner sep=0pt, minimum width=4pt,
 fill=black,label=-54:c] (2) at (-54:1cm) {};
     \node[draw,circle, inner sep=0pt, minimum width=4pt,
 fill=black,label=-126:b] (3) at (-126:1cm) {};
     \node[draw,circle, inner sep=0pt, minimum width=4pt,
 fill=black,label=-198:20] (4) at (-198:1cm) {};
     \draw[-] (0:1cm) arc (0:72:1cm);
     \draw[-] (72:1cm) arc (72:144:1cm);
     \draw[-] (144:1cm) arc (144:216:1cm);
     \draw[-] (216:1cm) arc (216:288:1cm);
     \draw[-] (288:1cm) arc (288:360:1cm);
         \draw[-,thick,color=black] (1.center) -- (3.center) -- cycle;
         \draw[-,thick,color=black] (4.center) -- cycle;
         \draw[-,thick,color=black] (0.center) -- (2.center) -- cycle;
 \end{tikzpicture}
 }}}

--
Ticket URL: <https://trac.sagemath.org/ticket/20915#comment:14>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to