// back-end static void DrawHistograms () { VisualizationData vd; int i; double step = 1; if( InitVisualization( &vd ) ) { if( vd.hist_width < MIN_HIST_WIDTH ) { DrawHistogramAsDiagram( vd.cy, vd.paint_width, vd.hist_count ); step = 0.5*vd.paint_width / (((vd.hist_count | 7) + 1)/2 + 1.); } else { DrawHistogramFull( vd.cy, step = vd.hist_width, vd.hist_count ); } } if(!differentialView) return; differentialView = 0; DrawSegment( MarginX + MarginW, vd.cy, NULL, NULL, PEN_NONE ); for( i=0; i<vd.hist_count; i++ ) { int index = currFirst + i; int x = MarginX + MarginW + index * step + step/2; DrawSegment((int) x, GetValueY( GetPvScore(index) ), NULL, NULL, PEN_ANY ); } differentialView = 1; }
// back-end static void DrawHistograms () { VisualizationData vd; if( InitVisualization( &vd ) ) { if( vd.hist_width < MIN_HIST_WIDTH ) { DrawHistogramAsDiagram( vd.cy, vd.paint_width, vd.hist_count ); } else { DrawHistogramFull( vd.cy, vd.hist_width, vd.hist_count ); } } }