#20915: Plotting Set Partitions as Chord Diagrams
-------------------------------------+-------------------------------------
Reporter: jcourtie | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-7.3
Component: combinatorics | Resolution:
Keywords: | Merged in:
SetPartition,days78 |
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/aram.dermenjian/20915 | 6b346a42c77fd16aee0b9ea73df007dbb436ccc5
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by egunawan):
The new latex method works nicely for {'plot':'linear'} even when
self.base_set() contains strings. Shall we change this so that it also
works nicely for 'plot':'circular'} ? Currently:
{{{
sage: p=SetPartition([['a','c'],['b',1],[20]])
sage: p.set_latex_options({'plot':'linear'})
sage: latex(p)
\begin{tikzpicture}[scale=1]
\node[below=.05cm] at (0,0) {$a$};
\node[draw,circle, inner sep=0pt, minimum width=4pt, fill=black] (0)
at (0,0) {};
\node[below=.05cm] at (1,0) {$1$};
\node[draw,circle, inner sep=0pt, minimum width=4pt, fill=black] (1)
at (1,0) {};
\node[below=.05cm] at (2,0) {$c$};
\node[draw,circle, inner sep=0pt, minimum width=4pt, fill=black] (2)
at (2,0) {};
\node[below=.05cm] at (3,0) {$b$};
\node[draw,circle, inner sep=0pt, minimum width=4pt, fill=black] (3)
at (3,0) {};
\node[below=.05cm] at (4,0) {$20$};
\node[draw,circle, inner sep=0pt, minimum width=4pt, fill=black] (4)
at (4,0) {};
\draw[color=black] (2) to [out=90,in=90] (0);
\draw[color=black] (3) to [out=90,in=90] (1);
\end{tikzpicture}
sage: p.set_latex_options({'plot':'circular'})
sage: latex(p)
\begin{tikzpicture}[scale=1]
\end{tikzpicture}
}}}
--
Ticket URL: <https://trac.sagemath.org/ticket/20915#comment:12>
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.