How to draw vertical line on axes in Matlab GUI?
===

I have a Matlab GUI with 3 axes components. Their tags are `predicted_ax`, `cost_ax` and `error_ax`. I want to draw vertical line on particular position on the first axes component (the one with tag `predicted_ax`). How do I do that?

I tried this code:

    ylim = get(handles.predicted_ax, 'ylim');
    line([linePos, linePos], ylim);

But it draws the line on different axes (the ones with tag `error_ax`)! I'm sure I did not confuse tags or axes components. In the fact another test


    ylim = get(handles.cost_ax, 'ylim');
    line([linePos, linePos], ylim);

gives exactly the same result: the line is drawn on the last axes component with tag `error_ax`. So how do I draw the line on the right axes?