summaryrefslogtreecommitdiffstats
path: root/scilab/modules
diff options
context:
space:
mode:
authormottelet <stephane.mottelet@utc.fr>2020-03-12 17:09:27 +0100
committerClément David <clement.david@esi-group.com>2021-04-02 16:32:47 +0200
commit5256d99f86cf31f1958c23b613b5187398bcd60f (patch)
treeb9787281b8e36f4d9854abe9cca33081630e5207 /scilab/modules
parent56e75ef93cee08f6b1776d0bbc28bd25289b41e9 (diff)
downloadscilab-5256d99f86cf31f1958c23b613b5187398bcd60f.zip
scilab-5256d99f86cf31f1958c23b613b5187398bcd60f.tar.gz
[graphics] better logarithmic plots
Change-Id: I1356ffe8fa3b9503bd80959ad4495ec31430cfbe
Diffstat (limited to 'scilab/modules')
-rw-r--r--scilab/modules/graphics/help/en_US/2d_plot/loglog.xml180
-rw-r--r--scilab/modules/graphics/help/en_US/2d_plot/semilogx.xml175
-rw-r--r--scilab/modules/graphics/help/en_US/2d_plot/semilogy.xml175
-rw-r--r--scilab/modules/graphics/help/ru_RU/2d_plot/loglog.xml192
-rw-r--r--scilab/modules/graphics/help/ru_RU/2d_plot/semilogx.xml186
-rw-r--r--scilab/modules/graphics/help/ru_RU/2d_plot/semilogy.xml187
-rw-r--r--scilab/modules/graphics/macros/loglog.sci45
-rw-r--r--scilab/modules/graphics/macros/semilogx.sci41
-rw-r--r--scilab/modules/graphics/macros/semilogy.sci41
-rw-r--r--scilab/modules/helptools/etc/images_md5.txt3
-rw-r--r--scilab/modules/helptools/images/loglog_1.pngbin0 -> 9624 bytes
-rw-r--r--scilab/modules/helptools/images/semilogx_1.pngbin0 -> 8792 bytes
-rw-r--r--scilab/modules/helptools/images/semilogy_1.pngbin0 -> 7833 bytes
13 files changed, 1225 insertions, 0 deletions
diff --git a/scilab/modules/graphics/help/en_US/2d_plot/loglog.xml b/scilab/modules/graphics/help/en_US/2d_plot/loglog.xml
new file mode 100644
index 0000000..5f9a640
--- /dev/null
+++ b/scilab/modules/graphics/help/en_US/2d_plot/loglog.xml
@@ -0,0 +1,180 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) INRIA - Fabrice Leray
5 * Copyright (C) 2012 - 2016 - Scilab Enterprises
6 * Copyright (C) 2018 - 2019 - Samuel GOUGEON
7 * Copyright (C) 2020 - Stéphane MOTTELET
8 *
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
15 *
16 -->
17<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
18 xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
20 xml:lang="en" xml:id="loglog">
21 <refnamediv>
22 <refname>loglog</refname>
23 <refpurpose>2D logarithmic plot</refpurpose>
24 </refnamediv>
25 <refsynopsisdiv>
26 <title>Syntax</title>
27 <synopsis>
28 loglog // demo
29 loglog(y)
30 loglog(x, y)
31 loglog(x, fun)
32 loglog(x, list(fun, param))
33 loglog(.., LineSpec)
34 loglog(.., LineSpec, GlobalProperty)
35 loglog(x1, y1, LineSpec1, x2,y2,LineSpec2,...xN, yN, LineSpecN, GlobalProperty1,.. GlobalPropertyM)
36 loglog(x1,fun1,LineSpec1, x2,y2,LineSpec2,...xN,funN,LineSpecN, GlobalProperty1, ..GlobalPropertyM)
37 loglog(axes_handle,...)
38 </synopsis>
39 </refsynopsisdiv>
40 <refsection>
41 <title>Arguments</title>
42 <variablelist>
43 <varlistentry>
44 <term>x</term>
45 <listitem>
46 <para>
47 vector or matrix of strictly positive real numbers or integers. If omitted, it is assumed
48 to be the vector <literal>1:n</literal> where <literal>n</literal> is the
49 number of curve points given by the <literal>y</literal> parameter.
50 </para>
51 </listitem>
52 </varlistentry>
53 <varlistentry>
54 <term>y</term>
55 <listitem>
56 <para>
57 vector or matrix of strictly positive real numbers or integers.
58 </para>
59 </listitem>
60 </varlistentry>
61 <varlistentry>
62 <term>fun, fun1, ..</term>
63 <listitem>
64 <para>
65 handle of a function, as in <literal>loglog(x, gamma)</literal>.
66 </para>
67 <para>
68 If the function to plot needs some parameters as input arguments, the
69 function and its parameters can be specified through a list, as in
70 <literal>loglog(x, list(delip, -0.4))</literal>
71 </para>
72 </listitem>
73 </varlistentry>
74 <varlistentry>
75 <term>LineSpec</term>
76 <listitem>
77 <para>This optional argument must be a string that will be used as a
78 shortcut to specify a way of drawing a line. We can have one
79 <literal>LineSpec</literal> per <literal>y</literal> or <literal>{x,y}</literal>
80 previously entered. <literal>LineSpec</literal> options deals with
81 LineStyle, Marker and Color specifiers (see <link linkend="LineSpec">LineSpec</link>).
82 Those specifiers determine the line style, mark style and color of
83 the plotted lines.
84 </para>
85 </listitem>
86 </varlistentry>
87 <varlistentry>
88 <term>GlobalProperty</term>
89 <listitem>
90 <para>This optional argument represents a sequence of couple
91 statements <literal>{PropertyName,PropertyValue}</literal> that defines
92 global objects' properties applied to all the curves created by this
93 plot. For a complete view of the available properties (see
94 <link linkend="GlobalProperty">GlobalProperty</link>).
95 </para>
96 </listitem>
97 </varlistentry>
98 <varlistentry>
99 <term>axes_handle</term>
100 <listitem>
101 <para>This optional argument forces the plot to appear inside the
102 selected axes given by <literal>axes_handle</literal> rather than the
103 current axes (see <link linkend="gca">gca</link>).
104 </para>
105 </listitem>
106 </varlistentry>
107 </variablelist>
108 </refsection>
109 <refsection>
110 <title>Description</title>
111 <para><literal>loglog</literal> plots data using a base 10 logarithmic scale for both x-axis and y-axis. The possible syntaxes and arguments are the same as the <link linkend="plot">plot</link> function besides the condition that values in <term>x</term> and <term>y</term> arguments be strictly positive.
112 </para>
113 <para>If the current axes is not empty and the x-axis or the y-axis has a negative lower bound then its scale will remain linear after the plot.
114 </para>
115 <para>
116 Enter the command <literal>loglog</literal> to see a demo.
117 </para>
118 </refsection>
119 <refsection>
120 <title>Examples</title>
121 <programlisting role="example"><![CDATA[
122 w=logspace(-2,2,1000);
123 s=%i*w;
124 g=[];
125 for alpha=logspace(-2,1,4);
126 g=[g;(1)./(s.^2+alpha*s+1)];
127 end
128 clf("reset")
129
130 loglog(w,abs(g));
131
132 legend(leg)
133 title("$\LARGE \left|s^2/(s^2+\alpha s+1)\right|\mbox{ for }s=i\omega$")
134 xlabel("$\LARGE \omega$") ]]></programlisting>
135 <scilab:image>
136 w=logspace(-2,2,1000);
137 s=%i*w;
138 g=[];
139 for alpha=logspace(-2,1,4);
140 g=[g;(1)./(s.^2+alpha*s+1)];
141 end
142 clf("reset")
143
144 loglog(w,abs(g));
145
146 title("$\LARGE \left|s^2/(s^2+\alpha s+1)\right|\mbox{ for }s=i\omega$")
147 xlabel("$\LARGE \omega$") </scilab:image>
148 </refsection>
149 <refsection role="see also">
150 <title>See also</title>
151 <simplelist type="inline">
152 <member>
153 <link linkend="plot">plot</link>
154 </member>
155 <member>
156 <link linkend="semilogx">semilogx</link>
157 </member>
158 <member>
159 <link linkend="semilogy">semilogy</link>
160 </member>
161 <member>
162 <link linkend="LineSpec">LineSpec</link>
163 </member>
164 <member>
165 <link linkend="GlobalProperty">GlobalProperty</link>
166 </member>
167 </simplelist>
168 </refsection>
169 <refsection role="history">
170 <title>History</title>
171 <revhistory>
172 <revision>
173 <revnumber>6.1.1</revnumber>
174 <revdescription>
175 Function loglog added.
176 </revdescription>
177 </revision>
178 </revhistory>
179 </refsection>
180</refentry>
diff --git a/scilab/modules/graphics/help/en_US/2d_plot/semilogx.xml b/scilab/modules/graphics/help/en_US/2d_plot/semilogx.xml
new file mode 100644
index 0000000..e22470b
--- /dev/null
+++ b/scilab/modules/graphics/help/en_US/2d_plot/semilogx.xml
@@ -0,0 +1,175 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) INRIA - Fabrice Leray
5 * Copyright (C) 2012 - 2016 - Scilab Enterprises
6 * Copyright (C) 2018 - 2019 - Samuel GOUGEON
7 * Copyright (C) 2020 - Stéphane MOTTELET
8 *
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
15 *
16 -->
17<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
18 xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
20 xml:lang="en" xml:id="semilogx">
21 <refnamediv>
22 <refname>semilogx</refname>
23 <refpurpose>2D semilogarithmic plot</refpurpose>
24 </refnamediv>
25 <refsynopsisdiv>
26 <title>Syntax</title>
27 <synopsis>
28 semilogx // demo
29 semilogx(y)
30 semilogx(x, y)
31 semilogx(x, fun)
32 semilogx(x, list(fun, param))
33 semilogx(.., LineSpec)
34 semilogx(.., LineSpec, GlobalProperty)
35 semilogx(x1, y1, LineSpec1, x2,y2,LineSpec2,...xN, yN, LineSpecN, GlobalProperty1,.. GlobalPropertyM)
36 semilogx(x1,fun1,LineSpec1, x2,y2,LineSpec2,...xN,funN,LineSpecN, GlobalProperty1, ..GlobalPropertyM)
37 semilogx(axes_handle,...)
38 </synopsis>
39 </refsynopsisdiv>
40 <refsection>
41 <title>Arguments</title>
42 <variablelist>
43 <varlistentry>
44 <term>x</term>
45 <listitem>
46 <para>
47 vector or matrix of strictly positive real numbers or integers. If omitted, it is assumed
48 to be the vector <literal>1:n</literal> where <literal>n</literal> is the
49 number of curve points given by the <literal>y</literal> parameter.
50 </para>
51 </listitem>
52 </varlistentry>
53 <varlistentry>
54 <term>y</term>
55 <listitem>
56 <para>
57 vector or matrix of real numbers or of integers.
58 </para>
59 </listitem>
60 </varlistentry>
61 <varlistentry>
62 <term>fun, fun1, ..</term>
63 <listitem>
64 <para>
65 handle of a function, as in <literal>semilogx(x, sin)</literal>.
66 </para>
67 <para>
68 If the function to plot needs some parameters as input arguments, the
69 function and its parameters can be specified through a list, as in
70 <literal>semilogx(x, list(delip, -0.4))</literal>
71 </para>
72 </listitem>
73 </varlistentry>
74 <varlistentry>
75 <term>LineSpec</term>
76 <listitem>
77 <para>This optional argument must be a string that will be used as a
78 shortcut to specify a way of drawing a line. We can have one
79 <literal>LineSpec</literal> per <literal>y</literal> or <literal>{x,y}</literal>
80 previously entered. <literal>LineSpec</literal> options deals with
81 LineStyle, Marker and Color specifiers (see <link linkend="LineSpec">LineSpec</link>).
82 Those specifiers determine the line style, mark style and color of
83 the plotted lines.
84 </para>
85 </listitem>
86 </varlistentry>
87 <varlistentry>
88 <term>GlobalProperty</term>
89 <listitem>
90 <para>This optional argument represents a sequence of couple
91 statements <literal>{PropertyName,PropertyValue}</literal> that defines
92 global objects' properties applied to all the curves created by this
93 plot. For a complete view of the available properties (see
94 <link linkend="GlobalProperty">GlobalProperty</link>).
95 </para>
96 </listitem>
97 </varlistentry>
98 <varlistentry>
99 <term>axes_handle</term>
100 <listitem>
101 <para>This optional argument forces the plot to appear inside the
102 selected axes given by <literal>axes_handle</literal> rather than the
103 current axes (see <link linkend="gca">gca</link>).
104 </para>
105 </listitem>
106 </varlistentry>
107 </variablelist>
108 </refsection>
109 <refsection>
110 <title>Description</title>
111 <para><literal>semilogx</literal> plots data using a base 10 logarithmic scale for the x-axis and a normal (linear) scale for the y-axis. The possible syntaxes and arguments are the same as the <link linkend="plot">plot</link> function besides the condition that the abscisae values in <term>x</term> argument be strictly positive.
112 </para>
113 <para>If the current axes is not empty and the the x-axis has a negative lower bound then its scale will remain linear after the plot.
114 </para>
115 <para>
116 Enter the command <literal>semilogx</literal> to see a demo.
117 </para>
118 </refsection>
119 <refsection>
120 <title>Examples</title>
121 <programlisting role="example"><![CDATA[
122 w=logspace(-2,2,1000);
123 s=%i*w;
124 g=1../(s.^2+s+1);
125 clf("reset")
126
127 semilogx(w,abs(g));
128
129 title("$\LARGE \left|1/(s^2+s+1)\right|\mbox{ for }s=i\omega$")
130 xlabel("$\LARGE \omega$")
131 ]]></programlisting>
132 <scilab:image>
133 w=logspace(-2,2,1000);
134 s=%i*w;
135 g=1../(s.^2+s+1);
136 clf("reset")
137
138 semilogx(w,abs(g));
139
140 title("$\LARGE \left|1/(s^2+s+1)\right|\mbox{ for }s=i\omega$")
141 xlabel("$\LARGE \omega$")
142 </scilab:image>
143 </refsection>
144 <refsection role="see also">
145 <title>See also</title>
146 <simplelist type="inline">
147 <member>
148 <link linkend="plot">plot</link>
149 </member>
150 <member>
151 <link linkend="semilogy">semilogy</link>
152 </member>
153 <member>
154 <link linkend="loglog">loglog</link>
155 </member>
156 <member>
157 <link linkend="LineSpec">LineSpec</link>
158 </member>
159 <member>
160 <link linkend="GlobalProperty">GlobalProperty</link>
161 </member>
162 </simplelist>
163 </refsection>
164 <refsection role="history">
165 <title>History</title>
166 <revhistory>
167 <revision>
168 <revnumber>6.1.1</revnumber>
169 <revdescription>
170 Function semilogx added.
171 </revdescription>
172 </revision>
173 </revhistory>
174 </refsection>
175</refentry>
diff --git a/scilab/modules/graphics/help/en_US/2d_plot/semilogy.xml b/scilab/modules/graphics/help/en_US/2d_plot/semilogy.xml
new file mode 100644
index 0000000..8a75808
--- /dev/null
+++ b/scilab/modules/graphics/help/en_US/2d_plot/semilogy.xml
@@ -0,0 +1,175 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) INRIA - Fabrice Leray
5 * Copyright (C) 2012 - 2016 - Scilab Enterprises
6 * Copyright (C) 2018 - 2019 - Samuel GOUGEON
7 * Copyright (C) 2020 - Stéphane MOTTELET
8 *
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
15 *
16 -->
17<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
18 xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
20 xml:lang="en" xml:id="semilogy">
21 <refnamediv>
22 <refname>semilogy</refname>
23 <refpurpose>2D semilogarithmic plot</refpurpose>
24 </refnamediv>
25 <refsynopsisdiv>
26 <title>Syntax</title>
27 <synopsis>
28 semilogy // demo
29 semilogy(y)
30 semilogy(x, y)
31 semilogy(x, fun)
32 semilogy(x, list(fun, param))
33 semilogy(.., LineSpec)
34 semilogy(.., LineSpec, GlobalProperty)
35 semilogy(x1, y1, LineSpec1, x2,y2,LineSpec2,...xN, yN, LineSpecN, GlobalProperty1,.. GlobalPropertyM)
36 semilogy(x1,fun1,LineSpec1, x2,y2,LineSpec2,...xN,funN,LineSpecN, GlobalProperty1, ..GlobalPropertyM)
37 semilogy(axes_handle,...)
38 </synopsis>
39 </refsynopsisdiv>
40 <refsection>
41 <title>Arguments</title>
42 <variablelist>
43 <varlistentry>
44 <term>x</term>
45 <listitem>
46 <para>
47 vector or matrix of real numbers or integers. If omitted, it is assumed
48 to be the vector <literal>1:n</literal> where <literal>n</literal> is the
49 number of curve points given by the <literal>y</literal> parameter.
50 </para>
51 </listitem>
52 </varlistentry>
53 <varlistentry>
54 <term>y</term>
55 <listitem>
56 <para>
57 vector or matrix of strictly positive real numbers or integers.
58 </para>
59 </listitem>
60 </varlistentry>
61 <varlistentry>
62 <term>fun, fun1, ..</term>
63 <listitem>
64 <para>
65 handle of a function, as in <literal>semilogy(x, gamma)</literal>.
66 </para>
67 <para>
68 If the function to plot needs some parameters as input arguments, the
69 function and its parameters can be specified through a list, as in
70 <literal>semilogy(x, list(delip, -0.4))</literal>
71 </para>
72 </listitem>
73 </varlistentry>
74 <varlistentry>
75 <term>LineSpec</term>
76 <listitem>
77 <para>This optional argument must be a string that will be used as a
78 shortcut to specify a way of drawing a line. We can have one
79 <literal>LineSpec</literal> per <literal>y</literal> or <literal>{x,y}</literal>
80 previously entered. <literal>LineSpec</literal> options deals with
81 LineStyle, Marker and Color specifiers (see <link linkend="LineSpec">LineSpec</link>).
82 Those specifiers determine the line style, mark style and color of
83 the plotted lines.
84 </para>
85 </listitem>
86 </varlistentry>
87 <varlistentry>
88 <term>GlobalProperty</term>
89 <listitem>
90 <para>This optional argument represents a sequence of couple
91 statements <literal>{PropertyName,PropertyValue}</literal> that defines
92 global objects' properties applied to all the curves created by this
93 plot. For a complete view of the available properties (see
94 <link linkend="GlobalProperty">GlobalProperty</link>).
95 </para>
96 </listitem>
97 </varlistentry>
98 <varlistentry>
99 <term>axes_handle</term>
100 <listitem>
101 <para>This optional argument forces the plot to appear inside the
102 selected axes given by <literal>axes_handle</literal> rather than the
103 current axes (see <link linkend="gca">gca</link>).
104 </para>
105 </listitem>
106 </varlistentry>
107 </variablelist>
108 </refsection>
109 <refsection>
110 <title>Description</title>
111 <para><literal>semilogy</literal> plots data using a base 10 logarithmic scale for the y-axis and a normal (linear) scale for the x-axis. The possible syntaxes and arguments are the same as the <link linkend="plot">plot</link> function besides the condition that the ordinate values in <term>y</term> argument be strictly positive.
112 </para>
113 <para>If the current axes is not empty and the y-axis has a negative lower bound then its scale will remain linear after the plot.
114 </para>
115 <para>
116 Enter the command <literal>loglog</literal> to see a demo.
117 </para>
118 </refsection>
119 <refsection>
120 <title>Examples</title>
121 <programlisting role="example"><![CDATA[
122 w=logspace(-2,2,1000);
123 s=%i*w;
124 g=1../(s.^2+s+1);
125 clf("reset")
126
127 semilogy(w,abs(g));
128
129 title("$\LARGE \left|1/(s^2+s+1)\right|\mbox{ for }s=i\omega$")
130 xlabel("$\LARGE \omega$")
131 ]]></programlisting>
132 <scilab:image>
133 w=logspace(-2,2,1000);
134 s=%i*w;
135 g=1../(s.^2+s+1);
136 clf("reset")
137
138 semilogy(w,abs(g));
139
140 title("$\LARGE \left|1/(s^2+s+1)\right|\mbox{ for }s=i\omega$")
141 xlabel("$\LARGE \omega$")
142 </scilab:image>
143 </refsection>
144 <refsection role="see also">
145 <title>See also</title>
146 <simplelist type="inline">
147 <member>
148 <link linkend="plot">plot</link>
149 </member>
150 <member>
151 <link linkend="semilogx">semilogx</link>
152 </member>
153 <member>
154 <link linkend="loglog">loglog</link>
155 </member>
156 <member>
157 <link linkend="LineSpec">LineSpec</link>
158 </member>
159 <member>
160 <link linkend="GlobalProperty">GlobalProperty</link>
161 </member>
162 </simplelist>
163 </refsection>
164 <refsection role="history">
165 <title>History</title>
166 <revhistory>
167 <revision>
168 <revnumber>6.1.1</revnumber>
169 <revdescription>
170 Function semilogy added.
171 </revdescription>
172 </revision>
173 </revhistory>
174 </refsection>
175</refentry>
diff --git a/scilab/modules/graphics/help/ru_RU/2d_plot/loglog.xml b/scilab/modules/graphics/help/ru_RU/2d_plot/loglog.xml
new file mode 100644
index 0000000..08557c6
--- /dev/null
+++ b/scilab/modules/graphics/help/ru_RU/2d_plot/loglog.xml
@@ -0,0 +1,192 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) INRIA - Fabrice Leray
5 * Copyright (C) 2012 - 2016 - Scilab Enterprises
6 * Copyright (C) 2018 - 2019 - Samuel GOUGEON
7 * Copyright (C) 2020 - Stéphane MOTTELET
8 *
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
15 *
16 -->
17<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
18 xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
20 xml:lang="ru" xml:id="loglog">
21 <refnamediv>
22 <refname>loglog</refname>
23 <refpurpose>двумерный график в логарифмическом масштабе</refpurpose>
24 </refnamediv>
25 <refsynopsisdiv>
26 <title>Синтаксис</title>
27 <synopsis>
28 loglog // пример
29 loglog(y)
30 loglog(x, y)
31 loglog(x, fun)
32 loglog(x, list(fun, param))
33 loglog(.., LineSpec)
34 loglog(.., LineSpec, GlobalProperty)
35 loglog(x1, y1, LineSpec1, x2,y2,LineSpec2,...xN, yN, LineSpecN, GlobalProperty1,.. GlobalPropertyM)
36 loglog(x1,fun1,LineSpec1, x2,y2,LineSpec2,...xN,funN,LineSpecN, GlobalProperty1, ..GlobalPropertyM)
37 loglog(axes_handle,...)
38 </synopsis>
39 </refsynopsisdiv>
40 <refsection>
41 <title>Аргументы</title>
42 <variablelist>
43 <varlistentry>
44 <term>x</term>
45 <listitem>
46 <para>
47 вектор или матрица строго положительных вещественных чисел или целых
48 чисел. Если не указано, то предполагается, что это вектор
49 <literal>1:n</literal>, где <literal>n</literal> - это число точек
50 кривой, указанных в параметре <literal>y</literal>.
51 </para>
52 </listitem>
53 </varlistentry>
54 <varlistentry>
55 <term>y</term>
56 <listitem>
57 <para>
58 вектор или матрица строго положительных вещественных чисел или целых
59 чисел.
60 </para>
61 </listitem>
62 </varlistentry>
63 <varlistentry>
64 <term>fun, fun1, ..</term>
65 <listitem>
66 <para>
67 указатель функции, как, например, <literal>loglog(x, gamma)</literal>.
68 </para>
69 <para>
70 Если функции для построения нужны некоторые параметры в качестве входных
71 аргументов, то функция и её параметры могут быть определены через список,
72 как например, <literal>loglog(x, list(delip, -0.4))</literal>.
73 </para>
74 </listitem>
75 </varlistentry>
76 <varlistentry>
77 <term>LineSpec</term>
78 <listitem>
79 <para>
80 Этот необязательный аргумент должен быть строковым, который будет
81 использоваться в качестве сокращения способа построения линии. Мы можем
82 иметь один аргумент <literal>LineSpec</literal> на <literal>y</literal>
83 или <literal>{x,y}</literal> ранее введённые. Опции
84 <literal>LineSpec</literal> работают с указателями
85 <literal>LineStyle</literal>, <literal>Marker</literal> и
86 <literal>Color</literal> (см. <link linkend="LineSpec">LineSpec</link>).
87 Эти указатели определяют стиль линии, стиль маркера и цвет линий графика.
88 </para>
89 </listitem>
90 </varlistentry>
91 <varlistentry>
92 <term>GlobalProperty</term>
93 <listitem>
94 <para>
95 Этот необязательный аргумент представляет последовательность пар
96 операторов <literal>{PropertyName,PropertyValue}</literal>, которая
97 определяет глобальные свойства объектов, применяемые ко всем кривым,
98 созданным этим графиком. Полный обозор доступных свойств смотрите в
99 <link linkend="GlobalProperty">GlobalProperty</link>.
100 </para>
101 </listitem>
102 </varlistentry>
103 <varlistentry>
104 <term>axes_handle</term>
105 <listitem>
106 <para>
107 Этот необязательный аргумент заставляет график строиться внутри выбранных
108 осей указанных с помощью <literal>axes_handle</literal>, а не в текущих
109 осях (см. <link linkend="gca">gca</link>).
110 </para>
111 </listitem>
112 </varlistentry>
113 </variablelist>
114 </refsection>
115 <refsection>
116 <title>Описание</title>
117 <para>
118 <literal>loglog</literal> строит данные, используя логарифмическую шкалу по основанию
119 10 как по оси x, так и по оси y. Возможные синтаксисы и аргументы те же, что и у
120 функции <link linkend="plot">plot</link> при условии, что значения в агрументах
121 <term>x</term> и <term>y</term> будут строго положительными.
122 </para>
123 <para>
124 Если текущие оси не пусты и ось x или ось y имеют нижнюю отрицательную границу
125 диапазона, то масштаб графика останется линейным после построения.
126 </para>
127 <para>
128 Введите команду <literal>loglog</literal>, чтобы увидеть пример.
129 </para>
130 </refsection>
131 <refsection>
132 <title>Примеры</title>
133 <programlisting role="example"><![CDATA[
134 w=logspace(-2,2,1000);
135 s=%i*w;
136 g=[];
137 for alpha=logspace(-2,1,4);
138 g=[g;(1)./(s.^2+alpha*s+1)];
139 end
140 clf("reset")
141
142 loglog(w,abs(g));
143
144 legend(leg)
145 title("$\LARGE \left|s^2/(s^2+\alpha s+1)\right|\mbox{ for }s=i\omega$")
146 xlabel("$\LARGE \omega$") ]]></programlisting>
147 <scilab:image>
148 w=logspace(-2,2,1000);
149 s=%i*w;
150 g=[];
151 for alpha=logspace(-2,1,4);
152 g=[g;(1)./(s.^2+alpha*s+1)];
153 end
154 clf("reset")
155
156 loglog(w,abs(g));
157
158 title("$\LARGE \left|s^2/(s^2+\alpha s+1)\right|\mbox{ for }s=i\omega$")
159 xlabel("$\LARGE \omega$") </scilab:image>
160 </refsection>
161 <refsection role="see also">
162 <title>Смотрите также</title>
163 <simplelist type="inline">
164 <member>
165 <link linkend="plot">plot</link>
166 </member>
167 <member>
168 <link linkend="semilogx">semilogx</link>
169 </member>
170 <member>
171 <link linkend="semilogy">semilogy</link>
172 </member>
173 <member>
174 <link linkend="LineSpec">LineSpec</link>
175 </member>
176 <member>
177 <link linkend="GlobalProperty">GlobalProperty</link>
178 </member>
179 </simplelist>
180 </refsection>
181 <refsection role="history">
182 <title>История</title>
183 <revhistory>
184 <revision>
185 <revnumber>6.1.1</revnumber>
186 <revdescription>
187 Добавлена функция loglog.
188 </revdescription>
189 </revision>
190 </revhistory>
191 </refsection>
192</refentry>
diff --git a/scilab/modules/graphics/help/ru_RU/2d_plot/semilogx.xml b/scilab/modules/graphics/help/ru_RU/2d_plot/semilogx.xml
new file mode 100644
index 0000000..cb9be21
--- /dev/null
+++ b/scilab/modules/graphics/help/ru_RU/2d_plot/semilogx.xml
@@ -0,0 +1,186 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) INRIA - Fabrice Leray
5 * Copyright (C) 2012 - 2016 - Scilab Enterprises
6 * Copyright (C) 2018 - 2019 - Samuel GOUGEON
7 * Copyright (C) 2020 - Stéphane MOTTELET
8 *
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
15 *
16 -->
17<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
18 xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
20 xml:lang="ru" xml:id="semilogx">
21 <refnamediv>
22 <refname>semilogx</refname>
23 <refpurpose>двумерный полулогарифмический график</refpurpose>
24 </refnamediv>
25 <refsynopsisdiv>
26 <title>Синтаксис</title>
27 <synopsis>
28 semilogx // пример
29 semilogx(y)
30 semilogx(x, y)
31 semilogx(x, fun)
32 semilogx(x, list(fun, param))
33 semilogx(.., LineSpec)
34 semilogx(.., LineSpec, GlobalProperty)
35 semilogx(x1, y1, LineSpec1, x2,y2,LineSpec2,...xN, yN, LineSpecN, GlobalProperty1,.. GlobalPropertyM)
36 semilogx(x1,fun1,LineSpec1, x2,y2,LineSpec2,...xN,funN,LineSpecN, GlobalProperty1, ..GlobalPropertyM)
37 semilogx(axes_handle,...)
38 </synopsis>
39 </refsynopsisdiv>
40 <refsection>
41 <title>Аргументы</title>
42 <variablelist>
43 <varlistentry>
44 <term>x</term>
45 <listitem>
46 <para>
47 вектор или матрица строго положительных вещественных чисел или целых
48 чисел. Если не указано, то предполагается, что это вектор
49 <literal>1:n</literal>, где <literal>n</literal> - это число точек
50 кривой, указанных в параметре <literal>y</literal>.
51 </para>
52 </listitem>
53 </varlistentry>
54 <varlistentry>
55 <term>y</term>
56 <listitem>
57 <para>
58 вектор или матрица строго положительных вещественных чисел или целых чисел.
59 </para>
60 </listitem>
61 </varlistentry>
62 <varlistentry>
63 <term>fun, fun1, ..</term>
64 <listitem>
65 <para>
66 указатель функции, как, например, <literal>semilogx(x, sin)</literal>.
67 </para>
68 <para>
69 Если функции для построения нужны некоторые параметры в качестве входных
70 аргументов, то функция и её параметры могут быть определены через список,
71 как например, <literal>semilogx(x, list(delip, -0.4))</literal>.
72 </para>
73 </listitem>
74 </varlistentry>
75 <varlistentry>
76 <term>LineSpec</term>
77 <listitem>
78 <para>
79 Этот необязательный аргумент должен быть строковым, который будет
80 использоваться в качестве сокращения способа построения линии. Мы можем
81 иметь один аргумент <literal>LineSpec</literal> на <literal>y</literal>
82 или <literal>{x,y}</literal> ранее введённые. Опции
83 <literal>LineSpec</literal> работают с указателями
84 <literal>LineStyle</literal>, <literal>Marker</literal> и
85 <literal>Color</literal> (см. <link linkend="LineSpec">LineSpec</link>).
86 Эти указатели определяют стиль линии, стиль маркера и цвет линий графика.
87 </para>
88 </listitem>
89 </varlistentry>
90 <varlistentry>
91 <term>GlobalProperty</term>
92 <listitem>
93 <para>
94 Этот необязательный аргумент представляет последовательность пар
95 операторов <literal>{PropertyName,PropertyValue}</literal>, которая
96 определяет глобальные свойства объектов, применяемые ко всем кривым,
97 созданным этим графиком. Полный обозор доступных свойств смотрите в
98 <link linkend="GlobalProperty">GlobalProperty</link>.
99 </para>
100 </listitem>
101 </varlistentry>
102 <varlistentry>
103 <term>axes_handle</term>
104 <listitem>
105 <para>
106 Этот необязательный аргумент заставляет график строиться внутри выбранных
107 осей указанных с помощью <literal>axes_handle</literal>, а не в текущих
108 осях (см. <link linkend="gca">gca</link>).
109 </para>
110 </listitem>
111 </varlistentry>
112 </variablelist>
113 </refsection>
114 <refsection>
115 <title>Описание</title>
116 <para>
117 <literal>semilogx</literal> строит данные, используя логарифмическую шкалу по
118 основанию 10 по оси x и нормальную (линейную) шкалу по оси y. Возможные синтаксисы и
119 аргументы те же, что и у функции <link linkend="plot">plot</link> при условии, что
120 значения абсциссы в агрументе <term>x</term> будут строго положительными.
121 </para>
122 <para>
123 Если текущие оси не пусты и ось x имеет нижнюю отрицательную границу
124 диапазона, то масштаб графика останется линейным после построения.
125 </para>
126 <para>
127 Введите команду <literal>semilogx</literal>, чтобы увидеть пример.
128 </para>
129 </refsection>
130 <refsection>
131 <title>Примеры</title>
132 <programlisting role="example"><![CDATA[
133 w=logspace(-2,2,1000);
134 s=%i*w;
135 g=1../(s.^2+s+1);
136 clf("reset")
137
138 semilogx(w,abs(g));
139
140 title("$\LARGE \left|1/(s^2+s+1)\right|\mbox{ for }s=i\omega$")
141 xlabel("$\LARGE \omega$")
142 ]]></programlisting>
143 <scilab:image>
144 w=logspace(-2,2,1000);
145 s=%i*w;
146 g=1../(s.^2+s+1);
147 clf("reset")
148
149 semilogx(w,abs(g));
150
151 title("$\LARGE \left|1/(s^2+s+1)\right|\mbox{ for }s=i\omega$")
152 xlabel("$\LARGE \omega$")
153 </scilab:image>
154 </refsection>
155 <refsection role="see also">
156 <title>Смотрите также</title>
157 <simplelist type="inline">
158 <member>
159 <link linkend="plot">plot</link>
160 </member>
161 <member>
162 <link linkend="semilogy">semilogy</link>
163 </member>
164 <member>
165 <link linkend="loglog">loglog</link>
166 </member>
167 <member>
168 <link linkend="LineSpec">LineSpec</link>
169 </member>
170 <member>
171 <link linkend="GlobalProperty">GlobalProperty</link>
172 </member>
173 </simplelist>
174 </refsection>
175 <refsection role="history">
176 <title>История</title>
177 <revhistory>
178 <revision>
179 <revnumber>6.1.1</revnumber>
180 <revdescription>
181 Добавлена функция semilogx.
182 </revdescription>
183 </revision>
184 </revhistory>
185 </refsection>
186</refentry>
diff --git a/scilab/modules/graphics/help/ru_RU/2d_plot/semilogy.xml b/scilab/modules/graphics/help/ru_RU/2d_plot/semilogy.xml
new file mode 100644
index 0000000..c6b1e16
--- /dev/null
+++ b/scilab/modules/graphics/help/ru_RU/2d_plot/semilogy.xml
@@ -0,0 +1,187 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) INRIA - Fabrice Leray
5 * Copyright (C) 2012 - 2016 - Scilab Enterprises
6 * Copyright (C) 2018 - 2019 - Samuel GOUGEON
7 * Copyright (C) 2020 - Stéphane MOTTELET
8 *
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
15 *
16 -->
17<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
18 xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
20 xml:lang="ru" xml:id="semilogy">
21 <refnamediv>
22 <refname>semilogy</refname>
23 <refpurpose>2D semilogarithmic plot</refpurpose>
24 </refnamediv>
25 <refsynopsisdiv>
26 <title>Синтаксис</title>
27 <synopsis>
28 semilogy // demo
29 semilogy(y)
30 semilogy(x, y)
31 semilogy(x, fun)
32 semilogy(x, list(fun, param))
33 semilogy(.., LineSpec)
34 semilogy(.., LineSpec, GlobalProperty)
35 semilogy(x1, y1, LineSpec1, x2,y2,LineSpec2,...xN, yN, LineSpecN, GlobalProperty1,.. GlobalPropertyM)
36 semilogy(x1,fun1,LineSpec1, x2,y2,LineSpec2,...xN,funN,LineSpecN, GlobalProperty1, ..GlobalPropertyM)
37 semilogy(axes_handle,...)
38 </synopsis>
39 </refsynopsisdiv>
40 <refsection>
41 <title>Аргументы</title>
42 <variablelist>
43 <varlistentry>
44 <term>x</term>
45 <listitem>
46 <para>
47 вектор или матрица строго положительных вещественных чисел или целых
48 чисел. Если не указано, то предполагается, что это вектор
49 <literal>1:n</literal>, где <literal>n</literal> - это число точек
50 кривой, указанных в параметре <literal>y</literal>.
51 </para>
52 </listitem>
53 </varlistentry>
54 <varlistentry>
55 <term>y</term>
56 <listitem>
57 <para>
58 вектор или матрица строго положительных вещественных чисел или целых
59 чисел.
60 </para>
61 </listitem>
62 </varlistentry>
63 <varlistentry>
64 <term>fun, fun1, ..</term>
65 <listitem>
66 <para>
67 указатель функции, как, например, <literal>semilogy(x, gamma)</literal>.
68 </para>
69 <para>
70 Если функции для построения нужны некоторые параметры в качестве входных
71 аргументов, то функция и её параметры могут быть определены через список,
72 как например, <literal>semilogy(x, list(delip, -0.4))</literal>
73 </para>
74 </listitem>
75 </varlistentry>
76 <varlistentry>
77 <term>LineSpec</term>
78 <listitem>
79 <para>
80 Этот необязательный аргумент должен быть строковым, который будет
81 использоваться в качестве сокращения способа построения линии. Мы можем
82 иметь один аргумент <literal>LineSpec</literal> на <literal>y</literal>
83 или <literal>{x,y}</literal> ранее введённые. Опции
84 <literal>LineSpec</literal> работают с указателями
85 <literal>LineStyle</literal>, <literal>Marker</literal> и
86 <literal>Color</literal> (см. <link linkend="LineSpec">LineSpec</link>).
87 Эти указатели определяют стиль линии, стиль маркера и цвет линий графика.
88 </para>
89 </listitem>
90 </varlistentry>
91 <varlistentry>
92 <term>GlobalProperty</term>
93 <listitem>
94 <para>
95 Этот необязательный аргумент представляет последовательность пар
96 операторов <literal>{PropertyName,PropertyValue}</literal>, которая
97 определяет глобальные свойства объектов, применяемые ко всем кривым,
98 созданным этим графиком. Полный обозор доступных свойств смотрите в
99 <link linkend="GlobalProperty">GlobalProperty</link>.
100 </para>
101 </listitem>
102 </varlistentry>
103 <varlistentry>
104 <term>axes_handle</term>
105 <listitem>
106 <para>
107 Этот необязательный аргумент заставляет график строиться внутри выбранных
108 осей указанных с помощью <literal>axes_handle</literal>, а не в текущих
109 осях (см. <link linkend="gca">gca</link>).
110 </para>
111 </listitem>
112 </varlistentry>
113 </variablelist>
114 </refsection>
115 <refsection>
116 <title>Описание</title>
117 <para>
118 <literal>semilogy</literal> строит данные, используя логарифмическую шкалу по
119 основанию 10 по оси y и нормальную (линейную) шкалу по оси x. Возможные синтаксисы и
120 аргументы те же, что и у функции <link linkend="plot">plot</link> при условии, что
121 значения ординаты в агрументе <term>y</term> будут строго положительными.
122 </para>
123 <para>
124 Если текущие оси не пусты и ось y имеет нижнюю отрицательную границу
125 диапазона, то масштаб графика останется линейным после построения.
126 </para>
127 <para>
128 Введите команду <literal>semilogy</literal>, чтобы увидеть пример.
129 </para>
130 </refsection>
131 <refsection>
132 <title>Примеры</title>
133 <programlisting role="example"><![CDATA[
134 w=logspace(-2,2,1000);
135 s=%i*w;
136 g=1../(s.^2+s+1);
137 clf("reset")
138
139 semilogy(w,abs(g));
140
141 title("$\LARGE \left|1/(s^2+s+1)\right|\mbox{ for }s=i\omega$")
142 xlabel("$\LARGE \omega$")
143 ]]></programlisting>
144 <scilab:image>
145 w=logspace(-2,2,1000);
146 s=%i*w;
147 g=1../(s.^2+s+1);
148 clf("reset")
149
150 semilogy(w,abs(g));
151
152 title("$\LARGE \left|1/(s^2+s+1)\right|\mbox{ for }s=i\omega$")
153 xlabel("$\LARGE \omega$")
154 </scilab:image>
155 </refsection>
156 <refsection role="see also">
157 <title>Смотрите также</title>
158 <simplelist type="inline">
159 <member>
160 <link linkend="plot">plot</link>
161 </member>
162 <member>
163 <link linkend="semilogx">semilogx</link>
164 </member>
165 <member>
166 <link linkend="loglog">loglog</link>
167 </member>
168 <member>
169 <link linkend="LineSpec">LineSpec</link>
170 </member>
171 <member>
172 <link linkend="GlobalProperty">GlobalProperty</link>
173 </member>
174 </simplelist>
175 </refsection>
176 <refsection role="history">
177 <title>История</title>
178 <revhistory>
179 <revision>
180 <revnumber>6.1.1</revnumber>
181 <revdescription>
182 Добавлена функция semilogy.
183 </revdescription>
184 </revision>
185 </revhistory>
186 </refsection>
187</refentry>
diff --git a/scilab/modules/graphics/macros/loglog.sci b/scilab/modules/graphics/macros/loglog.sci
new file mode 100644
index 0000000..ec805c0
--- /dev/null
+++ b/scilab/modules/graphics/macros/loglog.sci
@@ -0,0 +1,45 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2020 - Stéphane MOTTELET
3//
4// This file is hereby licensed under the terms of the GNU GPL v2.0,
5// For more information, see the COPYING file which you should have received
6// along with this program.
7
8function loglog(varargin)
9 [lhs,rhs]=argn(0);
10
11 if ~rhs
12 w=logspace(-2,2,1000);
13 s=%i*w;
14 g=[];
15 leg=[];
16 for alpha=logspace(-2,1,4);
17 g=[g;(1)./(s.^2+alpha*s+1)];
18 end
19 clf("reset")
20
21 loglog(w,abs(g));
22
23 title("$\LARGE \left|s^2/(s^2+\alpha s+1)\right|\mbox{ for }s=i\omega$")
24 xlabel("$\LARGE \omega$")
25 return
26 end
27
28 current_figure = gcf();
29 cur_draw_mode = current_figure.immediate_drawing;
30 current_figure.immediate_drawing = "off";
31
32 ok = isempty(gca().children) || and(gca().data_bounds([1 3]) > 0);
33 set(gca(),"log_flags","nn")
34 try
35 plot(varargin(:))
36 if ok
37 set(gca(),"log_flags","ll")
38 end
39 catch
40 current_figure.immediate_drawing = cur_draw_mode;
41 error(lasterror(%t))
42 end
43
44 current_figure.immediate_drawing = cur_draw_mode;
45endfunction
diff --git a/scilab/modules/graphics/macros/semilogx.sci b/scilab/modules/graphics/macros/semilogx.sci
new file mode 100644
index 0000000..0edffa3
--- /dev/null
+++ b/scilab/modules/graphics/macros/semilogx.sci
@@ -0,0 +1,41 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2020 - Stéphane MOTTELET
3//
4// This file is hereby licensed under the terms of the GNU GPL v2.0,
5// For more information, see the COPYING file which you should have received
6// along with this program.
7
8function semilogx(varargin)
9 [lhs,rhs]=argn(0);
10
11 if ~rhs
12 w=logspace(-2,2,1000);
13 s=%i*w;
14 g=1../(s.^2+s+1);
15 clf("reset")
16
17 semilogx(w,abs(g));
18
19 title("$\LARGE \left|1/(s^2+s+1)\right|\mbox{ for }s=i\omega$")
20 xlabel("$\LARGE \omega$")
21 return
22 end
23
24 current_figure = gcf();
25 cur_draw_mode = current_figure.immediate_drawing;
26 current_figure.immediate_drawing = "off";
27
28 ok = isempty(gca().children) || gca().data_bounds(1) > 0;
29 set(gca(),"log_flags","nn")
30 try
31 plot(varargin(:))
32 if ok
33 set(gca(),"log_flags","ln")
34 end
35 catch
36 current_figure.immediate_drawing = cur_draw_mode;
37 error(lasterror(%t))
38 end
39 current_figure.immediate_drawing = cur_draw_mode;
40
41endfunction
diff --git a/scilab/modules/graphics/macros/semilogy.sci b/scilab/modules/graphics/macros/semilogy.sci
new file mode 100644
index 0000000..23e6fea
--- /dev/null
+++ b/scilab/modules/graphics/macros/semilogy.sci
@@ -0,0 +1,41 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2020 - Stéphane MOTTELET
3//
4// This file is hereby licensed under the terms of the GNU GPL v2.0,
5// For more information, see the COPYING file which you should have received
6// along with this program.
7
8function semilogy(varargin)
9 [lhs,rhs]=argn(0);
10
11 if ~rhs
12 w=logspace(-2,2,1000);
13 s=%i*w;
14 g=1../(s.^2+s+1);
15 clf("reset")
16
17 semilogy(w,abs(g));
18
19 title("$\LARGE \left|1/(s^2+s+1)\right|\mbox{ for }s=i\omega$")
20 xlabel("$\LARGE \omega$")
21 return
22 end
23
24 current_figure = gcf();
25 cur_draw_mode = current_figure.immediate_drawing;
26 current_figure.immediate_drawing = "off";
27
28 ok = isempty(gca().children) || gca().data_bounds(3) > 0;
29 set(gca(),"log_flags","nn")
30 try
31 plot(varargin(:))
32 if ok
33 set(gca(),"log_flags","nl")
34 end
35 catch
36 current_figure.immediate_drawing = cur_draw_mode;
37 error(lasterror(%t))
38 end
39
40 current_figure.immediate_drawing = cur_draw_mode;
41endfunction
diff --git a/scilab/modules/helptools/etc/images_md5.txt b/scilab/modules/helptools/etc/images_md5.txt
index 3d75436..b1206bc 100644
--- a/scilab/modules/helptools/etc/images_md5.txt
+++ b/scilab/modules/helptools/etc/images_md5.txt
@@ -862,6 +862,7 @@ lighting_3.png=4db104cec73db5309f073b24c2d740e1
862linear_interpn_1.png=6097d912048862430be0c7efc1cb5715 862linear_interpn_1.png=6097d912048862430be0c7efc1cb5715
863linear_interpn_2.png=babfba25d7f0743ed8a6f6618379fba9 863linear_interpn_2.png=babfba25d7f0743ed8a6f6618379fba9
864locate_1.png=12b128890d9e8e2336d8db9d64d8dfcb 864locate_1.png=12b128890d9e8e2336d8db9d64d8dfcb
865loglog_1.png=9e23c974da76a0bce5dac20746f5b3fb
865lqe_1.png=39cd8f90954e2b934b4926badcd56f7b 866lqe_1.png=39cd8f90954e2b934b4926badcd56f7b
866lqg_1.png=3e8627090476b38335a391eb831767a6 867lqg_1.png=3e8627090476b38335a391eb831767a6
867lqg_2.png=d0a7523f9ddee9c5f11c06682ff1b0c6 868lqg_2.png=d0a7523f9ddee9c5f11c06682ff1b0c6
@@ -1049,6 +1050,8 @@ scatter_9.png=9f987520c26d42c41f2ee6d3ec930529
1049scifunc_block_m_1.png=a26368cd2a69c472967105b9d8deb5ed 1050scifunc_block_m_1.png=a26368cd2a69c472967105b9d8deb5ed
1050sec_1.png=4eff2516ae7932bb126b6e2fa133f046 1051sec_1.png=4eff2516ae7932bb126b6e2fa133f046
1051sech_1.png=62b827923764aaaf8ce355b0256bef3b 1052sech_1.png=62b827923764aaaf8ce355b0256bef3b
1053semilogx_1.png=b5d0ccb773bc68cab682b85e9299840c
1054semilogy_1.png=22736d35bd7a6dff1a92af7a203cd81e
1052sgolay_1.png=a68d1b4aa9bbf7ccfcd38dfd6158cf01 1055sgolay_1.png=a68d1b4aa9bbf7ccfcd38dfd6158cf01
1053sgolay_2.png=9ec7d521df8c827f7ef37e2997613bd6 1056sgolay_2.png=9ec7d521df8c827f7ef37e2997613bd6
1054sgolaydiff_1.png=68aacc1223db752ac39fbede1935ac75 1057sgolaydiff_1.png=68aacc1223db752ac39fbede1935ac75
diff --git a/scilab/modules/helptools/images/loglog_1.png b/scilab/modules/helptools/images/loglog_1.png
new file mode 100644
index 0000000..d2312a9
--- /dev/null
+++ b/scilab/modules/helptools/images/loglog_1.png
Binary files differ
diff --git a/scilab/modules/helptools/images/semilogx_1.png b/scilab/modules/helptools/images/semilogx_1.png
new file mode 100644
index 0000000..e4fbed7
--- /dev/null
+++ b/scilab/modules/helptools/images/semilogx_1.png
Binary files differ
diff --git a/scilab/modules/helptools/images/semilogy_1.png b/scilab/modules/helptools/images/semilogy_1.png
new file mode 100644
index 0000000..467517d
--- /dev/null
+++ b/scilab/modules/helptools/images/semilogy_1.png
Binary files differ