enthought / enthought/chaco

Cannot set a renderer visible/invisible

Open
#211 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
305
Forks
97
PR merge metrics
No merged PRs in 30d

Description

In a simple script, after creating several renderers using

for i in xrange(10):
renderer_list[i] = plot.plot(...)

and showing the plot editor.
If someone tries to change the "visible" property from a renderer in renderer_list on the fly, by calling for example renderer_list[0].visible = False, nothing happens.

The method _visible_changed (in BaseXYPlot) is trieggered but something does not makes the curve disappears.

A simple workaround for that was call:
renderer_list[0].request_redraw()
but I think it is not the expected behaviour.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.