Opened 2 years ago

Last modified 23 months ago

#27276 new enhancement

Add to_pyplot method to Graphics, GraphicsArray, 3d graphics objects, and remove sphinx_plot

Reported by: mkoeppe Owned by:
Priority: major Milestone:
Component: graphics Keywords:
Cc: kdilks, jhpalmieri, tmonteil, egourgoulhon Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

(From the discussion of #27085.)

In this ticket, we add a method to_pyplot that will put the object in a pyplot figure to every graphics object class (including GraphicsArrays and the 3D graphics objects).

This will allow users to interoperate sage graphics with pure matplotlib.pyplot code.

In particular, for plots in the sphinx documentation, the sphinx_plot function provided by src/doc/common/conf.py can be removed, and calls to it replaced by method calls to to_pyplot.

Change History (4)

comment:1 Changed 2 years ago by egourgoulhon

  • Cc egourgoulhon added

comment:2 Changed 2 years ago by embray

  • Milestone changed from sage-8.7 to sage-8.8

Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually)

comment:3 Changed 2 years ago by egourgoulhon

A possible progress towards the aim of this ticket could be #27865, which provides GraphicsArray with a proper matplotlib() method.

comment:4 Changed 23 months ago by embray

  • Milestone sage-8.8 deleted

As the Sage-8.8 release milestone is pending, we should delete the sage-8.8 milestone for tickets that are not actively being worked on or that still require significant work to move forward. If you feel that this ticket should be included in the next Sage release at the soonest please set its milestone to the next release milestone (sage-8.9).

Note: See TracTickets for help on using tickets.