A valid value for axesflag had been removed by https://codereview.scilab.org/#/c... 75/16275/1
Vincent COUVERT [Mon, 30 Mar 2015 08:20:10 +0000 (10:20 +0200)]
Tests:
test_run graphics bug_1109
test_run graphics bug_13735

Change-Id: Ie650a752497ed0c1eb03ababcb23704c4d7ebe4f

scilab/modules/graphics/help/en_US/2d_plot/plot2d.xml
scilab/modules/graphics/sci_gateway/c/sci_plot2d.c

index c709bc1..5b20c67 100644 (file)
                             <term>axesflag</term>
                             <listitem>
                                 <para>specifies how the axes are drawn. The associated value
-                                    should be an integer ranging from 0 to 5.
+                                    should be an integer ranging from 0 to 5 or 9 (default value).
                                 </para>
                             </listitem>
                         </varlistentry>
                             <listitem>
                                 <para>axes are drawn, the y-axis is displayed on the left
                                     (axes_visible=["on" "on"];box="off",y_location="left"). This
-                                    is the default value
+                                    is the default value.
                                 </para>
                             </listitem>
                         </varlistentry>
index c38cf39..da42746 100644 (file)
@@ -398,7 +398,7 @@ int sci_plot2d(char* fname, unsigned long fname_len)
         GetOptionalIntArg(pvApiCtx, fname, 9, "axesflag", &axes, 1, opts);
         if (axes != &axes_def)
         {
-            if (*axes >= 0 && *axes <= 5)
+            if ((*axes >= 0 && *axes <= 5) || *axes == 9)
             {
                 strfl[2] = (char)(*axes + 48);
             }