GNOME Bugzilla – Bug 623887
"Contour plot": missing class in legend if a minimum value is entered manually
Last modified: 2010-07-13 19:03:26 UTC
If you specify a minimum value for the "countour plot" in the menu option "pseudo-3D-axis" the class above the first class is missing (see the attachment) And if you specify a maximum value the last class is not a class. It is a single value. This value is the same as the higher value of the class border below. and by the way... It would be very helpfull to specify the colour of each class manually in the contour plot (maybe the same way as in the histogram chart where you can define a different colour for each bar with "point")
Created attachment 165519 [details] contour plot with missing class
Major: Major loss of functionality - menu item broken, data output extremely incorrect, or otherwise difficult/useless to use.
Would you be able to provide the gnumeric file corresponding to the attached pdf? I suspect what is happening is that there aren't any data values below 200000 at all,so the legend omits those categories. (and your minimum forces an additional (unneeded category.)
More importantly it seems that the colour block for the highest valued category which ought to be turquoise (or whatever the colour is called) appears to be missing.
The problem seems to occur whenever the manual minimum is below the automatic minimum. In that case: 1) the second group is missing 2) the limits for the last (highest) group are wrong 3) the listed colours seem to correspond to the correct sequence for classes (not the really listed classes).
Created attachment 165618 [details] [review] proposed patch Please test with this patch.
(In reply to comment #6) > Created an attachment (id=165618) [details] [review] > proposed patch > > Please test with this patch. Yesterday I tryed this patch. Maybe I made a mistake applaying the patch. I only recompiled goffice-0.8.7 after applaying the patch and not gnumeric-1.10.7 itself. The result was that I have only seen one class in the legend. But this class consists of the lowest value of the first class and the highest value of the last class. All the other classes in between you could see in the contour plot chart but not in the legend. Later I will attach a contour plot example. But maybe you have made the same experiance with the patch.
hmm, recompilation of goffice might be not enough, you probably need to reinstall the plugin. Things work for me, but I'm interested if you can provide a not working sample.
With this patch I cannot replicate the problem anymore.
(In reply to comment #9) > With this patch I cannot replicate the problem anymore. I just installed the latest goffice from GIT and gnumeric-1.10.8 from GIT but the problem seem to be the same as before. You can find a gnumeric file with a contour plot in the attachment.
Created attachment 165761 [details] gnumeric file example contour plot with missing class
Created attachment 165762 [details] Does the contour plot looks same in your goffice and gnumeric version?
The "latest goffice from GIT and gnumeric-1.10.8 from GIT" does not include the above patch. We will not be applying the patch to git until we are reasonably sure that it fixes this issue. So you will need to apply that patch to your source (patch -p1 <filename) and recompile goffice (and ideally gnumeric although that should not be necessary).
Created attachment 165763 [details] contour plot with goffice from current git with patch applied (in gnumeric from current git)
The grid appearing in the pdf is annoying. But there might be no easy solution for that.
Jean, I am pretty sure that your patch is fixing this problem. Please commit (and close this bug).
Fixed. Thanks for your bug report.
Seems to work with the latest GIT Thanks for fixing the bug.