Data products not plotting the last recorded data point #162

Needed to save the last point for gxplot as well.
This commit is contained in:
Alex Lin 2016-08-03 16:57:14 -05:00
parent 3d604ff770
commit 3e442f4241

View File

@ -141,6 +141,10 @@ GPViewCurveNode::GPViewCurveNode( Widget Toplevel,
( x*atof(curve_x_scale_factor.c_str()) + atof(curve_x_bias.c_str()) ),
( y*atof(curve_y_scale_factor.c_str()) + atof(curve_y_bias.c_str()) ) );
}
// Print the final point from getXY
fprintf( curve_data_fp,"%e\t%e\n",
( x*atof(curve_x_scale_factor.c_str()) + atof(curve_x_bias.c_str()) ),
( y*atof(curve_y_scale_factor.c_str()) + atof(curve_y_bias.c_str()) ) );
fclose(curve_data_fp);
if ( Curve_number == 0 ) {