Micha,
I noticed when using the custom color maps, that the legend does not get
updated when changing colors. I believe this short patch solves this problem:
cvs diff qwt3d_plot.cpp
Index: qwt3d_plot.cpp
===================================================================
RCS file: /cvsroot/qwtplot3d/qwtplot3d/src/qwt3d_plot.cpp,v
retrieving revision 1.18
diff -u -3 -p -r1.18 qwt3d_plot.cpp
--- qwt3d_plot.cpp 23 Oct 2004 14:09:46 -0000 1.18
+++ qwt3d_plot.cpp 4 Jan 2005 16:29:11 -0000
@@ -235,6 +235,8 @@ void Plot3D::setDataColor( Color* col )
datacolor_p->destroy();
datacolor_p = col;
+ if ( displaylegend_ )
+ datacolor_p->createVector(legend_.colors);
}
/*!
Try the Mesh2 example when changing to a different data set with a custom map.
HTH
John Cummings
|