« Return to Thread: where is line after remove?
El día 13 de marzo de 2012 00:25, Federico Ariza
<ariza.federico@...> escribió:
> [...]
> I want to turn visibility on and off for lines.I faced this some time ago and my workaround was writing my own
> I can not use the visible property, using it the autolimits "relim" keeps
> considering the lines as being there.
> As consequence the limits are wrong (if we think only on the visible lines).
(simplified) version of relim, if memory serves. But this may not fit
your needs here. Maybe a better solution is modify relim upstream so
it can take visibility into account (maybe using a new keyword). Just
a quick thought.
I don't think matplotlib keeps a reference to a line object after you
> So I resorted to remove the line from its axes by line.remove()
>
> The question is:
> If I do not want to use another variable to keep track of this line, how can
> I find it again from the figure instance (or somewhere else)?
> get_children gets me nowhere.... or maybe?
remove it from the axes. If I'm right and you want to follow that path
you'll need to track it yourself.
Regards
Goyo
« Return to Thread: where is line after remove?
| Free embeddable forum powered by Nabble | Forum Help |