Ticket #10291 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Plots are changing if showed multiple times

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

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

trac_10291.patch Download (1.2 KB) - added by mhansen 2 years ago.

Change History

comment:1 Changed 2 years ago by mhansen

  • Status changed from new to needs_review
  • Authors set to Mike Hansen

comment:2 Changed 2 years ago by novoselt

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 2 years ago by novoselt

  • Status changed from needs_review to positive_review
  • Reviewers set to Andrey Novoseltsev

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

Changed 2 years ago by mhansen

comment:4 Changed 2 years ago by mhansen

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

comment:5 Changed 2 years ago by jdemeyer

  • Milestone set to sage-4.6.1

comment:6 Changed 2 years ago by jdemeyer

  • Status changed from positive_review to closed
  • Resolution set to fixed
  • Merged in set to sage-4.6.1.alpha3
Note: See TracTickets for help on using tickets.