---------- Forwarded message ----------
From: Sanjay Bhatnagar <bhatnagar.sanjay@...>
Date: Wed, Nov 25, 2009 at 4:39 PM
Subject: GtkPlot redraw problem?
To: adrian@..., feiguin@...
I resurrected a program I wrote which used GtkPlot (I was using 3.x I
think). I finally made it work with GtkPlot 5.0 now - except that
when I re-scale the plots (in my case, only the Y-axis is being
rescaled), it refreshes and draws the entire plot except the labels
(in this case on the left-axis).
Attached are two GIF files which show the problem (compare the y-axis
labels of the last panel between the two GIF files). Can you tell me
what I am doing wrong? Or is it a bug?
Following is the code that I use to re-draw:
void XYPanel::Plot(int WhichOverlay)
// if (!(GTK_PLOT_FLAGS(CHART) & GTK_PLOT_FREEZE))
if (WhichOverlay >= NoOfOverlays)
throw(ErrorObj("Requested overlay for plot does not exist",
area.x = GTK_WIDGET(CHART)->allocation.x+GTK_LAYOUT(Canvas)->xoffset;
area.y = GTK_WIDGET(CHART)->allocation.y+GTK_LAYOUT(Canvas)->yoffset;
area.width = GTK_WIDGET(CHART)->allocation.width;
area.height = GTK_WIDGET(CHART)->allocation.height;
Get latest updates about Open Source Projects, Conferences and News.