1 | <html><head><title>showslope (Ezyfit Toolbox)</title> |
---|
2 | <!-- Help file for showslope.m generated by makehtmldoc 1.22, 02-Jul-2012 09:32:10 --> |
---|
3 | <!-- makehtmldoc (F. Moisy, 2005-2006), see http://www.fast.u-psud.fr/~moisy/ml/ --> |
---|
4 | |
---|
5 | <link rel=stylesheet href="docstyle1.css" type="text/css"> |
---|
6 | </head> |
---|
7 | <body bgcolor=#ffffff> |
---|
8 | <table width="100%" border=0 cellpadding=0 cellspacing=0><tr><td valign=baseline bgcolor="#e7ebf7"><b>EzyFit Function Reference</b></td><td valign=baseline bgcolor="#e7ebf7" align=right><a href="showresidual.html"><b><< Prev</b></a> | <a href="sw.html"><b>Next >></b></a> </td></tr></table> |
---|
9 | <font size=+3 color="#990000">showslope</font><br> |
---|
10 | Draw a line with fixed slope<br> |
---|
11 | <br> |
---|
12 | |
---|
13 | <font size=+1 color="#990000"><b>Description</b></font> |
---|
14 | <code><pre> |
---|
15 | <b>showslope</b>(N) drags a line in the current figure with a fixed slope N |
---|
16 | (does not work with docked windows; undock your window first!) |
---|
17 | |
---|
18 | Depending of the axis types, the 'slope' N means: |
---|
19 | Y = N*X+A for X linear and Y linear |
---|
20 | Y = A*X^N for X log and Y log |
---|
21 | Y = A*EXP(N*X) for X linear and Y log |
---|
22 | Y = A+N*LOG(X) for X log and Y linear (LOG = natural logarithm) |
---|
23 | |
---|
24 | The value N is displayed close to the line. N may also be the string of |
---|
25 | any valid Matlab expression (eg, 'pi', '22/7', ...), which will be |
---|
26 | displayed close to the line. <b>showslope</b>(N,'nolabel') does not display |
---|
27 | the value N in the figure. |
---|
28 | |
---|
29 | H = <b>showslope</b>(..) also returns a handle to the line. |
---|
30 | |
---|
31 | By default, the line is an 'annotation object', ie: it is attached to |
---|
32 | the window and not to the figure axes. As a consequence, the line may |
---|
33 | be further moved, or may be used for <a href="getslope.html">getslope</a>. However, resizing |
---|
34 | the window may in some case shift the line, and turning the axes from |
---|
35 | lin to log turns a power law to a log law... To avoid these problems, |
---|
36 | specify <b>showslope</b>(N,'fix'), which makes the line a real plot object |
---|
37 | attached to the figure axes. |
---|
38 | |
---|
39 | </pre> |
---|
40 | <font size=+1 color="#990000"><b>See Also</b></font> |
---|
41 | <pre> |
---|
42 | <a href="getslope.html">getslope</a>, <a href="getlineinfo.html">getlineinfo</a>, <a href="plotsample.html">plotsample</a>. |
---|
43 | |
---|
44 | Published output in the Help browser |
---|
45 | showdemo <b>showslope</b> |
---|
46 | </pre></code> |
---|
47 | |
---|
48 | <br> |
---|
49 | <table width="100%" border=0 cellspacing=0 bgcolor="#e7ebf7"><tr><td> <a href="showresidual.html"><b>Previous: showresidual</b></a></td><td align=right><a href="sw.html"><b>Next: sw</b></a> </td></tr></table><br> |
---|
50 | 2005-2012 <a href="ezyfit.html">EzyFit Toolbox 2.41</a><br> |
---|
51 | <br> |
---|
52 | </body></html> |
---|