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

region_plot does not pass extra arguments to show #7807

Closed
jasongrout opened this issue Jan 1, 2010 · 4 comments
Closed

region_plot does not pass extra arguments to show #7807

jasongrout opened this issue Jan 1, 2010 · 4 comments

Comments

@jasongrout
Copy link
Member

This is inconsistent with other plotting functions.

sage: region_plot([x^2+y^2<1, x<y], (x,-2,2), (y,-2,2),aspect_ratio=1)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/home/grout/.sage/temp/tiny/2531/_home_grout__sage_init_sage_0.py in <module>()

/home/grout/downloads/sage-4.3/local/lib/python2.6/site-packages/sage/plot/misc.pyc in wrapper(*args, **kwds)
    136                 options['__original_opts'] = kwds
    137             options.update(kwds)
--> 138             return func(*args, **options)
    139 
    140         

TypeError: region_plot() got an unexpected keyword argument 'aspect_ratio'

Component: graphics

Reviewer: Ross Kyprianou

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

@jasongrout
Copy link
Member Author

comment:1

The patch at #8004 resolves this.

@sagetrac-rossk
Copy link
Mannequin

sagetrac-rossk mannequin commented Jan 31, 2010

comment:3
# works as advertised
sage: region_plot([x^2+y^2<1, x<y], (x,-2,2), (y,-2,2),aspect_ratio=1)  

# (Correctly) doesnt complain about a single function
sage: region_plot([x^2+y^2<1], (x,-2,2), (y,-2,2),aspect_ratio=1) 

# using many functions is ok
sage: region_plot([x^2+y^2<1, x<y, x>-1/2, y>0], (x,-2,2), (y,-2,2),aspect_ratio=1)

# displays a portion of the last example properly
sage: region_plot([x^2+y^2<1, x<y, x>-1/2, y>0], (x,0,2), (y,-2,2),aspect_ratio=1) 

# a little computer art - my picture of a whale ;-) 
sage: region_plot([x^2+y^2<10, y< sin(x)], (x,-5,5), (y,-4,4),aspect_ratio=1)

@qed777
Copy link
Mannequin

qed777 mannequin commented Feb 11, 2010

comment:4

Fixed by #8004.

@qed777 qed777 mannequin removed the s: positive review label Feb 11, 2010
@qed777 qed777 mannequin closed this as completed Feb 11, 2010
@sagetrac-rossk
Copy link
Mannequin

sagetrac-rossk mannequin commented Feb 11, 2010

Reviewer: Ross Kyprianou

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

2 participants