File: plotyy.xml

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (83 lines) | stat: -rw-r--r-- 3,086 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
 * Ajouter ici d'ventuels commentaires sur le fichier XML
-->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="plotyy" xml:lang="en">
  <info>
    <pubdate>$LastChangedDate: 26-05-2009 $</pubdate>
  </info>
  <refnamediv>
    <refname>plotyy</refname>
    <refpurpose>2-D line plots with y-axes on both left and right side</refpurpose>
  </refnamediv>
  <refsynopsisdiv>
    <title>Calling Sequence</title>
    <synopsis>[ax,h1,h2] = plotyy(x1,y1,x2,y2)</synopsis>
    <synopsis>[ax,h1,h2] = plotyy(x1,y1,x2,y2,fun)</synopsis>
    <synopsis>[ax,h1,h2] = plotyy(x1,y1,x2,y2,fun1,fun2)</synopsis>
  </refsynopsisdiv>
  <refsection>
    <title>Parameters</title>
    <variablelist>
      <varlistentry>
        <term>x1,y1</term>
        <listitem>
          <para>Compatible vectors or matrices</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>x2,y2</term>
        <listitem>
          <para>Compatible vectors or matrices</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>fun,fun1,fun2</term>
        <listitem>
          <para>string</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>ax</term>
        <listitem>
          <para>vector of axes handles</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>h1,h2</term>
        <listitem>
          <para>Polyline handles</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>
  <refsection>
    <title>Description</title>
    <para>[ax,h1,h2]=plotyy(x1,y1,x2,y2) plots y1 versus x1 with y axis on the left and y2 versus x2 with y axis on the right. This function uses stacked axes whose handles are given by ax(1) and ax(2). The polylines with handles h1 and h2 are respective children of ax(1) and ax(2). The third component ax(3) with default color is used to display the common x-axis and the title.</para>
      <para>The optional string fun allows to specify the plotting function. Use fun1 and fun2 if a different function is to be used for (x1,y1) and (x2,y2). The default value is "plot".</para>
    </refsection>
    <refsection>
    <title>Example</title>
<programlisting>x = 0:0.01:20;
y1 = 200*exp(-0.05*x).*sin(x);
y2 = 0.8*exp(-0.5*x).*sin(10*x);
[ax,h1,h2] = plotyy(x,y1,x,y2,'plot');
ylabel(ax(1),'Left Y-Axis');
ylabel(ax(2),'Right Y-Axis');
xlabel(ax(3),'Common X-Axis');
title(ax(3),'plotyy example');</programlisting>
    <screenshot>
      <mediaobject>
        <imageobject>
          <imagedata fileref="plotyy.png"/>
        </imageobject>
      </mediaobject>
    </screenshot>
  </refsection>
  <refsection>
    <title>Authors</title>
    <simplelist type="vert">
      <member>Stphane Mottelet</member>
    </simplelist>
  </refsection>
</refentry>