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.
I also got the error
Error using COM.StatConnectorSrv_StatConnector/Init
Error: Object returned error code: 0x80040013
when I first tried this. However, I reinstalled R using the directions on this website:
Making sure that I was running R as an administrator when I typed in the install.package commands. Now it works fine.
29 Nov 2014
Functions for calling the statistical package R from within MATLAB.
This is giving me problems with R2014b. I get the following error:
Error using axes
Handles of type Legend cannot be made the current Axes.
Error in suplabel (line 87)
for k=1:length(currax), axes(currax(k));end % restore all other axes
I think it has something to do with this:
14 Nov 2014
Places text as a title, xlabel, or ylabel on a group of subplots.
Thanks for this function, very helpful!
I have a problem when saving the figure though.
I use it together with the tight_subplot function and I noticed that when I modify the positions of the labels (either x,y,or t) and save it as as figure (.fig - haven't tried other formats), it saves without the modifications, which is a bit frustrating. Do you have any idea on why this might be happening?