GNOME Bugzilla – Bug 745960
log-axis and invalid data
Last modified: 2015-03-25 12:28:26 UTC
The to-be-attached file has an xy-plot with y being a log axis. There is a single point that is invalid: y=-1. That single point should be ignored for purposes of figuring out min/max/major/minor for the axis, but it looks like it forces min=0.1 We have gog_axis_map_finite to check validity of points, but we may not be using it consistently.
Created attachment 298975 [details] Plot with log axis and invalid data
Hmm, and deleting the invalid value hides the Y-axis ticks and labels. Really weird
The issue is that we get the double range for each axis without any consideration for the axis type (except discrete vs. continuous). And in the log map code, we replace a negative bound by 1.0. Not sure this can be easily fixed, at least without an API break, so this might go to the goffice-0.12 bugs list.
I think we can do it. gog_2d_plot_axis_get_bounds can call plot_get_axis to get the actual axis.
Might work. Anyway we'll need to change the code for each plot type accepting a log map, that is all plot types (except pies and rings).
Fixed the vanishing ticks issue.
Tentative patch (for xy only) applied.
I don't see the patch.
I committed it.
Fixed for bar/col too. This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.
Radar and polar plots might be affected too, at least.
Polar fixed too.