From: Mark B. <ma...@gm...> - 2008-08-06 12:27:09
|
Hello list - There seems to be a bug in labeling contour lines. When I call clabel, it removes all contours that are not labeled (because the label doesn't fit on the section of contour, I presume). This seems like a bug to me (or a really odd feature). Easy example: >>> x,y = meshgrid( linspace(-10,10,50), linspace(-10,10,50) ) >>> z = log(x**2 + y**2) >>> cobj = contour(x,y,z) >>> cobj.clabel() <a list of 8 text.Text objects> >>> draw() And now all contours without a label are gone. On my machine it draws labels on contours from 1 through 5, and erases the contours in the middle of the plot with values -2, -1, and 0. Mark |