How to modify the format of axises in curve fitting tool ?
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am working on curve fitting and I got a problem when I tired to modify the axis format in curve fitting tool. There seems no tools, windows or setting for axis format and I didn't find the answer in its help, too.
I want to edit the interval between tick marks, interval between lables, major unit and minor unit. And I need to reverse the values of x_axis from lower->higher to higher->lower. (Actually the data I input for x is from higher values to lower ones, but the cftool changes it into lower->higher way automatically..I don't know why.)
All these happen during my curve fitting progress. Or can I modify the format in other ways? Please help. Thank you so much.
0 Commenti
Risposta accettata
Walter Roberson
il 19 Gen 2012
You cannot directly modify the interval between tick marks, but you can set the axis XTick or YTick properties to whatever values you want the ticks to appear at.
The labels are (usually) at every tick. You can set the axis XTickLabel and YTickLabel to a cell array of strings, one string per tick mark.
I am not sure what you mean by "major unit" and "minor unit".
To reverse the order, set the axis property XDir to 'reverse' (usually 'normal')
The plot routines do not pay attention to the order of the x data you supply: they follow the XDir / YDir for ordering.
The properties of the axis can be changed through the set() command. There is no particular tool for setting them as they differ from plot to plot. There are ways to change the defaults, but in my experience those are more trouble then they are worth.
You can use the property inspector too look at the axis properties.
6 Commenti
Walter Roberson
il 19 Gen 2012
By the way, you do not need to use the property inspector to change properties; it is just convenient. If you are able to figure out the handle for the axes you are interested in, then you can use set() to apply properties to the axes.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!