source: MML/trunk/machine/SOLEIL/common/toolbox/ezyfit/ezyfit/html/showslope.html @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 2.5 KB
Line 
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>&lt;&lt; Prev</b></a>&nbsp;|&nbsp;<a href="sw.html"><b>Next &gt;&gt;</b></a>&nbsp;</td></tr></table>
9<font size=+3 color="#990000">showslope</font><br>
10Draw 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 
18Depending 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 
24The value N is displayed close to the line. N may also be the string of
25any valid Matlab expression (eg, 'pi', '22/7', ...), which will be
26displayed close to the line. <b>showslope</b>(N,'nolabel') does not display
27the value N in the figure.
28 
29H = <b>showslope</b>(..) also returns a handle to the line.
30 
31By default, the line is an 'annotation object', ie: it is attached to
32the window and not to the figure axes. As a consequence, the line may
33be further moved, or may be used for <a href="getslope.html">getslope</a>. However, resizing
34the window may in some case shift the line, and turning the axes from
35lin to log turns a power law to a log law... To avoid these problems,
36specify <b>showslope</b>(N,'fix'), which makes the line a real plot object
37attached 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 
44Published 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>&nbsp;<a href="showresidual.html"><b>Previous: showresidual</b></a></td><td align=right><a href="sw.html"><b>Next: sw</b></a>&nbsp;</td></tr></table><br>
502005-2012 <a href="ezyfit.html">EzyFit Toolbox 2.41</a><br>
51<br>
52</body></html>
Note: See TracBrowser for help on using the repository browser.