changeset 11689:842cc9439011 release-3-0-x

graphcs.cc, graphics.h.in: new property, linewidth
author John W. Eaton <jwe@octave.org>
date Tue, 11 Mar 2008 23:33:47 -0400
parents e13219eaf388
children 42e936258b19
files src/ChangeLog src/graphics.cc src/graphics.h.in
diffstat 3 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
 2008-03-11  John W. Eaton  <jwe@octave.org>
 
+	* graphics.cc, graphics.h.in (class axes): New property, linewidth.
+
 	* DLD-FUNCTIONS/eig.cc (Feig): Handle possible error from EIG.
 	* DLD-FUNCTIONS/qp.cc (qp, Fqp): Likewise.
 	* xpow.cc (xpow): Likewise.
--- a/src/graphics.cc
+++ b/src/graphics.cc
@@ -1140,6 +1140,7 @@
     zdir ("normal"),
     xaxislocation ("bottom"),
     yaxislocation ("left"),
+    linewidth (0.5),
     view (),
     visible ("on"),
     nextplot ("replace"),
@@ -1348,6 +1349,8 @@
     set_xaxislocation (val);
   else if (name.compare ("yaxislocation"))
     set_yaxislocation (val);
+  else if (name.compare ("linwdiwth"))
+    set_linewidth (val);
   else if (name.compare ("view"))
     set_view (val);
   else if (name.compare ("visible"))
@@ -1432,6 +1435,7 @@
   zdir = "normal";
   xaxislocation = "left";
   yaxislocation = "bottom";
+  linewidth = 0.5;
 
   Matrix tview (1, 2, 0.0);
   tview(1) = 90;
@@ -1558,6 +1562,7 @@
   m.assign ("zdir", zdir);
   m.assign ("xaxislocation", xaxislocation);
   m.assign ("yaxislocation", yaxislocation);
+  m.assign ("linewidth", linewidth);
   m.assign ("view", view);
   m.assign ("visible", visible);
   m.assign ("nextplot", nextplot);
@@ -1685,6 +1690,8 @@
     retval = xaxislocation;
   else if (name.compare ("yaxislocation"))
     retval = yaxislocation;
+  else if (name.compare ("linewidth"))
+    retval = linewidth;
   else if (name.compare ("view"))
     retval = view;
   else if (name.compare ("visible"))
@@ -1794,6 +1801,7 @@
   m["zdir"] = "normal";
   m["xaxislocation"] = "bottom";
   m["yaxislocation"] = "left";
+  m["linewidth"] = 0.5;
 
   Matrix tview (1, 2, 0.0);
   tview(1) = 90;
--- a/src/graphics.h.in
+++ b/src/graphics.h.in
@@ -1414,6 +1414,7 @@
       octave_value zdir
       octave_value xaxislocation
       octave_value yaxislocation
+      octave_value linewidth
       octave_value view
       octave_value visible
       octave_value nextplot