/[pspp]/pspp/src/cartesian.c
ViewVC logotype

Diff of /pspp/src/cartesian.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by jmd, Fri Apr 29 01:02:13 2005 UTC revision 1.8 by jmd, Sun May 8 00:13:19 2005 UTC
# Line 133  write_legend(struct chart *chart, const Line 133  write_legend(struct chart *chart, const
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.

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26