/[pspp]/pspp/src/plot-chart.c
ViewVC logotype

Diff of /pspp/src/plot-chart.c

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

revision 1.3 by jmd, Mon Feb 14 12:36:01 2005 UTC revision 1.4 by jmd, Wed Apr 13 10:09:59 2005 UTC
# Line 166  chart_write_title(struct chart *chart, c Line 166  chart_write_title(struct chart *chart, c
166    va_list ap;    va_list ap;
167    char buf[100];    char buf[100];
168    
169    assert(chart);    if ( ! chart )
170              return ;
171    
172    pl_savestate_r(chart->lp);    pl_savestate_r(chart->lp);
173    pl_ffontsize_r(chart->lp,chart->font_size * 1.5);    pl_ffontsize_r(chart->lp,chart->font_size * 1.5);
# Line 250  chart_write_yscale(struct chart *ch, dou Line 251  chart_write_yscale(struct chart *ch, dou
251      chart_rounded_tick( (smax - smin) / (double) ticks);      chart_rounded_tick( (smax - smin) / (double) ticks);
252    
253    
254    assert (ch) ;    if ( !ch )
255              return;
256    
257    ch->y_max = ceil  ( smax / tick_interval ) * tick_interval ;    ch->y_max = ceil  ( smax / tick_interval ) * tick_interval ;
258    ch->y_min = floor ( smin / tick_interval ) * tick_interval ;    ch->y_min = floor ( smin / tick_interval ) * tick_interval ;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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