Loading...

sagesupport@googlegroups.com
[Prev] Thread [Next]  [Prev] Date [Next]
[sagesupport] polygon graph is too small (wrong scale) Goebbe Sat Feb 18 18:00:17 2012
Using sage 4.8 in the notebook environment I have problems to scale polygons: For example, the following code generates a graphs that seems to be to small (not high enough): polygon2d([[0,0],[0,1],[1,0]], rgbcolor=(1,0,1),xmin=4, xmax=4, ymin=0, ymax=1) The final goal is to fill (non trivial) areas in plots, but when trying this the plots are much too small. here is the large example: signi = 0.1 lu = NV01.cum_distribution_function_inv(signi/2) lo = NV01.distribution_function(lu) ru = NV01.cum_distribution_function_inv(1(signi/2)) ro = NV01.distribution_function(ru) p = NV01.plot((x,4,4), fill='axis',fillcolor='blue',fillalpha='0.2') p += polygon([(lu,0),(lu,NV01.distribution_function(lu))] + [(x,NV01.distribution_function(x)) for x in [lu0.1,lu0.2,..,2]] + [(4,0),(lu,0)], rgbcolor=(1,0,0), alpha=0.3) p += polygon([(ru,0),(ru,NV01.distribution_function(ru))] + [(x,NV01.distribution_function(x)) for x in [ru+0.1,ru+0.2,..,2 ]] + [ (4,0),(ru,0)], rgbcolor=(1,0,0), alpha=0.3) p.show() Is this a bug? Does anybody know a workaround? Thanks in advance Goebbe  To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sagesupport URL: http://www.sagemath.org
 [sagesupport] polygon graph is too small (wrong scale) Goebbe 2012/02/18 <=
 [sagesupport] Re: polygon graph is too small (wrong scale) P Purkayastha 2012/02/19
 [sagesupport] Re: polygon graph is too small (wrong scale) P Purkayastha 2012/02/19
 [sagesupport] Re: polygon graph is too small (wrong scale) Goebbe 2012/02/20
 [sagesupport] Re: polygon graph is too small (wrong scale) Jason Grout 2012/02/20
 [sagesupport] Re: polygon graph is too small (wrong scale) Goebbe 2012/02/20
 [sagesupport] Re: polygon graph is too small (wrong scale) Goebbe 2012/02/23
 Re: [sagesupport] Re: polygon graph is too small (wrong scale) Dan Drake 2012/02/23
 [sagesupport] Re: polygon graph is too small (wrong scale) Jason Grout 2012/02/23