Hello, I have questions about 'plotyy'.
For example, code is like this in 'plotting_graph.m'. It is used for drawing graph.
[hAx, hLine1, hLine2] = plotyy(axis_x, (table(:, 1)/scale_value), axis_x, table_cumsum(:, 2));
And, at 'graph.m'(GUI code) I intend to enlarge the figure when I click the right button on mouse.
but when I click the right button, only one y axis is exist on the enlarged figure window.
function plot_ax1_Callback(hObject, eventdata, handles)
global plotyy_flag;
if (plotyy_flag == true)
axes1fig = figure;
axes1copy = copyobj(handles.axes1,axes1fig);
set(axes1copy,'Units','Normalized', 'Position',[.05,.2,.9,.6]);
set(axes1copy, 'FontSize', 9);
hold on;
handles.axes1fig = axes1fig;
handles.axes1copy = axes1copy;
guidata(hObject,handles);
end
how can I bring the 2 yyaxis on the new figure window? please help me.
when I use the 'guidata(hObject, handles)', it doesnt't work.