Opened 5 years ago
Last modified 5 years ago
#22506 new enhancement
Add plots to the thematic tutorial on drawing polytopes with tikz
Reported by: | jipilab | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-7.6 |
Component: | documentation | Keywords: | days84, tikz, polytope |
Cc: | moritz, mkoeppe, vdelecroix, tmonteil, chapoton, mmasdeu, tscrim, slabbe | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | #20343 | Stopgaps: |
Description
There is a tutorial on how to get tikz code to draw polytopes available here.
When it was written, it was not possible to include pictures in the documentation. This ticket adds the pictures that belong to the tutorial.
Change History (6)
comment:1 Changed 5 years ago by
comment:2 Changed 5 years ago by
- Cc tscrim added
comment:3 Changed 5 years ago by
- Cc slabbe added
I did some tests and it seems that if sage could take a LatexExpr
and output a .png of .svg in a similar way as a plot, then since sphinx_plot eats a .png... that could be a simple hack..
Sébas, didn't you do something related to this recently?
comment:4 Changed 5 years ago by
In the package slabbe.spkg (see here), the TikzPicture? class does almost all the work needed. The step missing would be to have a .plot() method returning a Sage Graphics object and then sphinx_plot could take that.
comment:5 Changed 5 years ago by
- Dependencies set to 20343
I added a dependency to a ticket that add the class needed to have a try at this.
comment:6 Changed 5 years ago by
- Dependencies changed from 20343 to #20343
It seems that this is not yet possible to include tikz code inside the documentation using the
sphinx_plot
method.I sent an email to sage-devel here to get some information on this topic.