Opened 13 years ago

Closed 10 years ago

#4154 closed enhancement (duplicate)

setting defaults for show options

Reported by: jason Owned by: was
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: graphics Keywords:
Cc: Merged in:
Authors: Reviewers: Andrey Novoseltsev
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


There ought to be a way to set defaults for the options to show. Even just a dictionary in sage.plot.plot would be nice.

A use-case would be setting the default aspect ratio to 1 so that if you are plotting lots of circles, it looks okay.

Change History (5)

comment:1 Changed 13 years ago by jason

See #4201 for a nice way to do this.

comment:2 Changed 10 years ago by novoselt

  • Report Upstream set to N/A
  • Status changed from new to needs_review

I guess

sage.plot.plot.Graphics.SHOW_OPTIONS["aspect_ratio"] = 1

does what was requested in this ticket (although I don't think that it is the best way).

I am switching this ticket to positive review so that release managers can close it appropriately.

comment:3 Changed 10 years ago by novoselt

  • Status changed from needs_review to positive_review

comment:4 Changed 10 years ago by jason

I agree with your assessment.

If you're interested in reviewing a ticket that deals with setting aspect ratios to more sensible defaults, and clarifying what Sage/Matplotlib? means by aspect ratio, #2100 is up for review.

comment:5 Changed 10 years ago by jdemeyer

  • Milestone changed from sage-4.6.1 to sage-duplicate/invalid/wontfix
  • Resolution set to duplicate
  • Reviewers set to Andrey Novoseltsev
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.