Opened 5 years ago

Last modified 5 years ago

#17498 closed enhancement

Pictures in the doc through ".. plot::" directive — at Version 3

Reported by: ncohen Owned by:
Priority: major Milestone: sage-6.5
Component: documentation Keywords:
Cc: vbraun, vdelecroix, tmonteil, jmantysalo, ​fredrik.johansson Merged in:
Authors: Nathann Cohen Reviewers:
Report Upstream: N/A Work issues:
Branch: public/17498 (Commits) Commit: b5848d11328b1b785f54789ba9ccd7bc6d4cc981
Dependencies: Stopgaps:

Description (last modified by ncohen)

With this branch, one can use the ".. PLOT::" directive defined in matplotlib through Sphinx.

As it expects the picture to be defined as a matplotlib one, I added a small function called 'draw' that translates a Sage object into a matplotlib one through a temporary .png file (I know, I know...)

While it works as it is, it is probably not implemented as it should.

Soooo let us fix this and use that feature !


Associated sage-devel thread at:

Change History (3)

comment:1 Changed 5 years ago by ncohen

  • Branch set to public/17498
  • Status changed from new to needs_review

comment:2 Changed 5 years ago by git

  • Commit set to b5848d11328b1b785f54789ba9ccd7bc6d4cc981

Branch pushed to git repo; I updated commit sha1. New commits:

b5848d1trac #17498: Pictures in the doc through ".. plot::" directive

comment:3 Changed 5 years ago by ncohen

  • Description modified (diff)
Note: See TracTickets for help on using tickets.