bug-gnu-utils
[Top][All Lists]
Advanced

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

Plotutils package


From: Simona Grigorescu
Subject: Plotutils package
Date: Wed, 18 Apr 2001 18:46:49 +0200

Hi!

I've tried (and succeed) to make a library of C++ functions from the
graph's plotting routines. While testing them I noticed an error in the
file plotter.c. It is in the function "set_graph_parameters" and it
concerns the section "specify interval range for each coordinate, in
libplot units". Here is the original piece of code:

  /* specify interval range for each coordinate, in libplot units */
  multigrapher->x_trans.output_min = 0.0;
  multigrapher->x_trans.output_max = (double)PLOT_SIZE;
  multigrapher->x_trans.output_range = multigrapher->x_trans.output_max
- multigrapher->x_trans.output_min;
  multigrapher->x_trans.output_min = 0.0; // here is the problem
  multigrapher->y_trans.output_max = (double)PLOT_SIZE;
  multigrapher->y_trans.output_range = multigrapher->y_trans.output_max
- multigrapher->y_trans.output_min;

I suppose that, instead of initializing
"multigrapher->x_trans.output_min" twice, it was meant a initialization
of "multigrapher->x_trans.output_min" and one of 
"multigrapher->y_trans.output_min".

Please let me know if I am wrong.

Bye,
Simona

P.S. If anyone is interested in this "librarified" version of the graph
application, please let me know. I have to add that it still needs
improvements - but one can use it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]