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.

I've tested this on my local install of Sage (v4.4.2) and on
sagenb.org (v4.4.3).

A workaround for now is to only modify line2d.options (or just pass
arguments) and not call line2d.reset().

-- Tianwei

-- 
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