Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting defaults for show options #4154

Closed
jasongrout opened this issue Sep 19, 2008 · 4 comments
Closed

setting defaults for show options #4154

jasongrout opened this issue Sep 19, 2008 · 4 comments

Comments

@jasongrout
Copy link
Member

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.

Component: graphics

Reviewer: Andrey Novoseltsev

Issue created by migration from https://trac.sagemath.org/ticket/4154

@jasongrout
Copy link
Member Author

comment:1

See #4201 for a nice way to do this.

@novoselt
Copy link
Member

comment:2

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.

@jasongrout
Copy link
Member Author

comment:4

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.

@jdemeyer
Copy link

Reviewer: Andrey Novoseltsev

@jdemeyer jdemeyer removed this from the sage-4.6.1 milestone Nov 21, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants