Hi,

Here's yet another plotting bug.

This works fine:

sage: bar_chart([3, 4, pi])

But this doesn't!?

sag: bar_chart([3, 4, pi^2])
Traceback (click to the left of this block for traceback)
...
TypeError: function not supported for these types, and can't coerce
safely to supported types

It seems like I can find a new bug in Sage plotting every few minutes.
 I should be in quality control...

On Mon, Feb 27, 2012 at 11:58 AM, William Stein <wst...@gmail.com> wrote:
> Here is yet another bug.  It seems that in Sage-5.0.beta.x with the
> new notebook code, the default color picker interact control is
> completely broken.  For me, this doesn't work at all:
>
> @interact
> def f(n=Color('red')):
>    print n
>
> It shows a transparent thing where I should have colors, and when I
> click I usually end up with "#undefined".
>
> This is with Google chrome.  I can replicate this at
> http://480.sagenb.org.  This is a major regression, IMHO.
>
>  -- William
>
> On Mon, Feb 27, 2012 at 11:50 AM, William Stein <wst...@gmail.com> wrote:
>> Here's another graphics bug:
>>
>> The scatter_plot command can't take as input the standard Sage Color
>> object (e.g., as used by @interact and all other graphics objects, as
>> far as I know):
>>
>> sage: scatter_plot([(0,0)], marker='p', facecolor=Color('red'))
>> boom!
>>
>> The workaround is to do Color('red').rgb().
>>
>>
>> On Mon, Feb 27, 2012 at 11:38 AM, kcrisman <kcris...@gmail.com> wrote:
>>>
>>>> > Another thing that seems weird to me (using sage-5.0.beta*) is that
>>>> > plots are *huge* by default.  On my rather high resolution display,
>>>> > every plot takes up the entire screen, hence is twice as big as I
>>>> > recall last time I cared.  I have to explicitly specify the figsize in
>>>> > every plot I ever draw now, and it seems like the option to override
>>>> > the default FIGSIZE was removed by Karl-Dieter Crisman (according to
>>>> > "hg blame").
>>>>
>>>> Can you be more specific?   For instance, comparing the sizes of plots
>>>> in two different versions would be helpful.
>>>>
>>>> It sounds like continued fallout from the aspect_ratio/figsize
>>>> controversy, but I can't see anything there which would do that.
>>>
>>> That said, I'd be happy to make a patch if needed.  What syntax did
>>> you use to discover this?  I can never figure out how to use hg blame.
>>>
>>> --
>>> To post to this group, send an email to sage-devel@googlegroups.com
>>> To unsubscribe from this group, send an email to 
>>> sage-devel+unsubscr...@googlegroups.com
>>> For more options, visit this group at 
>>> http://groups.google.com/group/sage-devel
>>> URL: http://www.sagemath.org
>>
>>
>>
>> --
>> William Stein
>> Professor of Mathematics
>> University of Washington
>> http://wstein.org
>
>
>
> --
> William Stein
> Professor of Mathematics
> University of Washington
> http://wstein.org



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to