Patch: layering errorbars behind plot

Hi there,

here is a small patch layering errorbars behind the line of the plot itself.

Rationale:
If you use ecolor and have a plot with many dense points, the errorbars may be
covering the line itself completely. The relayering makes the line fully
visible and puts the errorbars as "additional information" in the background.

Greetings,
Norbert

PS: If sending small patches to this mailing list is a suboptimal way of
submission, please tell me how to do it better.

matplotlib-layering.diff (2.35 KB)

···

--
_________________________________________Norbert Nemec
         Bernhardstr. 2 ... D-93053 Regensburg
     Tel: 0941 - 2009638 ... Mobil: 0179 - 7475199
           eMail: <Norbert@...160...>

Hi Norbert,
I think this is the best place to post patches like this.
There was some discussion a while back about the layer ordering of
errorbars and other objects in the plot window. It was decided to leave it
unchanged for the moment since about half of users want it one way and half
the other. Some ideas were raised like being able to specify layers as
command parameters or change the default in the resource file. I think that
until this is pursued, it is unlikely that anything will be done.
Gary

*********** REPLY SEPARATOR ***********

···

On 22/10/2004 at 11:29 Norbert Nemec wrote:

Hi there,

here is a small patch layering errorbars behind the line of the plot
itself.

Rationale:
If you use ecolor and have a plot with many dense points, the errorbars
may be
covering the line itself completely. The relayering makes the line fully
visible and puts the errorbars as "additional information" in the
background.

Greetings,
Norbert

PS: If sending small patches to this mailing list is a suboptimal way of
submission, please tell me how to do it better.

--
_________________________________________Norbert Nemec
         Bernhardstr. 2 ... D-93053 Regensburg
     Tel: 0941 - 2009638 ... Mobil: 0179 - 7475199
           eMail: <Norbert@...160...>

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

------------------------------------
Gary Ruben gruben@...1...
<http://users.bigpond.net.au/gazzar&gt;

Thanks for the reply. Surprises me that people would really argue about this
issue, but well. :slight_smile:

Attached is a slighly changed patch: effectively, it does not change the
layering any more, but it changes the internals of errorbar() in a way, that
allows to swap the layering by simply swapping two blocks of code. (Which was
nontrivial before, since the color from the plot line can only be read after
it has been drawn.)

Whether this swapping is then done by hand, by an option or an entry in the rc
file can be left to the future.

Maybe, submitting this patch will save someone else the time to figure it out
himself.

Ciao,
Nobbi

matplotlib-layering-new.diff (2.07 KB)

···

On Friday 22 October 2004 12:27, gary ruben wrote:

Hi Norbert,
I think this is the best place to post patches like this.
There was some discussion a while back about the layer ordering of
errorbars and other objects in the plot window. It was decided to leave it
unchanged for the moment since about half of users want it one way and half
the other. Some ideas were raised like being able to specify layers as
command parameters or change the default in the resource file. I think that
until this is pursued, it is unlikely that anything will be done.
Gary

*********** REPLY SEPARATOR ***********

On 22/10/2004 at 11:29 Norbert Nemec wrote:
> Hi there,
>
> here is a small patch layering errorbars behind the line of the plot
> itself.
>
> Rationale:
> If you use ecolor and have a plot with many dense points, the errorbars
> may be
> covering the line itself completely. The relayering makes the line fully
> visible and puts the errorbars as "additional information" in the
> background.
>
> Greetings,
> Norbert
>
> PS: If sending small patches to this mailing list is a suboptimal way of
> submission, please tell me how to do it better.
>
> --
> _________________________________________Norbert Nemec
> Bernhardstr. 2 ... D-93053 Regensburg
> Tel: 0941 - 2009638 ... Mobil: 0179 - 7475199
> eMail: <Norbert@...160...>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> matplotlib-devel List Signup and Options

------------------------------------
Gary Ruben gruben@...1...
<http://users.bigpond.net.au/gazzar&gt;

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

--
_________________________________________Norbert Nemec
         Bernhardstr. 2 ... D-93053 Regensburg
     Tel: 0941 - 2009638 ... Mobil: 0179 - 7475199
           eMail: <Norbert@...160...>