GtkPlot with multiple datasets

"Luis A. Montes" <[email protected]> Thu, 27 Oct 2011 13:24:03 -0700
Newsgroups gmane.comp.scigraphica.gtkextra
Organization Quantum Design
Message-ID <1319747043.21084.112.camel@firmware>
I've been trying to use GtkExtra, specifically gtk plot to produce some
simple graphs. I have a single plot on a canvas, and then I add one
dataset. That seems to work. But when I add a second one using:

	pImpl->m_dataset[n] = GTK_PLOT_DATA(gtk_plot_data_new());
	gtk_plot_add_data(GTK_PLOT(pImpl->m_plot), pImpl->m_dataset[n]);

and then I try to set a different symbol for the second one using:

	gtk_plot_data_set_symbol(
		pImpl->m_dataset[n], symbol, GTK_PLOT_SYMBOL_OPAQUE,
		5, 1,
		&pImpl->m_color[color_ndx],&pImpl->m_color[color_ndx]
	);

It ends up using the same symbol for both. The odd part is that the
legend does show different symbols for each data set. It actually seems
as if the two datasets get spliced into one.
Since I was using a sort of an old version, I downloaded the latest
(3.0.1) and compiled it using mingw, but I found out that the tests
(testgtkplot*) don't work any more. I do remember them working before.
The changelog seems to imply that the GtkSheet part is working but the
GtkPlot is not? Is there anybody working on fixing GtkPlot? I could
help, but it'll be a steep learning curve for me.

Thanks


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev