Thanks, Jason. I never would have thought of that, but on reflection, it
appeared that the latex formatter would never switch to scientific
notation, and this is a case where you definitely want it. I suppose the
error was when it ran out of room for all those digits. With that removed,
Sage is perfectly happy to graph x^100/e^x.
David
On Friday, March 1, 2013 2:06:54 PM UTC-5, Jason Grout wrote:
>
> On 3/1/13 9:02 AM, kcrisman wrote:
> > For reference,
> >
> > x = var("x")
> >
> > @interact
> > def _(f = input_box(x, label='$f(x) = $', width=40),
> > x_range=input_grid(1,2,[[-8,8]], label='$x$ range', width=10),
> > auto_update=False):
> > a,b=x_range[0]
> > html("\[ f (x) = %s \]"%str(latex(f)) )
> > p1=plot(f, (x,a,b), color='blue', legend_label='$f(x)$',
> > axes_labels=['$x$','$y$'],tick_formatter="latex")
> > show(p1, figsize=6)
> >
>
> As a workaround, delete the tick_formatter="latex".
>
> This looks like possibly a bug in matplotlib.
>
> Thanks,
>
> Jason
>
>
--
You received this message because you are subscribed to the Google Groups
"sage-edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-edu?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.