On Thursday, April 17, 2014 6:32:31 AM UTC-4, HG wrote:
>
>
> Hi, 
> I do a plot with **params which is quiete usefull to have it as a 
> compact style. 
> After googling a lot I was trying to see if one can do the same with 
> **legend ? or other keyword ? 
> I didn't find any answer, is it possible ? 
>   it would be easier to put all in a command ? 
> regards 
> Henri 
>
> p=plot(sin(x*5), legend_label='sin', 
> legend_color='red',frame=True,figsize=3,fontsize=6); 
> p.set_legend_options(font_size=6); 
> p.set_legend_options(back_color=(0.9,0.9,0.9)); 
> p.set_legend_options(loc=(1)); 
> p.set_legend_options(shadow=True); 
> p.set_legend_options(borderaxespad=1); 
> p.set_legend_options(fancybox=False); p 
>

Either of these options (see the documentation for p.show?):

sage: p=plot(sin(x*5), legend_label='sin', 
legend_color='red',frame=True,figsize=3,fontsize=6);
sage: 
p.set_legend_options(font_size=6,back_color=(.9,.9,.9),loc=(1),shadow=True, 
borderaxespad=1,fancybox=False) 

sage: p = plot(sin(x*5), legend_label=r'$\sin$', 
legend_color='red',frame=True,figsize=3,fontsize=6).show(legend_back_color=(.9,.9,.9),legend_loc=(1),legend_shadow=True,legend_fancybox=False)
 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to