1

I am trying to plot error bar in log scale. This is what I have been trying:

ax.errorbar(s, m1, std1)
ax.set_yscale("log", nonposy = "clip")

And this is what I got:

enter image description here

Does anyone have solution for this, it seems nonposy = "clip" doesn't work in this case.

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
nguyen
  • 23
  • 3
  • What did you expect as a result? – mkrieger1 Mar 16 '20 at 14:50
  • This [post](https://stackoverflow.com/a/60132262/12046409) might be useful – JohanC Mar 16 '20 at 15:12
  • I plotted the same thing in matlab and did not have any problem, it just ignores the negative values and plot it (I use normal errorbar() code). I am wondering how matlab is doing that and there is anyway to do the same in python. – nguyen Mar 16 '20 at 15:29
  • 1
    `ax.set_yscale("symlog")` might be helpful – JohanC Mar 16 '20 at 16:46

0 Answers0