SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: plotter <pl...@tr...> - 2015年04月06日 15:32:16
The second example on
http://matplotlib.org/examples/pylab_examples/zorder_demo.html seems to
expose a bug, which is clearly visible in the vector version:
The blue curve with zorder=2 is plotted below the frame and all others with
zorder >= 3 are plotted above the frame. This is because the frame zorder is
hardcoded to be 2.5. This behaviour is certainly unexpected by most users.
How can one modify the mutual zorder of lines without conflicting with
standard axis elements?
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/bug-in-zorder-example-tp45342.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Benjamin R. <ben...@ou...> - 2015年05月07日 15:25:50
you can always change the zorder of the frame using set_zorder(). Are you
talking about the frame of the legend or the plotting area?
On Mon, Apr 6, 2015 at 11:23 AM, plotter <pl...@tr...> wrote:
> The second example on
> http://matplotlib.org/examples/pylab_examples/zorder_demo.html seems to
> expose a bug, which is clearly visible in the vector version:
>
> The blue curve with zorder=2 is plotted below the frame and all others with
> zorder >= 3 are plotted above the frame. This is because the frame zorder
> is
> hardcoded to be 2.5. This behaviour is certainly unexpected by most users.
> How can one modify the mutual zorder of lines without conflicting with
> standard axis elements?
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/bug-in-zorder-example-tp45342.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Thomas C. <tca...@gm...> - 2015年05月07日 15:30:54
zorder can be negative, if you want to ensure that all of your lines are
always below all of the standard axis components simple decrease the
zorder of the elements you want behind rather than increasing the zorder of
the elements you want in front.
@ben look at the top left of
http://matplotlib.org/mpl_examples/pylab_examples/zorder_demo_01.hires.png
and compare where it looks like the red and green lines are clipped.
Tom
On Thu, May 7, 2015 at 11:14 AM plotter <pl...@tr...> wrote:
> The second example on
> http://matplotlib.org/examples/pylab_examples/zorder_demo.html seems to
> expose a bug, which is clearly visible in the vector version:
>
> The blue curve with zorder=2 is plotted below the frame and all others with
> zorder >= 3 are plotted above the frame. This is because the frame zorder
> is
> hardcoded to be 2.5. This behaviour is certainly unexpected by most users.
> How can one modify the mutual zorder of lines without conflicting with
> standard axis elements?
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/bug-in-zorder-example-tp45342.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Benjamin R. <ben...@ou...> - 2015年05月07日 15:39:04
But, why is it doing that only along the top edge and not the other edges
(or are my eyes that bad)?
On Thu, May 7, 2015 at 11:30 AM, Thomas Caswell <tca...@gm...> wrote:
> zorder can be negative, if you want to ensure that all of your lines are
> always below all of the standard axis components simple decrease the
> zorder of the elements you want behind rather than increasing the zorder of
> the elements you want in front.
>
> @ben look at the top left of
> http://matplotlib.org/mpl_examples/pylab_examples/zorder_demo_01.hires.png
> and compare where it looks like the red and green lines are clipped.
>
> Tom
>
> On Thu, May 7, 2015 at 11:14 AM plotter <pl...@tr...> wrote:
>
>> The second example on
>> http://matplotlib.org/examples/pylab_examples/zorder_demo.html seems to
>> expose a bug, which is clearly visible in the vector version:
>>
>> The blue curve with zorder=2 is plotted below the frame and all others
>> with
>> zorder >= 3 are plotted above the frame. This is because the frame zorder
>> is
>> hardcoded to be 2.5. This behaviour is certainly unexpected by most users.
>> How can one modify the mutual zorder of lines without conflicting with
>> standard axis elements?
>>
>>
>>
>> --
>> View this message in context:
>> http://matplotlib.1069221.n5.nabble.com/bug-in-zorder-example-tp45342.html
>> Sent from the matplotlib - users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Thomas C. <tca...@gm...> - 2015年05月07日 15:45:49
It is doing it every where. Also look at the tick above the 2 on the
bottom it is slightly clipped.
It is definitely seems worse on the top, which might be showing a
fence-post issue in the clipping/Agg rendering.
As the OP points out zooming in on
http://matplotlib.org/mpl_examples/pylab_examples/zorder_demo_01.pdf makes
it really obvious that this is the case everywhere.
That said, I don't think that this is a 'bug' persay. We have to pick
_some_ zorder for the frame and 2.5 is is good as any other. We do have a
documentation problem as I don't know where that information is other than
in the source.
Tom
On Thu, May 7, 2015 at 11:38 AM Benjamin Root <ben...@ou...> wrote:
> But, why is it doing that only along the top edge and not the other edges
> (or are my eyes that bad)?
>
> On Thu, May 7, 2015 at 11:30 AM, Thomas Caswell <tca...@gm...>
> wrote:
>
>> zorder can be negative, if you want to ensure that all of your lines are
>> always below all of the standard axis components simple decrease the
>> zorder of the elements you want behind rather than increasing the zorder of
>> the elements you want in front.
>>
>> @ben look at the top left of
>> http://matplotlib.org/mpl_examples/pylab_examples/zorder_demo_01.hires.png
>> and compare where it looks like the red and green lines are clipped.
>>
>> Tom
>>
>> On Thu, May 7, 2015 at 11:14 AM plotter <pl...@tr...> wrote:
>>
>>> The second example on
>>> http://matplotlib.org/examples/pylab_examples/zorder_demo.html seems to
>>> expose a bug, which is clearly visible in the vector version:
>>>
>>> The blue curve with zorder=2 is plotted below the frame and all others
>>> with
>>> zorder >= 3 are plotted above the frame. This is because the frame
>>> zorder is
>>> hardcoded to be 2.5. This behaviour is certainly unexpected by most
>>> users.
>>> How can one modify the mutual zorder of lines without conflicting with
>>> standard axis elements?
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://matplotlib.1069221.n5.nabble.com/bug-in-zorder-example-tp45342.html
>>> Sent from the matplotlib - users mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /