Very Nice. I disabled the x-axis by remming out lines 231,250,251,274. Since I normally plot using semilogx, the x axis shifting doesn't work well as is. An option for x or y only shift would be nice. A little display showing the current value of shift would be nice too. Very usefull as is though...
Comment only
12 Jun 2009
uilineshift
function to shift a selected line (or all other outputs of the PLOT-function) in X and Y-direction
I thought is would be useful to show the difference between the current line and the original lines. This would be useful if you are trying to find a offset value for instance. If you add this after line 248 or so then the difference will display in the command window:
x_diff = s.x(1)-s.xorig(1);
y_diff = s.y(1)-s.yorig(1);
disp(['New Location Difference: x: ',num2str(x_diff), ' y: ',num2str(y_diff)])
This was a quick and dirty way to get the difference. Better yet the difference would display on the plot somehow.
Comment only
12 Jun 2009
uilineshift
function to shift a selected line (or all other outputs of the PLOT-function) in X and Y-direction
Comment only