The vertical part of y error bars. Where are they?

Hello,

I’m writing a script that removes data from plots by looping over axes.get_lines(), removing data, then using axes.set_lines(). It works quite well, but when it’s a plot with error bars, the vertical part of the error bar is not disappearing.

I’m assuming the vertical part is a vline or something and so should not be with the other lines. Where does this data get stuck? :slight_smile:

Thanks!

Jack

http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=errorbar#matplotlib.pyplot.errorbar

As described in the doc, the errorbar command creates lines and line
collections, where the errorbars are created as line collections.
Axes.collections contains the list of collection artist that belong to
the axes hence this is the place.

However, I don't think manipulating Axes.collections (and the return
value of get_lines() ) in this way is a good idea. All the artist
added to an axes has "remove" method. When called, the artist remove
itself from the axes it belongs.

I'm not sure what your intention is, but if you want to temporarily
remove some artists from the axes, it would be easier to make them
simply invisible. Otherwise, I recommend you to use the remove method.

Regards,

-JJ

···

On Tue, Jul 14, 2009 at 6:13 PM, Jack Sankey<jack.sankey@...287...> wrote:

Hello,
I'm writing a script that removes data from plots by looping over
axes.get_lines(), removing data, then using axes.set_lines(). It works quite
well, but when it's a plot with error bars, the vertical part of the error
bar is not disappearing.
I'm assuming the vertical part is a vline or something and so should not be
with the other lines. Where does this data get stuck? :slight_smile:
Thanks!
Jack
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Thanks JJ, I’ll give that a shot. The problem with making them invisible is they take up a lot of unnecessary overhead in my vector graphics program that already runs ridicuslow :slight_smile:

···

On Wed, Jul 15, 2009 at 11:58 AM, Jae-Joon Lee <lee.j.joon@…287…> wrote:

http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=errorbar#matplotlib.pyplot.errorbar

As described in the doc, the errorbar command creates lines and line

collections, where the errorbars are created as line collections.

Axes.collections contains the list of collection artist that belong to

the axes hence this is the place.

However, I don’t think manipulating Axes.collections (and the return

value of get_lines() ) in this way is a good idea. All the artist

added to an axes has “remove” method. When called, the artist remove

itself from the axes it belongs.

I’m not sure what your intention is, but if you want to temporarily

remove some artists from the axes, it would be easier to make them

simply invisible. Otherwise, I recommend you to use the remove method.

Regards,

-JJ

On Tue, Jul 14, 2009 at 6:13 PM, Jack Sankey<jack.sankey@…287…> wrote:

Hello,

I’m writing a script that removes data from plots by looping over

axes.get_lines(), removing data, then using axes.set_lines(). It works quite

well, but when it’s a plot with error bars, the vertical part of the error

bar is not disappearing.

I’m assuming the vertical part is a vline or something and so should not be

with the other lines. Where does this data get stuck? :slight_smile:

Thanks!

Jack


Enter the BlackBerry Developer Challenge

This is your chance to win up to $100,000 in prizes! For a limited time,

vendors submitting new applications to BlackBerry App World™ will have

the opportunity to enter the BlackBerry Developer Challenge. See full prize

details at: http://p.sf.net/sfu/Challenge


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users