# HG changeset patch # User jwe # Date 1197328393 0 # Node ID a1fdd4dabefba2ca3d1fdfba475e69b6f768cb16 # Parent 30100a15625cc784a539dbda6fed30681f34b1f3 [project @ 2007-12-10 23:13:13 by jwe] diff -r 30100a15625c -r a1fdd4dabefb src/ChangeLog --- a/src/ChangeLog Mon Dec 10 21:42:11 2007 +0000 +++ b/src/ChangeLog Mon Dec 10 23:13:13 2007 +0000 @@ -4,13 +4,6 @@ For compatibility, return [x, fval, info] instead of [x, info, msg]. Move tests here from test/test_nonlin.m. -2007-12-10 David Bateman - - * graphics.h.in (data_property::data): Declare as NDArray instead - of Matrix. Change all uses. - -2007-12-10 John W. Eaton - * OPERATORS/op-cm-s.cc: Define function for el_mul with DEFNDBINOP_OP, not DEFBINOP_OP. @@ -29,6 +22,16 @@ * pt-mat.cc (tree_matrix::rvalue): Produce sq_string if any strings are sq_string objects. +2007-12-10 David Bateman + + * graphics.h.in (data_property::data): Declare as NDArray instead + of Matrix. Change all uses. + +2007-12-10 Shai Ayal + + * graphics.h.in (class figure) Add the color property. + * graphics.cc (class figure) Ditto. + 2007-12-07 David Bateman * data.cc (Fnorm): Don't return a scalar stored as a sparse diff -r 30100a15625c -r a1fdd4dabefb src/graphics.cc --- a/src/graphics.cc Mon Dec 10 21:42:11 2007 +0000 +++ b/src/graphics.cc Mon Dec 10 23:13:13 2007 +0000 @@ -863,7 +863,8 @@ currentaxes (octave_NaN), colormap (), visible ("on"), - paperorientation ("portrait") + paperorientation ("portrait"), + color ( color_values (1, 1, 1)) { } void @@ -922,6 +923,8 @@ set_visible (val); else if (name.compare ("paperorientation")) set_paperorientation (val); + else if (name.compare ("color")) + set_color (val); else { modified = false; @@ -950,6 +953,7 @@ m.assign ("colormap", colormap); m.assign ("visible", visible); m.assign ("paperorientation", paperorientation); + m.assign ("color", color); return m; } @@ -985,6 +989,8 @@ retval = visible; else if (name.compare ("paperorientation")) retval = paperorientation; + else if (name.compare ("color")) + retval = color; else warning ("get: invalid property `%s'", name.c_str ()); @@ -1022,7 +1028,7 @@ m["colormap"] = colormap_property (); m["visible"] = "on"; m["paperorientation"] = "portrait"; - + m["color"] = color_property (color_values (1, 1, 1)); return m; } diff -r 30100a15625c -r a1fdd4dabefb src/graphics.h.in --- a/src/graphics.h.in Mon Dec 10 21:42:11 2007 +0000 +++ b/src/graphics.h.in Mon Dec 10 23:13:13 2007 +0000 @@ -1219,6 +1219,7 @@ colormap_property colormap octave_value visible S octave_value paperorientation + color_property color END_PROPERTIES static std::string go_name;