[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/cartesian.c
From: |
John Darrington |
Subject: |
[Pspp-cvs] Changes to pspp/src/cartesian.c |
Date: |
Sat, 07 May 2005 20:13:20 -0400 |
Index: pspp/src/cartesian.c
diff -u pspp/src/cartesian.c:1.7 pspp/src/cartesian.c:1.8
--- pspp/src/cartesian.c:1.7 Fri Apr 29 01:02:13 2005
+++ pspp/src/cartesian.c Sun May 8 00:13:19 2005
@@ -133,24 +133,22 @@
void
chart_datum(struct chart *ch, int dataset UNUSED, double x, double y)
{
-
if ( ! ch )
return ;
+ {
+ const double x_pos =
+ (x - ch->x_min) * ch->abscissa_scale + ch->data_left ;
+ const double y_pos =
+ (y - ch->y_min) * ch->ordinate_scale + ch->data_bottom ;
- const double x_pos =
- (x - ch->x_min) * ch->abscissa_scale + ch->data_left ;
-
- const double y_pos =
- (y - ch->y_min) * ch->ordinate_scale + ch->data_bottom ;
-
- pl_savestate_r(ch->lp);
+ pl_savestate_r(ch->lp);
- pl_fmarker_r(ch->lp, x_pos, y_pos, 6, 15);
-
- pl_restorestate_r(ch->lp);
+ pl_fmarker_r(ch->lp, x_pos, y_pos, 6, 15);
+ pl_restorestate_r(ch->lp);
+ }
}
/* Draw a line with slope SLOPE and intercept INTERCEPT.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] Changes to pspp/src/cartesian.c,
John Darrington <=