changeset 22309:46d39db0c571

__ezplot__.m: Add 'r = ' to the title string for ezpolar plots. * __ezplot__.m: Add 'r = ' to the title string for ezpolar plots.
author Rik <rik@octave.org>
date Tue, 16 Aug 2016 08:28:23 -0700
parents b756cea4fdea
children b5ae7d55429c
files scripts/plot/draw/private/__ezplot__.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/private/__ezplot__.m	Tue Aug 16 08:07:39 2016 -0700
+++ b/scripts/plot/draw/private/__ezplot__.m	Tue Aug 16 08:28:23 2016 -0700
@@ -292,6 +292,8 @@
            '\s*\.?(?:\^|\*\*)\s*','^'), '\.([/+-])', '$1'), '\s*\.?\*\s*', ' ');
     if (isplot && nargs == 2)
       fstr = [fstr " = 0"];  # make title string of implicit function
+    elseif (ispolar)
+      fstr = ["r = " fstr];
     endif
   endif