Opened 12 years ago

Closed 12 years ago

#10291 closed defect (fixed)

Plots are changing if showed multiple times

Reported by: Andrey Novoseltsev Owned by: jason, was
Priority: major Milestone: sage-4.6.1
Component: graphics Keywords:
Cc: Merged in: sage-4.6.1.alpha3
Authors: Mike Hansen Reviewers: Andrey Novoseltsev
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Run the following in Sage-4.6 Notebook:

p = polygon2d([(1,0), (1,1), (0,1), (0,0)])
for i in range(10):
    p

Every time the rectangle gets smaller and smaller.

It looks to me like axes_pad is computed again and again and adding axes_pad=0 indeed solves the problem. But I don't know much about plotting framework, so I will be happy is someone else fixes it.

Attachments (1)

trac_10291.patch (1.2 KB) - added by Mike Hansen 12 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by Mike Hansen

Authors: Mike Hansen
Status: newneeds_review

comment:2 Changed 12 years ago by Andrey Novoseltsev

Tiny technical pick - can we cancel removal of the empty line 1716? Otherwise this patch and the fresh one at #7981 become conflicting/interdependent for no real reason.

comment:3 Changed 12 years ago by Andrey Novoseltsev

Reviewers: Andrey Novoseltsev
Status: needs_reviewpositive_review

OK, positive review, I'll make #7981 depend on this one...

Changed 12 years ago by Mike Hansen

Attachment: trac_10291.patch added

comment:4 Changed 12 years ago by Mike Hansen

I fixed the patch so that #7981 doesn't depend on this.

comment:5 Changed 12 years ago by Jeroen Demeyer

Milestone: sage-4.6.1

comment:6 Changed 12 years ago by Jeroen Demeyer

Merged in: sage-4.6.1.alpha3
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.