On Nov 25, 12:16 pm, Francois Maltey <fmal...@nerim.fr> wrote:
> Hello everybody !
>
> I'm using plot :
>
> I can plot a curve by
>
> sage: plot (sin(x), (x,-3,3))
>
> or
>
> sage: res = plot (sin(x), (x,-3,3)) ; res
>
> I also can configure plot with optional parameters.
>
> plot (sin(x), (x,-3,3), aspect_ratio=1)
>
> And aspect_ratio is a method in res : I test it by res.[tab]
>
> But I get an error after res.aspect_ratio(3) or res.aspect_ratio=3.
>
> What is this mysterious method aspect_ratio ?
> Can I really use it (after a plot, only before a plot) or is it only a
> too inner method ?
>


Optional keywords in plot actually get passed to show.  I don't know
why aspect_ratio shows up in tabbing, but

res.show(aspect_ratio=3)

should work okay.  A plot isn't really a plot; it is graphics
information, which gets plotted via all sorts of other stuff when we
call show (implicitly, by just asking to see res, one calls show).

Hope this helps.

- kcrisman

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to