[goffice] Plots: use 0% format for stack percentage graphs.



commit 3035664bbb2193e9560de4a86e7301f05bfe3bf7
Author: Morten Welinder <terra gnome org>
Date:   Thu Mar 19 17:46:40 2015 -0400

    Plots: use 0% format for stack percentage graphs.
    
    0.00% is mildly insane.

 ChangeLog                      |   24 ++++++++++++++----------
 NEWS                           |    1 +
 plugins/plot_barcol/gog-1.5d.c |    3 +--
 3 files changed, 16 insertions(+), 12 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7693ad6..e10e154 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,9 +3,13 @@
        * goffice/graph/gog-axis-line.c (axis_line_point): fix selection of
        axes using only part fo the plot area. [#746456]
 
-2015-03-13  Jean Brefort  <jean brefort normalesup org>
+2015-03-19  Morten Welinder  <terra gnome org>
 
-       reviewed by: <delete if not using a buddy>
+       * plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_axis_get_bounds):
+       Use 0% as format instead of the ill-defined default which happens
+       to be 0.00% -- and that makes no sense here.
+
+2015-03-13  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/canvas/goc-line.c (goc_line_draw):
 
@@ -19,20 +23,20 @@
 
 2015-03-10  Jean Brefort  <jean brefort normalesup org>
 
-       * plugins/plot_surface/gog-matrix.c (gog_matrix_view_render): fix rendering
-       of matrix plots with a discrete axis.
+       * plugins/plot_surface/gog-matrix.c (gog_matrix_view_render): fix
+       rendering of matrix plots with a discrete axis.
        * plugins/plot_surface/gog-xyz.c (gog_xyz_plot_axis_get_bounds): ditto.
 
 2015-03-10  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/graph/gog-axis-line.c (axis_line_get_bbox),
-       (axis_line_render): ensure that ticks on limits are not hidden because of
-       rounding errors.
+       (axis_line_render): ensure that ticks on limits are not hidden
+       because of rounding errors.
 
 2015-03-06  Johannes Deutsch  <j_deutsch web de>
 
-       * goffice/canvas/goc-line.c (goc_line_draw): do not draw the line over the
-       arrow head at start. [#745736]
+       * goffice/canvas/goc-line.c (goc_line_draw): do not draw the line
+       over the arrow head at start. [#745736]
 
 2015-03-04  Morten Welinder <terra gnome org>
 
@@ -44,8 +48,8 @@
 
 2015-03-03  Jean Brefort  <jean brefort normalesup org>
 
-       * goffice/canvas/goc-canvas.c (goc_canvas_draw): clip each rectangle before
-       drawing. [#744076]
+       * goffice/canvas/goc-canvas.c (goc_canvas_draw): clip each
+       rectangle before drawing. [#744076]
 
 2015-03-01  Morten Welinder  <terra gnome org>
 
diff --git a/NEWS b/NEWS
index 3cff864..c0aa49c 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Johannes Deutsch:
 
 Morten:
        * Improve log axis bounds.
+       * Fix format used for stacked percentage graphs.
 
 --------------------------------------------------------------------------
 goffice 0.10.21:
diff --git a/plugins/plot_barcol/gog-1.5d.c b/plugins/plot_barcol/gog-1.5d.c
index 12bfaa3..2f0b716 100644
--- a/plugins/plot_barcol/gog-1.5d.c
+++ b/plugins/plot_barcol/gog-1.5d.c
@@ -279,8 +279,7 @@ gog_plot1_5d_axis_get_bounds (GogPlot *plot, GogAxisType axis,
                        if (model->maxima <= 1.)
                                bounds->logical.maxima =  1.;
                        if (bounds->fmt == NULL) {
-                               bounds->fmt = go_format_ref (
-                                       go_format_default_percentage ());
+                               bounds->fmt = go_format_new_from_XL ("0%");
                        }
                } else if (bounds->fmt == NULL && model->fmt != NULL)
                        bounds->fmt = go_format_ref (model->fmt);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]