#18289: Revert the changes that #17821 made to graph/
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.7
Component: graph theory | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers: Nathann Cohen
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/graph_preference | 9a8700d91b7096b369ff3927c93d14f169f14b7c
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by mantepse):
Replying to [comment:62 vbraun]:
> Replying to [comment:56 mantepse]:
> > Is there a difference between `latex(g)` and `g.__latex__`? What
would be the point of having $G_{123}$ as output? At least for me it
would be completely useless.
>
> * `latex(g)` just calls `g._latex_()`, so they are equivalent
> * We should certainly have a way to get the tikz code.
> * The problem is that if you click the "typeset" checkbox in SageNB then
it calls `latex()` for every output. But typesetting tikz often fails,
resulting in a quite broken notebook. For large-ish graphs we shouldn't go
that route in the displayhook.
>
> The two logical options are either
> * move the tikz output, something like `graph.plot(format='tikz')`, or
> * not call `graph._latex_()` when typesetting output, for example
implementing a different latex view it in `graph._rich_repr_()`
Since a SageNB user will hardly type `latex` by hand (I'm not using the
notebook, so I'm guessing), why should `latex` print anything but code
useful for inclusion in a paper?
I think it's hardly possible to reuse output functionality too much, since
the use cases are quite diverse. So, if I understand you correctly, I
would very much prefer the second solution. It would be a shame if I can
use `latex(matrix)` and `latex(symbolic_expression)` but not
`latex(graph)`.
--
Ticket URL: <http://trac.sagemath.org/ticket/18289#comment:67>
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.