Le jeudi 5 décembre 2013 13:37:38 UTC+1, HG a écrit :
>
> Hi,
> I plot a blackbody curve and the filling is palegoldenrod.
> I would like to get a rainbow filling  for each color.
> I tried fillalpha= with x y but that doesn't work is there a way of doing 
> it ?


sure ...
 Sage]  c=4e8;h=5e-34;k=3e-23 # constante

Sage]  k1=8*pi*h*c;k2=(h*c)/k

Sage]  O=Graphics()

Sage]  
params=dict(figsize=(3,2),axes=False,fontsize=8,frame=True,gridlines=True,gridlinesstyle={"color":(0.3,0.3,0.3)},axes_labels=("$Lambda[nm]$","$E(Lambda)[KJ/nm$"),legend_font_size=6
 
)

Sage]  E(l,T)=k1*(l*1e-9)^-5*(1/(exp(k2/((l*1e-9)*T))-1))

Sage]  
a=plot(E(l,3500),l,10,1000,figsize=(3,2),frame=True,rgbcolor=hue(0.2));
b=plot(E(l,4000),l,10,1000,figsize=(3,2),frame=True,rgbcolor=hue(0.4));
d=plot(E(l,4500),l,10,1000,figsize=(3,2),frame=True,rgbcolor=hue(0.6));
j=plot(E(l,5000),l,10,1000,figsize=(3,2),frame=True,rgbcolor=hue(0.8));
m=plot(E(l,5500),l,10,1000,figsize=(3,2),frame=True,
rgbcolor=hue(1.0),fill=True,fillcolor=hue(0.1),fillalpha=0.1);

Sage]  O=plot(a+b+d+j+m, **params);O.axes_width(1/4); 
O.set_legend_options(font_size='small');
O.set_legend_options(back_color=(0.9,0.9,0.9))  ;
O.set_legend_options(loc=1)  ;
O.set_legend_options(shadow=False);
O.set_legend_options(borderaxespad=1);
O.set_legend_options(fancybox=True);
O.axes_color((0.2,0.5,0.5));O.tick_label_color('brown')  

Sage]  O
Its done with texmacs session
I want the background rainbow ? If possible

-- 
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/groups/opt_out.

Reply via email to