Hi, If you have a handle to the pyqtgraph ErrorBarItem, then you can extract the error bar lengths from the opts dictionary (http://www.pyqtgraph.org/documentation/_modules/pyqtgraph/graphicsItems/ErrorBarItem.html#ErrorBarItem). You might need to do a bit of code since opts["height"] is supposed to override opts["top"] and opts["bottom"] etc.
This probably isn't helpful, but in my code base I have written a separate "plots.py" with various matplotlib routines to generate custom plot figures/files since it is simple enough, gives much more flexible/customisable plots, and bypasses limitations of pyqtgraph exports. Patrick On Monday, 7 January 2019 23:07:54 UTC+10:30, Trifon Trifonov wrote: > > > Hello, this is a duplicate question from the git hub repository: > https://github.com/pyqtgraph/pyqtgraph/issues/804 > > > After some problems I reported earlier I finally made the matplotlib > exporter to work for me. > > However, data are exported without errorbars. See screenshot: > > > in /exporters/Matplotlib.py > > one can see: > > > pl = ax.plot(x, y, marker=symbol, color=color, > linewidth=pen.width(), >> linestyle=linestyle, >> markeredgecolor=markeredgecolor, markerfacecolor=markerfacecolor, >> markersize=markersize) >> >> > > which probably needs to be changed to: > >> pl = ax.errorbar(x, y, yerr=yerr, marker=symbol, >> color=color, linewidth=pen.width(), >> linestyle=linestyle, >> markeredgecolor=markeredgecolor, >> markerfacecolor=markerfacecolor, >> markersize=markersize) >> >> > > but how do I get the yerr values within the Matplotlib.py? > > BTW, errorbars were plotted in pyqtgraph with (e.g. part of my code): > >> err1 = >> pg.ErrorBarItem(x=fit.fit_results.rv_model.jd[fit.filelist.idset==i], >> >> y=fit.fit_results.rv_model.rvs[fit.filelist.idset==i],symbol='o', >> height=error_list[fit.filelist.idset==i], beam=0.0, >> pen=colors[i]) >> >> p1.addItem(err1) >> >> > Any ideas? > > Thanks a lot! > Trifon > -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/917bc786-c61b-4020-aab1-508739b67606%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
