Commit 1af12d63 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

only draw the first series for a pie. Things can sneak in.


2003-09-15  Jody Goldberg <jody@gnome.org>

	* graph/plugins/plot_pie/gog-pie.c (gog_pie_view_render) : only draw
	  the first series for a pie.  Things can sneak in.

	* utils/go-font.c (go_font_init) : make default font smaller

	* graph/gog-object.c (gog_object_get_pos) : new.
	(gog_object_set_pos) : new.

2003-09-14  Jody Goldberg <jody@gnome.org>

	* graph/gog-axis.c (gog_axis_editor) : We ignore the bounds for a
	  discrete axis.
	(gog_axis_update) : store information pertaining to axes with discrete
	  enumerations.
	(gog_axis_editor) : discrete enumerations do not allow for manual boun
	  changes.
	(gog_axis_num_markers) : handle discrete enumerations.
	(gog_axis_get_marker) : ditto.
	(gog_axis_view_size_request) : ditto.
	(gog_axis_view_render) : rework to support in and out ticks.
	  Support discrete enumerations.
	(gog_axis_is_discrete) : new.
	(gog_axis_get_ticks) : new.

	* graph/gog-renderer.c (gog_renderer_draw_text) : revamp the interface
	  yet again to make parameters clearer.
	* graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_text) : adjsut
	  to the new interface and imrpve clipping support.
	* graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_text) :
	  adjust to the new interface, add support for anchors.

2003-09-15  Jody Goldberg <jody@gnome.org>

	* src/style.c (gnm_font_find_closest_from_weight_slant) : put in some
	  fallbacks.

	* schemas/gnumeric-general.schemas.in : return to using 'Sans' rather
	  than 'Sans Regular'. The later does not make gnome-print any happier
	  and it is not listed in the default fontconfig list.

	* src/graph.c (cb_assign_val) : Only clip empty cells, not invalid
	  cells.  We might be interested in the strings even if they're not
	  useful as numbers.  This can happen when using a vector of strings
	  as the X axis in a scatter plot.
parent f6a65417
......@@ -158,7 +158,7 @@ go_font_init (void)
(GEqualFunc)pango_font_description_equal,
NULL, (GDestroyNotify) go_font_free);
font_default = go_font_new_by_desc (
pango_font_description_from_string ("Sans Regular 10"));
pango_font_description_from_string ("Sans 8"));
}
void
......
......@@ -65,7 +65,7 @@ gog_xy_plot_update (GogObject *obj)
GogXYSeries const *series;
double x_min, x_max, y_min, y_max, tmp_min, tmp_max;
GSList *ptr;
gboolean is_index = FALSE;
gboolean is_discrete = FALSE;
x_min = y_min = DBL_MAX;
x_max = y_max = -DBL_MAX;
......@@ -85,17 +85,17 @@ gog_xy_plot_update (GogObject *obj)
if (!finite (tmp_min) || !finite (tmp_max) ||
tmp_min > tmp_max) {
tmp_min = 1;
tmp_min = 0;
tmp_max = go_data_vector_get_len (
GO_DATA_VECTOR (series->base.values[1].data));
is_index = TRUE;
is_discrete = TRUE;
}
} else {
tmp_min = 1;
tmp_min = 0;
tmp_max = go_data_vector_get_len (
GO_DATA_VECTOR (series->base.values[1].data));
is_index = TRUE;
is_discrete = TRUE;
}
if (x_min > tmp_min) x_min = tmp_min;
......@@ -139,14 +139,14 @@ static GOData *
gog_xy_plot_axis_bounds (GogPlot *plot, GogAxisType axis,
double *minima, double *maxima,
double *logical_min, double *logical_max,
gboolean *is_index)
gboolean *is_discrete)
{
GogXYPlot *model = GOG_XY_PLOT (plot);
if (axis == GOG_AXIS_X) {
*minima = model->x.minimum;
*maxima = model->x.maximum;
*is_index = model->x.minimum > model->x.maximum ||
*is_discrete = model->x.minimum > model->x.maximum ||
!finite (model->x.minimum) ||
!finite (model->x.maximum);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment