diff --git a/rfplot.c b/rfplot.c index ced13a0..3a67fc3 100644 --- a/rfplot.c +++ b/rfplot.c @@ -196,14 +196,13 @@ int main(int argc,char *argv[]) t=compute_trace(tlefile,s.mjd,s.nsub,site_id,s.freq*1e-6,s.samp_rate*1e-6,&nsat,graves,freqlist); printf("Traces for %d objects for location %d\n",nsat,site_id); - giza_open_device_size_float ("/xs", "strf", 1024, 768, 3); - giza_set_colour_representation_float (0, 0.0, 0.0, 0.0); + giza_open_device_size_float ("/xs", "strf", 800, 600, 3); + // Sets background color + giza_set_colour_representation_float (1, 0.0, 0.0, 0.0); giza_draw_background (); giza_set_line_width_float (1); - + giza_set_font ("Helvetica"); giza_set_character_height_float(0.8); - // cpgpap(12.5,0.55); - cpgask(0); // Default limits xmin=0.0; @@ -221,11 +220,10 @@ int main(int argc,char *argv[]) for (;;) { if (redraw==1) { // giza_draw_background(); - cpgpage(); - giza_set_colour_index(1); + giza_set_colour_index(3); /* giza_set_viewport_float(0.1,0.95,0.9,0.95); - cpgswin(xmin,xmax,s.zmin,s.zmax); + giza_set_window_float(xmin,xmax,s.zmin,s.zmax); giza_box("BCTS",0.,0,"BCTSN",0.,0); for (i=0;i0) { @@ -295,6 +294,7 @@ int main(int argc,char *argv[]) giza_move_float(sel.x[i],sel.y[i]+sel.w); else giza_draw_float(sel.x[i],sel.y[i]+sel.w); + giza_move_float(sel.x[i],sel.y[i]+sel.w); } // Plot lower bound for (i=0;i=mjd[i] && mjdt