Ticket #12854 (new defect)

Opened 14 months ago

Last modified 14 months ago

Severe slow-down in plotting

Reported by: jdemeyer Owned by: tbd
Priority: critical Milestone: sage-5.11
Component: performance Keywords:
Cc: Work issues:
Report Upstream: N/A Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

Plotting has severely slowed down since sage-4.8.

For example the following command (inspired on a doctest from devel/sage/sage/plot/plot.py):

sage: timeit('''plot(sin(x),(x,0,2*pi),ticks=pi/3,tick_formatter=pi).save("/tmp/1.png")''', number=1, repeat=20)

It's annoying to measure this as the timing has quite a large standard deviation. But on boxen.math, with sage-4.8, the best case timing is about 1 second, while with sage-5.0.beta13, the best case timing is about 1.5 seconds.

Change History

comment:1 Changed 14 months ago by kcrisman

This is due to the change in attachment:trac-11915-matplotlib-1.1.0-upgrade.patch:ticket:11915 Download that reads

figure.tight_layout() 

Comment it out and see the times go down. See #11915 for the rationale behind adding this, which I will point out was not arbitrary.

comment:2 Changed 14 months ago by jdemeyer

So should we simply keep the tight_layout() and live with it?

comment:3 Changed 14 months ago by jdemeyer

  • Priority changed from blocker to critical
Note: See TracTickets for help on using tickets.