133 |
void |
void |
134 |
chart_datum(struct chart *ch, int dataset UNUSED, double x, double y) |
chart_datum(struct chart *ch, int dataset UNUSED, double x, double y) |
135 |
{ |
{ |
|
|
|
136 |
if ( ! ch ) |
if ( ! ch ) |
137 |
return ; |
return ; |
138 |
|
|
139 |
|
{ |
140 |
|
const double x_pos = |
141 |
|
(x - ch->x_min) * ch->abscissa_scale + ch->data_left ; |
142 |
|
|
143 |
|
const double y_pos = |
144 |
|
(y - ch->y_min) * ch->ordinate_scale + ch->data_bottom ; |
145 |
|
|
146 |
const double x_pos = |
pl_savestate_r(ch->lp); |
|
(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); |
|
147 |
|
|
148 |
pl_fmarker_r(ch->lp, x_pos, y_pos, 6, 15); |
pl_fmarker_r(ch->lp, x_pos, y_pos, 6, 15); |
|
|
|
|
pl_restorestate_r(ch->lp); |
|
149 |
|
|
150 |
|
pl_restorestate_r(ch->lp); |
151 |
|
} |
152 |
} |
} |
153 |
|
|
154 |
/* Draw a line with slope SLOPE and intercept INTERCEPT. |
/* Draw a line with slope SLOPE and intercept INTERCEPT. |