~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/eng/graphics/xsegs.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
 
3
<MAN>
 
4
  <LANGUAGE>eng</LANGUAGE>
 
5
  <TITLE>xsegs</TITLE>
 
6
  <TYPE>Scilab Function</TYPE>
 
7
  <DATE>April 1993</DATE>
 
8
  <SHORT_DESCRIPTION name="xsegs"> draw unconnected segments</SHORT_DESCRIPTION>
 
9
  <CALLING_SEQUENCE>
 
10
    <CALLING_SEQUENCE_ITEM>xsegs(xv,yv,[style])  </CALLING_SEQUENCE_ITEM>
 
11
  </CALLING_SEQUENCE>
 
12
  <PARAM>
 
13
    <PARAM_INDENT>
 
14
      <PARAM_ITEM>
 
15
        <PARAM_NAME>xv,yv</PARAM_NAME>
 
16
        <PARAM_DESCRIPTION>
 
17
          <SP>: matrices of the same size.</SP>
 
18
        </PARAM_DESCRIPTION>
 
19
      </PARAM_ITEM>
 
20
      <PARAM_ITEM>
 
21
        <PARAM_NAME>style</PARAM_NAME>
 
22
        <PARAM_DESCRIPTION>
 
23
          <SP>: vector or scalar. If <VERB>style</VERB> is a positive scalar, it gives the color to use for all segments. If <VERB>style</VERB> is a negative  scalar, then current color is used. If <VERB>style</VERB> is a vector,  then <VERB>style(i)</VERB> gives the color to use for segment <VERB>i</VERB>.</SP>
 
24
        </PARAM_DESCRIPTION>
 
25
      </PARAM_ITEM>
 
26
    </PARAM_INDENT>
 
27
  </PARAM>
 
28
  <DESCRIPTION>
 
29
    <P><VERB>xsegs</VERB> draws a set of unconnected segments given by <VERB>xv</VERB>
 
30
    and <VERB>yv</VERB>. If <VERB>xv</VERB> and <VERB>yv</VERB> are matrices 
 
31
    they are considered as vectors by concatenating their columns.
 
32
    The coordinates of the two points defining a segment
 
33
    are given by two consecutive values of <VERB>xv</VERB> and <VERB>yv</VERB>:</P>
 
34
    <P><VERB>(xv(i),yv(i))--&gt;(xv(i+1),yv(i+1))</VERB>.</P>
 
35
    <P>
 
36
    For instance, using matrices of size (2,n), the segments can be defined by:</P>
 
37
    <VERBATIM>
 
38
<![CDATA[
 
39
xv=[xi_1 xi_2 ...;
 
40
    xf_1 xf_2 ...]
 
41
 
 
42
yv=[yi_1 yi_2 ...;
 
43
    yf_1 yf_2 ...]
 
44
   ]]>
 
45
    </VERBATIM>
 
46
    <P>
 
47
    and the segments are <VERB>(xi_k,yi_k)--&gt;(xf_k,yf_k)</VERB>.</P>
 
48
  </DESCRIPTION>
 
49
  <EXAMPLE>
 
50
<![CDATA[
 
51
x=2*%pi*(0:9)/8;
 
52
xv=[sin(x);9*sin(x)];
 
53
yv=[cos(x);9*cos(x)];
 
54
plot2d([-10,10],[-10,10],[-1,-1],"022")
 
55
xsegs(xv,yv,1:10)
 
56
 ]]>
 
57
  </EXAMPLE>
 
58
  <AUTHOR>J.Ph.C.  </AUTHOR>
 
59
</MAN>