How can I change the axes properties in GUI created by guide?
Ältere Kommentare anzeigen
Hello there
I change the Inspector setting for axes in my GUI. After running the GUI figure, the font size and the range is the same as the one I have already specified. But when I implement the GUI, the plot shows in the axes with different font size!
the following in the push-button plots the figure.
axes(handles.axes1)
plot(x, pcenergy);
pcenergy is the dataset.
Thank you in advance for your help.
Hessam
2 Kommentare
Geoff Hayes
am 7 Okt. 2014
Hessam - what do you mean by ..and the range? I created a simple GUI, set the font size through the inspector, run the GUI and plotted some data on the axes, and there were no changes to the font sizes.
If you want to reset the font size, then try adding the following line after your plot command
set(handles.axes1,'FontSize',14);
or whatever your preferred font size is.
Hessam
am 10 Okt. 2014
Antworten (2)
Sean de Wolski
am 13 Okt. 2014
0 Stimmen
Calling plot will clear some of the axes settings. You could either use hold on to hold the axes properties or instead of calling plot, call line directly.
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!