plots data with x and/or y error bars and supports logarithmic scaling for both axes.
Author: Felix Zoergiebel
Here's a small mistake catching mechanism that can be added:
I'm using ploterr with the toggle for 'logxy' on, and I didn't realize that there were some points that would be negative with error bars, and I tried plotting them, and ploterr "did" without returning any error. I thought the plot looked a little sparse, and I couldn't figure it out until I finally noticed these tiny pixels on my graph. I'm not quite sure what they are because I haven't looked into ploterr, but it seems that feeding points where data-error<=0 (I tried 0 as well), makes ploterr plot these tiny pixels on your graph instead of the real points you wanted. They're very hard to see, and I missed them the first dozen time I look at my graph; so, it may be handy to provide some kind of error message when that happens.
Great script. Is there any way to use \bar and \tilde with it? It appears not to be possible. E.g.,
works fine but
can't interpret the string. The handle doesn't appear to have an 'Interpreter' field either.
27 Nov 2013
A framework for GUI designs with 2D plots.plot/plotyy alternativ optimized for data exploration.
Everytime I answer a support type question in the ratings section I suggest that email would be a better place to handle it, yet most people ignore this for some reason. Anyway ... to answer your question - you don't need "hold on" for doing this. Just combine your two plt statements into one. i.e. -
- Also I suggest that you should look thru some of the examples in the demo folder since nearly every one does this kind of thing. Perhaps start with pltvbar.m since it also plots error bars as you are doing.