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

RE: [gtkextra] slow updates



Jose,

Thanks for your response!  I have been able to make some progress on this
issue.  It appears that the order of setting the axis ticks and the axis
range is important.  Initially I was setting the axis ticks and then the
axis range before painting and refreshing.  When I changed the order to set
the axis range first and then the tick marks, I got a significant
improvement in performance:-)

In addition to the above, I am running into a problem where the y-axis does
not always display a number next to all the major tick marks.  The problem
is always at the bottom of the axis where the x and y axis' meet.  This is
somewhat confusing since I set the axis range using:

gtk_plot_set_range(GTK_PLOT(active_plot), x_min, x_max, 0.0,
largest_bin_number);

Based on this function, I would expect the y-axis should always display a
number 0.0 up to largest_bin_number.  Any ideas?




				-- Stupid Genius

> ----------
> From: 	Jose Eusebio Roza Pando[SMTP:jeroza@alu.uah.es]
> Sent: 	Monday, December 18, 2000 2:10 PM
> To: 	Dugas, Alan
> Cc: 	gtk-app-devel-list@gnome.org;
> scigraphica-gtkextra@lists.sourceforge.net
> Subject: 	Re: [gtkextra] slow updates
> 
> "Dugas, Alan" escribió:
> 
> > Hi,
> >
> > I am running into a problem while using a gtkplot inside a
> gtkplotcanvas.
> > Has anyone run into slow updating of plots when the dataset is changed?
> It
> > seems that when the x-axis range changes dramatically, say 700K to 7, I
> get
> > updates that take over a minute to occur:-(  During this time my cpu
> usage
> > spikes, the gtk app I'm writing locks up, and the system slows down to a
> > crawl.  Any ideas would be greatly appreciated!
> >
> >                                 -- Stupid Genius
> >
> > _______________________________________________
> > Scigraphica-gtkextra mailing list
> > Scigraphica-gtkextra@lists.sourceforge.net
> > http://lists.sourceforge.net/mailman/listinfo/scigraphica-gtkextra
> 
> I have the same problem, when a parameter in gtkplot is changed the update
> is
> very slow.
> When I have a dataset with 300.000 points inside, the update takes 15
> seconds.
> 
> If your array_x has 700K points , although you only use some of them, the
> updating will be very slow,
> I think the array_x must only have the elements with points.
> Cheers,
> Eusebio
> 
> --
> "No me des las gracias a mi,
>  daselas a la ley de la gravedad"
>  MacGyver en The Simpsons
> 
> 
> 




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