Re: Goffice Graph Bounds Change
- From: David Brigada <brigad rpi edu>
- To: Jean Brefort <jean brefort free fr>
- Cc: gnumeric-list gnome org
- Subject: Re: Goffice Graph Bounds Change
- Date: Fri, 04 Sep 2009 13:06:26 -0400
Jean,
The relevant part on new data looks something like this (simplified a bit):
void new_data(GogSeries *series, gdouble *x, gdouble *y)
{
GOData *dat;
GError *error;
dat = go_data_vector_val_new(x, 501, NULL);
gog_series_set_dim(series, 0, dat, &error);
dat = go_data_vector_val_new(y, 501, NULL);
gog_series_set_dim(series, 1, dat, &error);
}
Thanks,
Dave
Jean Brefort wrote:
What's your code? Do you call gog_series_set_dim when you change the
data? or anything else?
Regards,
Jean
Le vendredi 04 septembre 2009 à 12:47 -0400, David Brigada a écrit :
Hello,
I'm using the goffice library to plot some graphs in a custom
application. The first time I plot data on a graph, the bounds of the
graph automatically adjust to fit the data. However, subsequent times,
when I update the series with new data, sometimes it doesn't redo the
bounds of the graph, so data is lost off the sides (especially the top
and bottom). Am I missing some way to tell it to update the bounds when
it gets new data? The same behavior appears in goffice 0.7.8 and 0.7.11.
Screenshot: http://www.rpi.edu/~brigad/truncated.png
Thanks,
David Brigada
_______________________________________________
gnumeric-list mailing list
gnumeric-list gnome org
http://mail.gnome.org/mailman/listinfo/gnumeric-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]