1
0
Fork 0

Background and text colors to match upstream. Better font

giza-pure
Jeff Moe 2022-08-11 16:50:56 -06:00
parent 547e8bf808
commit 6a0c430e8b
1 changed files with 12 additions and 6 deletions

View File

@ -212,6 +212,7 @@ plot_satellites (char *tlefile, struct image img, long satno, double mjd0,
cpgmove (x, y);
}
cpgsch (0.65);
cpgsci (1); // Satellite names text color
cpgtext (x, y, norad);
cpgsch (isch);
cpgmove (x, y);
@ -310,14 +311,19 @@ main (int argc, char *argv[])
wx = img.naxis1 * sx / 3600.0;
wy = img.naxis2 * sy / 3600.0;
if (argc == 3)
if (argc == 3) {
giza_open_device_size_float ("/png", "satid", 680, 680, 3);
else
cpgscf (1);
cpgscr (0, 0.0, 0.0, 0.0);
cpgeras ();
}
else {
giza_open_device_size_float ("/xs", "satid", 680, 680, 3);
}
cpgsvp (0.1, 0.95, 0.1, 0.8);
giza_set_colour_palette (1);
cpgsch (0.8);
cpgsci (255); // White top date/COSPAR ID text
sprintf (text, "UT Date: %.23s COSPAR ID: %04d", img.nfd + 1, img.cospar);
cpgmtxt ("T", 6.0, 0.0, 0.0, text);
sprintf (text, "R.A.: %10.5f (%4.1f'') Decl.: %10.5f (%4.1f'')", img.ra0,
@ -326,9 +332,9 @@ main (int argc, char *argv[])
|| img.yrms / sy > 2.0)
cpgsci (2);
else
cpgsci (1);
cpgsci (255); // R.A. text white
cpgmtxt ("T", 4.8, 0.0, 0.0, text);
cpgsci (1);
cpgsci (255); // White main text
sprintf (text,
@ -352,7 +358,7 @@ main (int argc, char *argv[])
zmin, zmax, tr);
cpgbox ("BCTSNI", 0., 0, "BCTSNI", 0., 0);
cpgstbg (1);
cpgstbg (255); // Satellite names text background color
// Environment variables
env = getenv ("ST_TLEDIR");