Feed on
Posts
Comments

To adjust the relative ordering of plot items in matplotlib, use the “zorder” variable:

pl.plot(x,y,zorder=1) # plots on bottom

pl.plot(x,y,zorder=10) # plots on top


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

One Response to “bring plot items to front in matplotlib”

  1. on 19 Nov 2019 at 2:07 pm Eddy Kim

    Many thanks for sharing this wonderful content. It has definitely helped me.

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.