[sage-support] **legend
Hi, I have params=dict() which works well, I am trying to look the same way with lgd= ? like lgd=dict...something ? I didn't find answer This way works but I have to put a variable (q, here) but when I change it can change too ? q.set_legend_options(loc=2,font_size=6,shadow=False, back_color="lightcyan") show(q,**params) If there is way ? Bienvenu :) Regards Henri -- 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 https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] legend options **kwds
Hi, I don't see this oportunity anywhere in tuts. That's how I used it below but now (sage-6.9/6.10beta1) it doesn't work legend_opts = { 'back_color': 'salmon', 'shadow': False,'fancybox': 'True','fontsize': '6','loc': '1','borderaxespad': '1'}; O.set_legend_options(**legend_opts); Any help Regards Henri -- 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.
Re: [sage-support] legend
Hi, Sorry I mistaken : Your suggestion does work but apparently some commands don't work. I am trying further... Thanks Henri Le 17/04/2014 14:48, Michael Orlitzky a écrit : On 04/17/2014 06:32 AM, 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 ? The same syntax should work: legend_opts = { 'back_color': 'white', 'shadow': True } p.set_legend_options(**legend_opts) -- 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.
Re: [sage-support] legend
It doesn't work ... It seems to be a matplotlib options which I can't use inside texmacs directly. Strange that **params works and not **legend. Le 17/04/2014 14:48, Michael Orlitzky a écrit : On 04/17/2014 06:32 AM, 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 ? The same syntax should work: legend_opts = { 'back_color': 'white', 'shadow': True } p.set_legend_options(**legend_opts) -- 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.
Re: [sage-support] legend
I forget to say I can't use the show command because the plot is external in a texmacs session, this one should work I try it. thanks Henri Le 17/04/2014 14:48, Michael Orlitzky a écrit : On 04/17/2014 06:32 AM, 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 ? The same syntax should work: legend_opts = { 'back_color': 'white', 'shadow': True } p.set_legend_options(**legend_opts) -- 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.
Re: [sage-support] legend
On 04/17/2014 06:32 AM, 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 ? The same syntax should work: legend_opts = { 'back_color': 'white', 'shadow': True } p.set_legend_options(**legend_opts) -- 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.
[sage-support] legend
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 -- 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.
Re: [sage-support] Legend label problem
This seems to work on test.sagenb.org (5.0.beta1) and the 5.0.beta4 I have around, so something (whether Sage-side or matplotlib-side) must have changed for the better from 4.8. Is it time-sensitive enough to track it down and make a backpatch? Doug -- 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
[sage-support] Legend label problem
Compare plot(e^(-x/10),(x,0,20),legend_label='$%s$'%latex(e^(-x/10))) AttributeError: 'Kern' object has no attribute 'height' with plot(e^(-x/10),(x,0,20),legend_label='$%s$'%latex(x)) (all is well). This does not happen with e^-x. Any ideas? This came up while preparing a talk, unfortunately. Presumably we haven't had enough people using legends yet for this to come up... Thanks, - 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
Re: [sage-support] Legend Options in 2D Plots? Title Options in 3D plots?
> 1 - On 2D plots, I have been unable to use the legend() attribute and > the set_legend_options() attribute. I don't think you have those methods. I think you're using an old version of sage (maybe <= 4.5.2?) but reading documentation from a later version, which occasionally causes trouble. What does version() report? Doug -- 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
[sage-support] Legend Options in 2D Plots? Title Options in 3D plots?
I have two issues: 1 - On 2D plots, I have been unable to use the legend() attribute and the set_legend_options() attribute. The commands g = plot(x) g.legend() give me the error "AttributeError: 'Graphics' object has no attribute 'legend'" Also, I have been unable to label the legend when creating the plot as is shown in the sage documentation. The command P = plot(sin, legend_label='sin') gives me the error "RuntimeError: Error in line(): option 'legend_label' not valid." 2 - On 3D plots, is there a way to create a legend or title? Is there a way to add labels to the axes, or change the color of the axes? Any suggestions are welcome. Thanks! -- 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