From: Eric M. M. <emo...@be...> - 2001-02-23 00:58:03
|
Hi all, I've got a gtk_plot, for which I periodically do: /* Now, update plot data (whew!) */ gtk_plot_data_set_numpoints(pXYPState->apGtkPlotData[0], iPointsToPlot); gtk_plot_data_set_x(pXYPState->apGtkPlotData[0], pXYPState->paAVPlotData[0].x_data); gtk_plot_data_set_y(pXYPState->apGtkPlotData[0], pXYPState->paAVPlotData[0].y_data); gtk_plot_autoscale(GTK_PLOT(pXYPState->apGtkPlotLayers[0])); /* Attempt to force left side numbers to appear */ gtk_plot_axis_show_labels(GTK_PLOT(pXYPState->apGtkPlotLayers[0]), GTK_PLOT_AXIS_LEFT, TRUE); gtk_plot_canvas_paint(GTK_PLOT_CANVAS(pXYPState->pPlotCanvas)); gtk_plot_canvas_refresh(GTK_PLOT_CANVAS(pXYPState->pPlotCanvas)); My problem is that the numbers on the left axis of the plot, which are present upon plot creation, disappear after some updates of the plot. It may be always on the sceond update, but I'm not sure. I tried the above gtk_plot_axis_show_labels on every update of data, as shown above and guessing that it should not be necessary, but I have no idea why my numbering is disappearing. Any advice would be greatly appreciated. I'm using gtk+-1.2.8, and gtk+extra-0.99.12, both installed on Solaris as a non-root user. Eric Monsler |