Using cpgpage instead of cperas to allow rescaling

pull/10/head
Cees Bassa 2014-03-31 12:50:37 +02:00
parent 2d19182e0b
commit 7e9d9f094e
1 changed files with 3 additions and 1 deletions

View File

@ -109,6 +109,7 @@ int main(int argc,char *argv[])
cpgopen("/xs"); cpgopen("/xs");
cpgctab(cool_l,cool_r,cool_g,cool_b,9,1.0,0.5); cpgctab(cool_l,cool_r,cool_g,cool_b,9,1.0,0.5);
cpgsch(0.8); cpgsch(0.8);
cpgask(0);
// Default limits // Default limits
xmin=0.0; xmin=0.0;
@ -128,7 +129,8 @@ int main(int argc,char *argv[])
// Forever loop // Forever loop
for (;;) { for (;;) {
if (redraw==1) { if (redraw==1) {
cpgeras(); // cpgeras();
cpgpage();
cpgsci(1); cpgsci(1);
cpgsvp(0.1,0.95,0.1,0.95); cpgsvp(0.1,0.95,0.1,0.95);