Cotton pickin' Color pickin' problem

25 views
Skip to first unread message

kcrisman

unread,
Jul 18, 2012, 10:11:00 AM7/18/12
to sage-notebook
Try this in aleph.sagemath.org:

@interact
def _(f=input_box(x^2, width=20), color=color_selector()):
show(plot(f,(x,-3,3), color=color))

Now try it in a sagenb type server.

(By the way, I got a copy of a previous worksheet on sagenb.org when I
tried making a new worksheet - it wasn't the previous one in numerical
order, either. Just confirming that report.)

Neither one works, but they fail in different ways. On a worksheet,
you get


Invalid color '#undefined', using default Color()

when you actually pick a color.

On the other hand,

@interact
def _(color=color_selector(widget='colorpicker', label="")):
show(plot(x^2,(x,-3,3), color=color))

does work, but not consistently; it seems to be a color behind at
times. Again, on aleph it doesn't really work at all.

I think that we need to at least put in a warning somewhere that this
does NOT work in any current documentation that references it,
probably before the release of 5.2, certainly before #13121 gets in.
Thoughts?

Jason Grout

unread,
Jul 18, 2012, 10:22:10 AM7/18/12
to sage-n...@googlegroups.com
On 7/18/12 9:11 AM, kcrisman wrote:
> Try this in aleph.sagemath.org:
>
> @interact
> def _(f=input_box(x^2, width=20), color=color_selector()):
> show(plot(f,(x,-3,3), color=color))

On aleph, I click the selector control, select a color, then click
outside the control. Then the graph updates (correctly, as far as I see).

Jason

kcrisman

unread,
Jul 18, 2012, 10:52:38 AM7/18/12
to sage-n...@googlegroups.com
I don't see any change in color.  Maybe I'm using it wrong?   They all look black, even when I get a different hex color. 

Dan Drake

unread,
Jul 18, 2012, 11:59:59 AM7/18/12
to sage-n...@googlegroups.com
On Wed, 18 Jul 2012 at 07:11AM -0700, kcrisman wrote:
> Try this in aleph.sagemath.org:
>
> @interact
> def _(f=input_box(x^2, width=20), color=color_selector()):
> show(plot(f,(x,-3,3), color=color))

With Firefox 14 on Ubuntu, this works on aleph. However, inside the
colored parts (the hue bar and the value/saturation square (I think I
have those right)), I have to click *and drag* to get it to respond.
Just clicking doesn't do anything.

Dan

--
--- Dan Drake
----- http://mathsci.kaist.ac.kr/~drake
-------
signature.asc

Andrea Lazzarotto

unread,
Jul 18, 2012, 1:00:47 PM7/18/12
to sage-n...@googlegroups.com


2012/7/18 Dan Drake <dr...@kaist.edu>

With Firefox 14 on Ubuntu, this works on aleph. However, inside the
colored parts (the hue bar and the value/saturation square (I think I
have those right)), I have to click *and drag* to get it to respond.
Just clicking doesn't do anything.

The same applies for me. I have to click and drag both in Firefox and Chromium on Ubuntu 12.04.

--
Andrea Lazzarotto - http://andrealazzarotto.com

Jason Grout

unread,
Jul 18, 2012, 1:04:26 PM7/18/12
to sage-n...@googlegroups.com
On 7/18/12 12:00 PM, Andrea Lazzarotto wrote:
>
>
> 2012/7/18 Dan Drake <dr...@kaist.edu <mailto:dr...@kaist.edu>>
>
> With Firefox 14 on Ubuntu, this works on aleph. However, inside the
> colored parts (the hue bar and the value/saturation square (I think I
> have those right)), I have to click *and drag* to get it to respond.
> Just clicking doesn't do anything.
>
>
> The same applies for me. I have to click and drag both in Firefox and
> Chromium on Ubuntu 12.04.

Yes, I have to click and drag slightly as well. That sounds like it
might be an issue with the color selector?

Jason


kcrisman

unread,
Jul 18, 2012, 1:29:43 PM7/18/12
to sage-n...@googlegroups.com
Maybe; I've always had to do that lately, didn't register.  But even when I do that, it doesn't really work properly, as outlined above.  Does no one else see the "delayed color" issue on aleph?
Reply all
Reply to author
Forward
0 new messages