octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in __pltoplt1__.m


From: Michael Goffioul
Subject: Bug in __pltoplt1__.m
Date: Fri, 8 Jun 2007 14:43:29 +0200

Hi,

I've found 2 little problems in __pltopt1__.m:
1) when using 2-characters linestyle, the linestyle is set to empty
2) empty ("") linestyle is not a valid linestyle within Matlab; use "none"
instead.

See patch below.

Michael.

Index: scripts/plot/__pltopt1__.m
===================================================================
RCS file: /cvs/octave/scripts/plot/__pltopt1__.m,v
retrieving revision 1.28
diff -c -p -r1.28 __pltopt1__.m
*** scripts/plot/__pltopt1__.m  26 Mar 2007 18:11:58 -0000      1.28
--- scripts/plot/__pltopt1__.m  8 Jun 2007 12:41:46 -0000
*************** function [options, valid] = __pltopt1__
*** 48,53 ****
--- 48,54 ----
   while (! isempty (opt))
     if (strncmp (opt, "--", 2) || strncmp (opt, "-.", 2))
       options.linestyle = opt(1:2);
+       have_linestyle = true;
       n = 2;
     else
       topt = opt(1);
*************** function [options, valid] = __pltopt1__
*** 113,119 ****
   endwhile

   if (have_marker && ! have_linestyle)
!     options.linestyle = "";
   endif

 endfunction
--- 114,120 ----
   endwhile

   if (have_marker && ! have_linestyle)
!     options.linestyle = "none";
   endif

 endfunction


reply via email to

[Prev in Thread] Current Thread [Next in Thread]