|
Lines 60-73
Link Here
|
| 60 |
if (XPageSize != 0. && YPageSize == 0.) {a=XPageSize/16.5*540/720; scale=1.;} |
60 |
if (XPageSize != 0. && YPageSize == 0.) {a=XPageSize/16.5*540/720; scale=1.;} |
| 61 |
char as[32]; |
61 |
char as[32]; |
| 62 |
sprintf(as, "%f",a); |
62 |
sprintf(as, "%f",a); |
| 63 |
actStream->SetOpt( "a", as); // this necessary to keep labels from looking stretched (plplot bug) |
63 |
actStream->setopt( "a", as); // this necessary to keep labels from looking stretched (plplot bug) |
| 64 |
// but plrender -a is also buggy: aspect ratios are not exactly correct |
64 |
// but plrender -a is also buggy: aspect ratios are not exactly correct |
| 65 |
xleng=static_cast<PLINT>(floor(scale*540. +0.5)); |
65 |
xleng=static_cast<PLINT>(floor(scale*540. +0.5)); |
| 66 |
yleng=static_cast<PLINT>(floor(scale*720. +0.5)); |
66 |
yleng=static_cast<PLINT>(floor(scale*720. +0.5)); |
| 67 |
// setting this without plrender -a makes the labels stretched (plplot bug) |
67 |
// setting this without plrender -a makes the labels stretched (plplot bug) |
| 68 |
actStream->spage( xp, yp, xleng, yleng, xoff, yoff); |
68 |
actStream->spage( xp, yp, xleng, yleng, xoff, yoff); |
| 69 |
|
69 |
|
| 70 |
actStream->SetOpt( "ori","1"); // portrait (upright) |
70 |
actStream->setopt( "ori","1"); // portrait (upright) |
| 71 |
|
71 |
|
| 72 |
// no pause on destruction |
72 |
// no pause on destruction |
| 73 |
actStream->spause( false); |
73 |
actStream->spause( false); |
|
Lines 84-91
Link Here
|
| 84 |
|
84 |
|
| 85 |
// default: black+white (IDL behaviour) |
85 |
// default: black+white (IDL behaviour) |
| 86 |
//actStream->scolor( color); // has no effect |
86 |
//actStream->scolor( color); // has no effect |
| 87 |
if (color == 0) { actStream->SetOpt( "drvopt","text=0,color=0"); } |
87 |
if (color == 0) { actStream->setopt( "drvopt","text=0,color=0"); } |
| 88 |
else { actStream->SetOpt( "drvopt","text=0,color=1");} |
88 |
else { actStream->setopt( "drvopt","text=0,color=1");} |
| 89 |
color=0; |
89 |
color=0; |
| 90 |
|
90 |
|
| 91 |
actStream->Init(); |
91 |
actStream->Init(); |