On Jun 18, 2:35 pm, TianWei <[email protected]> wrote:
> It seems there's a problem with line2d.reset(): it resets the
> line2d.options dictionary as it should, but further modifications to
> line2d.options fail to take any effect.
>
> Here's an example that *should* plot out four lines in the colors
> (blue, red, blue, red):
>
> #default color (works)
> print line2d.options
> line2d([(-1,3),(2,-1)]).show()
>
> #change color to red (works)
> line2d.options['rgbcolor'] = (1,0,0)
> print line2d.options
> line2d([(-1,3),(2,-1)]).show()
>
> #reset to blue (partially works)
> line2d.reset()
> print line2d.options
> line2d([(-1,3),(2,-1)]).show()
>
> #change color again to red (broken)
> line2d.options['rgbcolor'] = (1,0,0)
> print line2d.options
> line2d([(-1,3),(2,-1)]).show()
>
> However, the last plot is a blue line instead of red, and
> line2d.reset() does not revert line2d.options to the default settings,
> either. After this point, modifying line2d.options directly does
> change the dictionary, but the output color ignores these values.
>

A possibly related (though likely not) issue is the following:


    sage: T = tetrahedron(color='red', opacity=0.5)
    sage: t = T.get_texture()
    sage: t.opacity
    0.500000000000000
    sage: T.set_texture(opacity=1)
    sage: T

Notice that T is now blue.

- kcrisman

-- 
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/sage-support
URL: http://www.sagemath.org

Reply via email to