GtkPlot (and GtkPlotPolar) Bug
- From: "Dugas, Alan" <alan dugas analog com>
- To: scigraphica-gtkextra lists sourceforge net, Adrian Feiguin <feiguin magnet fsu edu>
- Cc: gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: GtkPlot (and GtkPlotPolar) Bug
- Date: Thu, 21 Dec 2000 12:00:47 -0500
I've discovered a bug in gtkplot function gtk_plot_draw_labels(). The bug
manifests itself when the y-axis min value is less than the x-axis min value.
When this condition exists, one or more y-axis tick labels will be displayed as
a blank space. The fix I've found is simple, change the following if statement
conditional from;
if ( x_tick >= plot->xmin-1.e-9 )
to;
if ( x_tick >= ( axis.orientation == GTK_PLOT_AXIS_X ? plot->xmin-1.e-9 :
plot->ymin-1.e-9 ) )
I've also found the same code in gtkplotpolar function
gtk_plot_polar_draw_labels() and although not tested in this function I would
expected it to behave the same. Happy Holidays, I hope this can be of benefit
to someone!
-- Stupid Genius
P.S.
I would also suggest changing variable "x_tick" to something more descrr ive
like "major_tick_value" or "tick_value".
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]