GUI plot
Hie guys, i imported an excel file into my gui and i plotted it out together with the vertical lines that i need. However, with the same code, it does not work for the other axes in the same GUI.Below are my codes,
——–first axes code———-
plot(handles.axes1,c,d);
hold on;
XData=get(get(handles.axes1,’children’),’XData’);
YData=get(get(handles.axes1,’children’),’YData’);
y_BPFO = interp1(XData,YData,BPFO);
t=get(handles.axes1,’ylim’);
plot([BPFO BPFO],t,’-y’);
———–second axes(in the same GUI)——–
plot(handles.axes2,c,d);
hold on;
XData1=get(get(handles.axes2,’children’),’XData’);
YData1=get(get(handles.axes2,’children’),’YData’);
y_BPFO1 = interp1(XData1,YData1,BPFO1);
q=get(handles.axes2,’ylim’);
plot([BPFO1 BPFO1],q,’-y’);
——————————————–
I manage to get the first plot with all the data and vertical lines.
However, i cant get the plot for the second axes. Can someone help me out?
Regards,
EanHie guys, i imported an excel file into my gui and i plotted it out together with the vertical lines that i need. However, with the same code, it does not work for the other axes in the same GUI.Below are my codes,
——–first axes code———-
plot(handles.axes1,c,d);
hold on;
XData=get(get(handles.axes1,’children’),’XData’);
YData=get(get(handles.axes1,’children’),’YData’);
y_BPFO = interp1(XData,YData,BPFO);
t=get(handles.axes1,’ylim’);
plot([BPFO BPFO],t,’-y’);
———–second axes(in the same GUI)——–
plot(handles.axes2,c,d);
hold on;
XData1=get(get(handles.axes2,’children’),’XData’);
YData1=get(get(handles.axes2,’children’),’YData’);
y_BPFO1 = interp1(XData1,YData1,BPFO1);
q=get(handles.axes2,’ylim’);
plot([BPFO1 BPFO1],q,’-y’);
——————————————–
I manage to get the first plot with all the data and vertical lines.
However, i cant get the plot for the second axes. Can someone help me out?
Regards,
Ean Hie guys, i imported an excel file into my gui and i plotted it out together with the vertical lines that i need. However, with the same code, it does not work for the other axes in the same GUI.Below are my codes,
——–first axes code———-
plot(handles.axes1,c,d);
hold on;
XData=get(get(handles.axes1,’children’),’XData’);
YData=get(get(handles.axes1,’children’),’YData’);
y_BPFO = interp1(XData,YData,BPFO);
t=get(handles.axes1,’ylim’);
plot([BPFO BPFO],t,’-y’);
———–second axes(in the same GUI)——–
plot(handles.axes2,c,d);
hold on;
XData1=get(get(handles.axes2,’children’),’XData’);
YData1=get(get(handles.axes2,’children’),’YData’);
y_BPFO1 = interp1(XData1,YData1,BPFO1);
q=get(handles.axes2,’ylim’);
plot([BPFO1 BPFO1],q,’-y’);
——————————————–
I manage to get the first plot with all the data and vertical lines.
However, i cant get the plot for the second axes. Can someone help me out?
Regards,
Ean plot MATLAB Answers — New Questions