lib/App/SeismicUnixGui/sunix/plot/psimage.pm untested

filter: Statementstmt 0.0% 0 / 566 Branchbran 0.0% 0 / 152 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 84 Podpod 0.0% 0 / 80 totaltotal 0.0% 0 / 882 CC 77 SCAR 17.6
CC
77
Cov
0%
axescolor
6.0
axeswidth
6.0
bckgr
6.0
CRAP 5.8
1 package App::SeismicUnixGui::sunix::plot::psimage;
2  
3 =head2 SYNOPSIS
4  
5 PERL PROGRAM NAME:
6  
7 AUTHOR: Juan Lorenzo (Perl module only)
8  
9 DATE:
10  
11 DESCRIPTION:
12  
13 Version:
14  
15 =head2 USE
16  
17 =head3 NOTES
18  
19 =head4 Examples
20  
21 =head2 SYNOPSIS
22  
23 =head3 SEISMIC UNIX NOTES
24 PSIMAGE - PostScript IMAGE plot of a uniformly-sampled function f(x1,x2)
25  
26 with the option to display a second attribute
27  
28  
29  
30 psimage n1= [optional parameters] <binaryfile >postscriptfile
31  
32  
33  
34 Required Parameters:
35  
36 n1 number of samples in 1st (fast) dimension
37  
38  
39  
40 Optional Parameters:
41  
42 d1=1.0 sampling interval in 1st dimension
43  
44 f1=0.0 first sample in 1st dimension
45  
46 n2=all number of samples in 2nd (slow) dimension
47  
48 d2=1.0 sampling interval in 2nd dimension
49  
50 f2=0.0 first sample in 2nd dimension
51  
52 perc=100.0 percentile used to determine clip
53  
54 clip=(perc percentile) clip used to determine bclip and wclip
55  
56 bperc=perc percentile for determining black clip value
57  
58 wperc=100.0-perc percentile for determining white clip value
59  
60 bclip=clip data values outside of [bclip,wclip] are clipped
61  
62 wclip=-clip data values outside of [bclip,wclip] are clipped
63  
64 bclip and wclip will be set to be inside
65  
66 [lbeg,lend] if lbeg and/or lend are supplied
67  
68 threecolor=1 supply 3 color values instead of only two,
69  
70 using not only black and white, but f.e. red,
71  
72 green and blue
73  
74 brgb=0.0,0.0,0.0 red, green, blue values corresponding to black
75  
76 grgb=1.0,1.0,1.0 red, green, blue values corresponding to grey
77  
78 wrgb=1.0,1.0,1.0 red, green, blue values corresponding to white
79  
80 bhls=0.0,0.0,0.0 hue, lightness, saturation corresponding to black
81  
82 ghls=0.0,1.0,0.0 hue, lightness, saturation corresponding to grey
83  
84 whls=0.0,1.0,0.0 hue, lightness, saturation corresponding to white
85  
86 bps=12 bits per sample for color plots, either 12 or 24
87  
88 d1s=1.0 factor by which to scale d1 before imaging
89  
90 d2s=1.0 factor by which to scale d2 before imaging
91  
92 verbose=1 =1 for info printed on stderr (0 for no info)
93  
94 xbox=1.5 offset in inches of left side of axes box
95  
96 ybox=1.5 offset in inches of bottom side of axes box
97  
98 width=6.0 width in inches of axes box
99  
100 height=8.0 height in inches of axes box
101  
102 x1beg=x1min value at which axis 1 begins
103  
104 x1end=x1max value at which axis 1 ends
105  
106 d1num=0.0 numbered tic interval on axis 1 (0.0 for automatic)
107  
108 f1num=x1min first numbered tic on axis 1 (used if d1num not 0.0)
109  
110 n1tic=1 number of tics per numbered tic on axis 1
111  
112 grid1=none grid lines on axis 1 - none, dot, dash, or solid
113  
114 label1= label on axis 1
115  
116 x2beg=x2min value at which axis 2 begins
117  
118 x2end=x2max value at which axis 2 ends
119  
120 d2num=0.0 numbered tic interval on axis 2 (0.0 for automatic)
121  
122 f2num=x2min first numbered tic on axis 2 (used if d2num not 0.0)
123  
124 n2tic=1 number of tics per numbered tic on axis 2
125  
126 grid2=none grid lines on axis 2 - none, dot, dash, or solid
127  
128 label2= label on axis 2
129  
130 labelfont=Helvetica font name for axes labels
131  
132 labelsize=18 font size for axes labels
133  
134 title= title of plot
135  
136 titlefont=Helvetica-Bold font name for title
137  
138 titlesize=24 font size for title
139  
140 titlecolor=black color of title
141  
142 axescolor=black color of axes
143  
144 gridcolor=black color of grid
145  
146 axeswidth=1 width (in points) of axes
147  
148 ticwidth=axeswidth width (in points) of tic marks
149  
150 gridwidth=axeswidth width (in points) of grid lines
151  
152 style=seismic normal (axis 1 horizontal, axis 2 vertical) or
153  
154 seismic (axis 1 vertical, axis 2 horizontal)
155  
156 legend=0 =1 display the color scale
157  
158 lnice=0 =1 nice legend arrangement
159  
160 (overrides ybox,lx,width,height parameters)
161  
162 lstyle=vertleft Vertical, axis label on left side
163  
164 =vertright (Vertical, axis label on right side)
165  
166 =horibottom (Horizontal, axis label on bottom)
167  
168 units= unit label for legend
169  
170 legendfont=times_roman10 font name for title
171  
172 following are defaults for lstyle=0. They are changed for other lstyles
173  
174 lwidth=1.2 colorscale (legend) width in inches
175  
176 lheight=height/3 colorscale (legend) height in inches
177  
178 lx=1.0 colorscale (legend) x-position in inches
179  
180 ly=(height-lheight)/2+xybox colorscale (legend) y-position in pixels
181  
182 lbeg= lmin or wclip-5*perc value at which legend axis begins
183  
184 lend= lmax or bclip+5*perc value at which legend axis ends
185  
186 ldnum=0.0 numbered tic interval on legend axis (0.0 for automatic)
187  
188 lfnum=lmin first numbered tic on legend axis (used if d1num not 0.0)
189  
190 lntic=1 number of tics per numbered tic on legend axis
191  
192 lgrid=none grid lines on legend axis - none, dot, dash, or solid
193  
194  
195  
196 curve=curve1,curve2,... file(s) containing points to draw curve(s)
197  
198 npair=n1,n2,n2,... number(s) of pairs in each file
199  
200 curvecolor=black,.. color of curve(s)
201  
202 curvewidth=axeswidth width (in points) of curve(s)
203  
204 curvedash=0 solid curve(s), dash indices 1,...,11 produce
205  
206 curve(s) with various dash styles
207  
208  
209  
210 infile=none filename of second attribute n1xn2 array
211  
212 values must be from range 0.0 - 1.0
213  
214 (plain unformatted C-style file)
215  
216 bckgr=0.5 background gray value
217  
218  
219  
220 NOTES:
221  
222 The curve file is an ascii file with the points specified as x1 x2
223  
224 pairs, one pair to a line. A "vector" of curve files and curve
225  
226 colors may be specified as curvefile=file1,file2,etc.
227  
228 and curvecolor=color1,color2,etc, and the number of pairs of values
229  
230 in each file as npair=npair1,npair2,... .
231  
232  
233  
234 You may eliminate the blocky appearance of psimages by adjusting the
235  
236 d1s= and d2s= parameters, so that psimages appear similar to ximages.
237  
238  
239  
240 All color specifications may also be made in X Window style Hex format
241  
242 example: axescolor=#255
243  
244  
245  
246 Some example colormap settings:
247  
248 red white blue: wrgb=1.0,0,0 grgb=1.0,1.0,1.0 brgb=0,0,1.0
249  
250 white red blue: wrgb=1.0,1.0,1.0 grgb=1.0,0.0,0.0 brgb=0,0,1.0
251  
252 blue red white: wrgb=0.0,0.0,1.0 grgb=1.0,0.0,0.0 brgb=1.0,1.0,1.0
253  
254 red green blue: wrgb=1.0,0,0 grgb=0,1.0,0 brgb=0,0,1.0
255  
256 orange light-blue green: wrgb=1.0,.5,0 grgb=0,.7,1.0 brgb=0,1.0,0
257  
258 red light-blue dark blue: wrgb=0.0,0,1.0 grgb=0,1.0,1.0 brgb=0,0,1.0
259  
260  
261  
262 Legal font names are:
263  
264 AvantGarde-Book AvantGarde-BookOblique AvantGarde-Demi AvantGarde-DemiOblique"
265  
266 Bookman-Demi Bookman-DemiItalic Bookman-Light Bookman-LightItalic
267  
268 Courier Courier-Bold Courier-BoldOblique Courier-Oblique
269  
270 Helvetica Helvetica-Bold Helvetica-BoldOblique Helvetica-Oblique
271  
272 Helvetica-Narrow Helvetica-Narrow-Bold Helvetica-Narrow-BoldOblique
273  
274 Helvetica-Narrow-Oblique NewCentrySchlbk-Bold"
275  
276 NewCenturySchlbk-BoldItalic NewCenturySchlbk-Roman Palatino-Bold
277  
278 Palatino-BoldItalic Palatino-Italics Palatino-Roman
279  
280 SanSerif-Bold SanSerif-BoldItalic SanSerif-Roman
281  
282 Symbol Times-Bold Times-BoldItalic
283  
284 Times-Roman Times-Italic ZapfChancery-MediumItalic
285  
286  
287  
288  
289  
290  
291  
292 Author: Dave Hale, Colorado School of Mines, 05/29/90
293  
294 MODIFIED: Craig Artley, Colorado School of Mines, 08/30/91
295  
296 BoundingBox moved to top of PostScript output
297  
298 MODIFIED: Craig Artley, Colorado School of Mines, 12/16/93
299  
300 Added color options (Courtesy of Dave Hale, Advance Geophysical).
301  
302 Modified: Morten Wendell Pedersen, Aarhus University, 23/3-97
303  
304 Added ticwidth,axeswidth, gridwidth parameters
305  
306 MODIFIED: Torsten Schoenfelder, Koeln, Germany 006/07/97
307  
308 colorbar (legend) (as in ximage (by Berend Scheffers, Delft))
309  
310 MODIFIED: Brian K. Macy, Phillips Petroleum, 01/14/99
311  
312 Added curve plotting option
313  
314 MODIFIED: Torsten Schoenfelder, Koeln, Germany 02/10/99
315  
316 color scale with interpolation of three colors
317  
318 MODIFIED: Ekkehart Tessmer, University of Hamburg, Germany, 08/22/2007
319  
320 Added dashing option to curve plotting
321  
322  
323  
324 =head2 User's notes (Juan Lorenzo)
325 untested
326  
327 =cut
328  
329  
330 =head2 CHANGES and their DATES
331  
332 =cut
333  
334 use Moose;
335 our $VERSION = '0.0.1';
336  
337  
338 =head2 Import packages
339  
340 =cut
341  
342 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
343  
344 use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
345 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
346  
347  
348 =head2 instantiation of packages
349  
350 =cut
351  
352 my $get = L_SU_global_constants->new();
353 my $Project = Project_config->new();
354 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
355 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
356 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
357  
358 my $var = $get->var();
359 my $on = $var->{_on};
360 my $off = $var->{_off};
361 my $true = $var->{_true};
362 my $false = $var->{_false};
363 my $empty_string = $var->{_empty_string};
364  
365 =head2 Encapsulated
366 hash of private variables
367  
368 =cut
369  
370 my $psimage = {
371 _axescolor => '',
372 _axeswidth => '',
373 _bckgr => '',
374 _bclip => '',
375 _bhls => '',
376 _bperc => '',
377 _bps => '',
378 _brgb => '',
379 _clip => '',
380 _curve => '',
381 _curvecolor => '',
382 _curvedash => '',
383 _curvefile => '',
384 _curvewidth => '',
385 _d1 => '',
386 _d1num => '',
387 _d1s => '',
388 _d2 => '',
389 _d2num => '',
390 _d2s => '',
391 _f1 => '',
392 _f1num => '',
393 _f2 => '',
394 _f2num => '',
395 _ghls => '',
396 _grgb => '',
397 _grid1 => '',
398 _grid2 => '',
399 _gridcolor => '',
400 _gridwidth => '',
401 _height => '',
402 _infile => '',
403 _label1 => '',
404 _label2 => '',
405 _labelfont => '',
406 _labelsize => '',
407 _lbeg => '',
408 _ldnum => '',
409 _legend => '',
410 _legendfont => '',
411 _lend => '',
412 _lfnum => '',
413 _lgrid => '',
414 _lheight => '',
415 _lnice => '',
416 _lntic => '',
417 _lstyle => '',
418 _lwidth => '',
419 _lx => '',
420 _ly => '',
421 _n1 => '',
422 _n1tic => '',
423 _n2 => '',
424 _n2tic => '',
425 _npair => '',
426 _perc => '',
427 _style => '',
428 _threecolor => '',
429 _ticwidth => '',
430 _title => '',
431 _titlecolor => '',
432 _titlefont => '',
433 _titlesize => '',
434 _units => '',
435 _verbose => '',
436 _wclip => '',
437 _whls => '',
438 _width => '',
439 _wperc => '',
440 _wrgb => '',
441 _x1beg => '',
442 _x1end => '',
443 _x2beg => '',
444 _x2end => '',
445 _xbox => '',
446 _ybox => '',
447 _Step => '',
448 _note => '',
449  
450 };
451  
452 =head2 sub Step
453  
454 collects switches and assembles bash instructions
455 by adding the program name
456  
457 =cut
458  
459 sub Step {
460  
461 $psimage->{_Step} = 'psimage'.$psimage->{_Step};
462 return ( $psimage->{_Step} );
463  
464 }
465  
466  
467 =head2 sub note
468  
469 collects switches and assembles bash instructions
470 by adding the program name
471  
472 =cut
473  
474 sub note {
475  
476 $psimage->{_note} = 'psimage'.$psimage->{_note};
477 return ( $psimage->{_note} );
478  
479 }
480  
481  
482  
483 =head2 sub clear
484  
485 =cut
486  
487 sub clear {
488  
489 $psimage->{_axescolor} = '';
490 $psimage->{_axeswidth} = '';
491 $psimage->{_bckgr} = '';
492 $psimage->{_bclip} = '';
493 $psimage->{_bhls} = '';
494 $psimage->{_bperc} = '';
495 $psimage->{_bps} = '';
496 $psimage->{_brgb} = '';
497 $psimage->{_clip} = '';
498 $psimage->{_curve} = '';
499 $psimage->{_curvecolor} = '';
500 $psimage->{_curvedash} = '';
501 $psimage->{_curvefile} = '';
502 $psimage->{_curvewidth} = '';
503 $psimage->{_d1} = '';
504 $psimage->{_d1num} = '';
505 $psimage->{_d1s} = '';
506 $psimage->{_d2} = '';
507 $psimage->{_d2num} = '';
508 $psimage->{_d2s} = '';
509 $psimage->{_f1} = '';
510 $psimage->{_f1num} = '';
511 $psimage->{_f2} = '';
512 $psimage->{_f2num} = '';
513 $psimage->{_ghls} = '';
514 $psimage->{_grgb} = '';
515 $psimage->{_grid1} = '';
516 $psimage->{_grid2} = '';
517 $psimage->{_gridcolor} = '';
518 $psimage->{_gridwidth} = '';
519 $psimage->{_height} = '';
520 $psimage->{_infile} = '';
521 $psimage->{_label1} = '';
522 $psimage->{_label2} = '';
523 $psimage->{_labelfont} = '';
524 $psimage->{_labelsize} = '';
525 $psimage->{_lbeg} = '';
526 $psimage->{_ldnum} = '';
527 $psimage->{_legend} = '';
528 $psimage->{_legendfont} = '';
529 $psimage->{_lend} = '';
530 $psimage->{_lfnum} = '';
531 $psimage->{_lgrid} = '';
532 $psimage->{_lheight} = '';
533 $psimage->{_lnice} = '';
534 $psimage->{_lntic} = '';
535 $psimage->{_lstyle} = '';
536 $psimage->{_lwidth} = '';
537 $psimage->{_lx} = '';
538 $psimage->{_ly} = '';
539 $psimage->{_n1} = '';
540 $psimage->{_n1tic} = '';
541 $psimage->{_n2} = '';
542 $psimage->{_n2tic} = '';
543 $psimage->{_npair} = '';
544 $psimage->{_perc} = '';
545 $psimage->{_style} = '';
546 $psimage->{_threecolor} = '';
547 $psimage->{_ticwidth} = '';
548 $psimage->{_title} = '';
549 $psimage->{_titlecolor} = '';
550 $psimage->{_titlefont} = '';
551 $psimage->{_titlesize} = '';
552 $psimage->{_units} = '';
553 $psimage->{_verbose} = '';
554 $psimage->{_wclip} = '';
555 $psimage->{_whls} = '';
556 $psimage->{_width} = '';
557 $psimage->{_wperc} = '';
558 $psimage->{_wrgb} = '';
559 $psimage->{_x1beg} = '';
560 $psimage->{_x1end} = '';
561 $psimage->{_x2beg} = '';
562 $psimage->{_x2end} = '';
563 $psimage->{_xbox} = '';
564 $psimage->{_ybox} = '';
565 $psimage->{_Step} = '';
566 $psimage->{_note} = '';
567 }
568  
569  
570 =head2 sub axescolor
571  
572  
573 =cut
574  
575 sub axescolor {
576  
577 my ( $self,$axescolor ) = @_;
578 if ( $axescolor ne $empty_string ) {
579  
580 $psimage->{_axescolor} = $axescolor;
581 $psimage->{_note} = $psimage->{_note}.' axescolor='.$psimage->{_axescolor};
582 $psimage->{_Step} = $psimage->{_Step}.' axescolor='.$psimage->{_axescolor};
583  
584 } else {
585 print("psimage, axescolor, missing axescolor,\n");
586 }
587 }
588  
589  
590 =head2 sub axeswidth
591  
592  
593 =cut
594  
595 sub axeswidth {
596  
597 my ( $self,$axeswidth ) = @_;
598 if ( $axeswidth ne $empty_string ) {
599  
600 $psimage->{_axeswidth} = $axeswidth;
601 $psimage->{_note} = $psimage->{_note}.' axeswidth='.$psimage->{_axeswidth};
602 $psimage->{_Step} = $psimage->{_Step}.' axeswidth='.$psimage->{_axeswidth};
603  
604 } else {
605 print("psimage, axeswidth, missing axeswidth,\n");
606 }
607 }
608  
609  
610 =head2 sub bckgr
611  
612  
613 =cut
614  
615 sub bckgr {
616  
617 my ( $self,$bckgr ) = @_;
618 if ( $bckgr ne $empty_string ) {
619  
620 $psimage->{_bckgr} = $bckgr;
621 $psimage->{_note} = $psimage->{_note}.' bckgr='.$psimage->{_bckgr};
622 $psimage->{_Step} = $psimage->{_Step}.' bckgr='.$psimage->{_bckgr};
623  
624 } else {
625 print("psimage, bckgr, missing bckgr,\n");
626 }
627 }
628  
629  
630 =head2 sub bclip
631  
632  
633 =cut
634  
635 sub bclip {
636  
637 my ( $self,$bclip ) = @_;
638 if ( $bclip ne $empty_string ) {
639  
640 $psimage->{_bclip} = $bclip;
641 $psimage->{_note} = $psimage->{_note}.' bclip='.$psimage->{_bclip};
642 $psimage->{_Step} = $psimage->{_Step}.' bclip='.$psimage->{_bclip};
643  
644 } else {
645 print("psimage, bclip, missing bclip,\n");
646 }
647 }
648  
649  
650 =head2 sub bhls
651  
652  
653 =cut
654  
655 sub bhls {
656  
657 my ( $self,$bhls ) = @_;
658 if ( $bhls ne $empty_string ) {
659  
660 $psimage->{_bhls} = $bhls;
661 $psimage->{_note} = $psimage->{_note}.' bhls='.$psimage->{_bhls};
662 $psimage->{_Step} = $psimage->{_Step}.' bhls='.$psimage->{_bhls};
663  
664 } else {
665 print("psimage, bhls, missing bhls,\n");
666 }
667 }
668  
669  
670 =head2 sub bperc
671  
672  
673 =cut
674  
675 sub bperc {
676  
677 my ( $self,$bperc ) = @_;
678 if ( $bperc ne $empty_string ) {
679  
680 $psimage->{_bperc} = $bperc;
681 $psimage->{_note} = $psimage->{_note}.' bperc='.$psimage->{_bperc};
682 $psimage->{_Step} = $psimage->{_Step}.' bperc='.$psimage->{_bperc};
683  
684 } else {
685 print("psimage, bperc, missing bperc,\n");
686 }
687 }
688  
689  
690 =head2 sub bps
691  
692  
693 =cut
694  
695 sub bps {
696  
697 my ( $self,$bps ) = @_;
698 if ( $bps ne $empty_string ) {
699  
700 $psimage->{_bps} = $bps;
701 $psimage->{_note} = $psimage->{_note}.' bps='.$psimage->{_bps};
702 $psimage->{_Step} = $psimage->{_Step}.' bps='.$psimage->{_bps};
703  
704 } else {
705 print("psimage, bps, missing bps,\n");
706 }
707 }
708  
709  
710 =head2 sub brgb
711  
712  
713 =cut
714  
715 sub brgb {
716  
717 my ( $self,$brgb ) = @_;
718 if ( $brgb ne $empty_string ) {
719  
720 $psimage->{_brgb} = $brgb;
721 $psimage->{_note} = $psimage->{_note}.' brgb='.$psimage->{_brgb};
722 $psimage->{_Step} = $psimage->{_Step}.' brgb='.$psimage->{_brgb};
723  
724 } else {
725 print("psimage, brgb, missing brgb,\n");
726 }
727 }
728  
729  
730 =head2 sub clip
731  
732  
733 =cut
734  
735 sub clip {
736  
737 my ( $self,$clip ) = @_;
738 if ( $clip ne $empty_string ) {
739  
740 $psimage->{_clip} = $clip;
741 $psimage->{_note} = $psimage->{_note}.' clip='.$psimage->{_clip};
742 $psimage->{_Step} = $psimage->{_Step}.' clip='.$psimage->{_clip};
743  
744 } else {
745 print("psimage, clip, missing clip,\n");
746 }
747 }
748  
749  
750 =head2 sub curve
751  
752  
753 =cut
754  
755 sub curve {
756  
757 my ( $self,$curve ) = @_;
758 if ( $curve ne $empty_string ) {
759  
760 $psimage->{_curve} = $curve;
761 $psimage->{_note} = $psimage->{_note}.' curve='.$psimage->{_curve};
762 $psimage->{_Step} = $psimage->{_Step}.' curve='.$psimage->{_curve};
763  
764 } else {
765 print("psimage, curve, missing curve,\n");
766 }
767 }
768  
769  
770 =head2 sub curvecolor
771  
772  
773 =cut
774  
775 sub curvecolor {
776  
777 my ( $self,$curvecolor ) = @_;
778 if ( $curvecolor ne $empty_string ) {
779  
780 $psimage->{_curvecolor} = $curvecolor;
781 $psimage->{_note} = $psimage->{_note}.' curvecolor='.$psimage->{_curvecolor};
782 $psimage->{_Step} = $psimage->{_Step}.' curvecolor='.$psimage->{_curvecolor};
783  
784 } else {
785 print("psimage, curvecolor, missing curvecolor,\n");
786 }
787 }
788  
789  
790 =head2 sub curvedash
791  
792  
793 =cut
794  
795 sub curvedash {
796  
797 my ( $self,$curvedash ) = @_;
798 if ( $curvedash ne $empty_string ) {
799  
800 $psimage->{_curvedash} = $curvedash;
801 $psimage->{_note} = $psimage->{_note}.' curvedash='.$psimage->{_curvedash};
802 $psimage->{_Step} = $psimage->{_Step}.' curvedash='.$psimage->{_curvedash};
803  
804 } else {
805 print("psimage, curvedash, missing curvedash,\n");
806 }
807 }
808  
809  
810 =head2 sub curvefile
811  
812  
813 =cut
814  
815 sub curvefile {
816  
817 my ( $self,$curvefile ) = @_;
818 if ( $curvefile ne $empty_string ) {
819  
820 $psimage->{_curvefile} = $curvefile;
821 $psimage->{_note} = $psimage->{_note}.' curvefile='.$psimage->{_curvefile};
822 $psimage->{_Step} = $psimage->{_Step}.' curvefile='.$psimage->{_curvefile};
823  
824 } else {
825 print("psimage, curvefile, missing curvefile,\n");
826 }
827 }
828  
829  
830 =head2 sub curvewidth
831  
832  
833 =cut
834  
835 sub curvewidth {
836  
837 my ( $self,$curvewidth ) = @_;
838 if ( $curvewidth ne $empty_string ) {
839  
840 $psimage->{_curvewidth} = $curvewidth;
841 $psimage->{_note} = $psimage->{_note}.' curvewidth='.$psimage->{_curvewidth};
842 $psimage->{_Step} = $psimage->{_Step}.' curvewidth='.$psimage->{_curvewidth};
843  
844 } else {
845 print("psimage, curvewidth, missing curvewidth,\n");
846 }
847 }
848  
849  
850 =head2 sub d1
851  
852  
853 =cut
854  
855 sub d1 {
856  
857 my ( $self,$d1 ) = @_;
858 if ( $d1 ne $empty_string ) {
859  
860 $psimage->{_d1} = $d1;
861 $psimage->{_note} = $psimage->{_note}.' d1='.$psimage->{_d1};
862 $psimage->{_Step} = $psimage->{_Step}.' d1='.$psimage->{_d1};
863  
864 } else {
865 print("psimage, d1, missing d1,\n");
866 }
867 }
868  
869  
870 =head2 sub d1num
871  
872  
873 =cut
874  
875 sub d1num {
876  
877 my ( $self,$d1num ) = @_;
878 if ( $d1num ne $empty_string ) {
879  
880 $psimage->{_d1num} = $d1num;
881 $psimage->{_note} = $psimage->{_note}.' d1num='.$psimage->{_d1num};
882 $psimage->{_Step} = $psimage->{_Step}.' d1num='.$psimage->{_d1num};
883  
884 } else {
885 print("psimage, d1num, missing d1num,\n");
886 }
887 }
888  
889  
890 =head2 sub d1s
891  
892  
893 =cut
894  
895 sub d1s {
896  
897 my ( $self,$d1s ) = @_;
898 if ( $d1s ne $empty_string ) {
899  
900 $psimage->{_d1s} = $d1s;
901 $psimage->{_note} = $psimage->{_note}.' d1s='.$psimage->{_d1s};
902 $psimage->{_Step} = $psimage->{_Step}.' d1s='.$psimage->{_d1s};
903  
904 } else {
905 print("psimage, d1s, missing d1s,\n");
906 }
907 }
908  
909  
910 =head2 sub d2
911  
912  
913 =cut
914  
915 sub d2 {
916  
917 my ( $self,$d2 ) = @_;
918 if ( $d2 ne $empty_string ) {
919  
920 $psimage->{_d2} = $d2;
921 $psimage->{_note} = $psimage->{_note}.' d2='.$psimage->{_d2};
922 $psimage->{_Step} = $psimage->{_Step}.' d2='.$psimage->{_d2};
923  
924 } else {
925 print("psimage, d2, missing d2,\n");
926 }
927 }
928  
929  
930 =head2 sub d2num
931  
932  
933 =cut
934  
935 sub d2num {
936  
937 my ( $self,$d2num ) = @_;
938 if ( $d2num ne $empty_string ) {
939  
940 $psimage->{_d2num} = $d2num;
941 $psimage->{_note} = $psimage->{_note}.' d2num='.$psimage->{_d2num};
942 $psimage->{_Step} = $psimage->{_Step}.' d2num='.$psimage->{_d2num};
943  
944 } else {
945 print("psimage, d2num, missing d2num,\n");
946 }
947 }
948  
949  
950 =head2 sub d2s
951  
952  
953 =cut
954  
955 sub d2s {
956  
957 my ( $self,$d2s ) = @_;
958 if ( $d2s ne $empty_string ) {
959  
960 $psimage->{_d2s} = $d2s;
961 $psimage->{_note} = $psimage->{_note}.' d2s='.$psimage->{_d2s};
962 $psimage->{_Step} = $psimage->{_Step}.' d2s='.$psimage->{_d2s};
963  
964 } else {
965 print("psimage, d2s, missing d2s,\n");
966 }
967 }
968  
969  
970 =head2 sub f1
971  
972  
973 =cut
974  
975 sub f1 {
976  
977 my ( $self,$f1 ) = @_;
978 if ( $f1 ne $empty_string ) {
979  
980 $psimage->{_f1} = $f1;
981 $psimage->{_note} = $psimage->{_note}.' f1='.$psimage->{_f1};
982 $psimage->{_Step} = $psimage->{_Step}.' f1='.$psimage->{_f1};
983  
984 } else {
985 print("psimage, f1, missing f1,\n");
986 }
987 }
988  
989  
990 =head2 sub f1num
991  
992  
993 =cut
994  
995 sub f1num {
996  
997 my ( $self,$f1num ) = @_;
998 if ( $f1num ne $empty_string ) {
999  
1000 $psimage->{_f1num} = $f1num;
1001 $psimage->{_note} = $psimage->{_note}.' f1num='.$psimage->{_f1num};
1002 $psimage->{_Step} = $psimage->{_Step}.' f1num='.$psimage->{_f1num};
1003  
1004 } else {
1005 print("psimage, f1num, missing f1num,\n");
1006 }
1007 }
1008  
1009  
1010 =head2 sub f2
1011  
1012  
1013 =cut
1014  
1015 sub f2 {
1016  
1017 my ( $self,$f2 ) = @_;
1018 if ( $f2 ne $empty_string ) {
1019  
1020 $psimage->{_f2} = $f2;
1021 $psimage->{_note} = $psimage->{_note}.' f2='.$psimage->{_f2};
1022 $psimage->{_Step} = $psimage->{_Step}.' f2='.$psimage->{_f2};
1023  
1024 } else {
1025 print("psimage, f2, missing f2,\n");
1026 }
1027 }
1028  
1029  
1030 =head2 sub f2num
1031  
1032  
1033 =cut
1034  
1035 sub f2num {
1036  
1037 my ( $self,$f2num ) = @_;
1038 if ( $f2num ne $empty_string ) {
1039  
1040 $psimage->{_f2num} = $f2num;
1041 $psimage->{_note} = $psimage->{_note}.' f2num='.$psimage->{_f2num};
1042 $psimage->{_Step} = $psimage->{_Step}.' f2num='.$psimage->{_f2num};
1043  
1044 } else {
1045 print("psimage, f2num, missing f2num,\n");
1046 }
1047 }
1048  
1049  
1050 =head2 sub ghls
1051  
1052  
1053 =cut
1054  
1055 sub ghls {
1056  
1057 my ( $self,$ghls ) = @_;
1058 if ( $ghls ne $empty_string ) {
1059  
1060 $psimage->{_ghls} = $ghls;
1061 $psimage->{_note} = $psimage->{_note}.' ghls='.$psimage->{_ghls};
1062 $psimage->{_Step} = $psimage->{_Step}.' ghls='.$psimage->{_ghls};
1063  
1064 } else {
1065 print("psimage, ghls, missing ghls,\n");
1066 }
1067 }
1068  
1069  
1070 =head2 sub grgb
1071  
1072  
1073 =cut
1074  
1075 sub grgb {
1076  
1077 my ( $self,$grgb ) = @_;
1078 if ( $grgb ne $empty_string ) {
1079  
1080 $psimage->{_grgb} = $grgb;
1081 $psimage->{_note} = $psimage->{_note}.' grgb='.$psimage->{_grgb};
1082 $psimage->{_Step} = $psimage->{_Step}.' grgb='.$psimage->{_grgb};
1083  
1084 } else {
1085 print("psimage, grgb, missing grgb,\n");
1086 }
1087 }
1088  
1089  
1090 =head2 sub grid1
1091  
1092  
1093 =cut
1094  
1095 sub grid1 {
1096  
1097 my ( $self,$grid1 ) = @_;
1098 if ( $grid1 ne $empty_string ) {
1099  
1100 $psimage->{_grid1} = $grid1;
1101 $psimage->{_note} = $psimage->{_note}.' grid1='.$psimage->{_grid1};
1102 $psimage->{_Step} = $psimage->{_Step}.' grid1='.$psimage->{_grid1};
1103  
1104 } else {
1105 print("psimage, grid1, missing grid1,\n");
1106 }
1107 }
1108  
1109  
1110 =head2 sub grid2
1111  
1112  
1113 =cut
1114  
1115 sub grid2 {
1116  
1117 my ( $self,$grid2 ) = @_;
1118 if ( $grid2 ne $empty_string ) {
1119  
1120 $psimage->{_grid2} = $grid2;
1121 $psimage->{_note} = $psimage->{_note}.' grid2='.$psimage->{_grid2};
1122 $psimage->{_Step} = $psimage->{_Step}.' grid2='.$psimage->{_grid2};
1123  
1124 } else {
1125 print("psimage, grid2, missing grid2,\n");
1126 }
1127 }
1128  
1129  
1130 =head2 sub gridcolor
1131  
1132  
1133 =cut
1134  
1135 sub gridcolor {
1136  
1137 my ( $self,$gridcolor ) = @_;
1138 if ( $gridcolor ne $empty_string ) {
1139  
1140 $psimage->{_gridcolor} = $gridcolor;
1141 $psimage->{_note} = $psimage->{_note}.' gridcolor='.$psimage->{_gridcolor};
1142 $psimage->{_Step} = $psimage->{_Step}.' gridcolor='.$psimage->{_gridcolor};
1143  
1144 } else {
1145 print("psimage, gridcolor, missing gridcolor,\n");
1146 }
1147 }
1148  
1149  
1150 =head2 sub gridwidth
1151  
1152  
1153 =cut
1154  
1155 sub gridwidth {
1156  
1157 my ( $self,$gridwidth ) = @_;
1158 if ( $gridwidth ne $empty_string ) {
1159  
1160 $psimage->{_gridwidth} = $gridwidth;
1161 $psimage->{_note} = $psimage->{_note}.' gridwidth='.$psimage->{_gridwidth};
1162 $psimage->{_Step} = $psimage->{_Step}.' gridwidth='.$psimage->{_gridwidth};
1163  
1164 } else {
1165 print("psimage, gridwidth, missing gridwidth,\n");
1166 }
1167 }
1168  
1169  
1170 =head2 sub height
1171  
1172  
1173 =cut
1174  
1175 sub height {
1176  
1177 my ( $self,$height ) = @_;
1178 if ( $height ne $empty_string ) {
1179  
1180 $psimage->{_height} = $height;
1181 $psimage->{_note} = $psimage->{_note}.' height='.$psimage->{_height};
1182 $psimage->{_Step} = $psimage->{_Step}.' height='.$psimage->{_height};
1183  
1184 } else {
1185 print("psimage, height, missing height,\n");
1186 }
1187 }
1188  
1189  
1190 =head2 sub infile
1191  
1192  
1193 =cut
1194  
1195 sub infile {
1196  
1197 my ( $self,$infile ) = @_;
1198 if ( $infile ne $empty_string ) {
1199  
1200 $psimage->{_infile} = $infile;
1201 $psimage->{_note} = $psimage->{_note}.' infile='.$psimage->{_infile};
1202 $psimage->{_Step} = $psimage->{_Step}.' infile='.$psimage->{_infile};
1203  
1204 } else {
1205 print("psimage, infile, missing infile,\n");
1206 }
1207 }
1208  
1209  
1210 =head2 sub label1
1211  
1212  
1213 =cut
1214  
1215 sub label1 {
1216  
1217 my ( $self,$label1 ) = @_;
1218 if ( $label1 ne $empty_string ) {
1219  
1220 $psimage->{_label1} = $label1;
1221 $psimage->{_note} = $psimage->{_note}.' label1='.$psimage->{_label1};
1222 $psimage->{_Step} = $psimage->{_Step}.' label1='.$psimage->{_label1};
1223  
1224 } else {
1225 print("psimage, label1, missing label1,\n");
1226 }
1227 }
1228  
1229  
1230 =head2 sub label2
1231  
1232  
1233 =cut
1234  
1235 sub label2 {
1236  
1237 my ( $self,$label2 ) = @_;
1238 if ( $label2 ne $empty_string ) {
1239  
1240 $psimage->{_label2} = $label2;
1241 $psimage->{_note} = $psimage->{_note}.' label2='.$psimage->{_label2};
1242 $psimage->{_Step} = $psimage->{_Step}.' label2='.$psimage->{_label2};
1243  
1244 } else {
1245 print("psimage, label2, missing label2,\n");
1246 }
1247 }
1248  
1249  
1250 =head2 sub labelfont
1251  
1252  
1253 =cut
1254  
1255 sub labelfont {
1256  
1257 my ( $self,$labelfont ) = @_;
1258 if ( $labelfont ne $empty_string ) {
1259  
1260 $psimage->{_labelfont} = $labelfont;
1261 $psimage->{_note} = $psimage->{_note}.' labelfont='.$psimage->{_labelfont};
1262 $psimage->{_Step} = $psimage->{_Step}.' labelfont='.$psimage->{_labelfont};
1263  
1264 } else {
1265 print("psimage, labelfont, missing labelfont,\n");
1266 }
1267 }
1268  
1269  
1270 =head2 sub labelsize
1271  
1272  
1273 =cut
1274  
1275 sub labelsize {
1276  
1277 my ( $self,$labelsize ) = @_;
1278 if ( $labelsize ne $empty_string ) {
1279  
1280 $psimage->{_labelsize} = $labelsize;
1281 $psimage->{_note} = $psimage->{_note}.' labelsize='.$psimage->{_labelsize};
1282 $psimage->{_Step} = $psimage->{_Step}.' labelsize='.$psimage->{_labelsize};
1283  
1284 } else {
1285 print("psimage, labelsize, missing labelsize,\n");
1286 }
1287 }
1288  
1289  
1290 =head2 sub lbeg
1291  
1292  
1293 =cut
1294  
1295 sub lbeg {
1296  
1297 my ( $self,$lbeg ) = @_;
1298 if ( $lbeg ne $empty_string ) {
1299  
1300 $psimage->{_lbeg} = $lbeg;
1301 $psimage->{_note} = $psimage->{_note}.' lbeg='.$psimage->{_lbeg};
1302 $psimage->{_Step} = $psimage->{_Step}.' lbeg='.$psimage->{_lbeg};
1303  
1304 } else {
1305 print("psimage, lbeg, missing lbeg,\n");
1306 }
1307 }
1308  
1309  
1310 =head2 sub ldnum
1311  
1312  
1313 =cut
1314  
1315 sub ldnum {
1316  
1317 my ( $self,$ldnum ) = @_;
1318 if ( $ldnum ne $empty_string ) {
1319  
1320 $psimage->{_ldnum} = $ldnum;
1321 $psimage->{_note} = $psimage->{_note}.' ldnum='.$psimage->{_ldnum};
1322 $psimage->{_Step} = $psimage->{_Step}.' ldnum='.$psimage->{_ldnum};
1323  
1324 } else {
1325 print("psimage, ldnum, missing ldnum,\n");
1326 }
1327 }
1328  
1329  
1330 =head2 sub legend
1331  
1332  
1333 =cut
1334  
1335 sub legend {
1336  
1337 my ( $self,$legend ) = @_;
1338 if ( $legend ne $empty_string ) {
1339  
1340 $psimage->{_legend} = $legend;
1341 $psimage->{_note} = $psimage->{_note}.' legend='.$psimage->{_legend};
1342 $psimage->{_Step} = $psimage->{_Step}.' legend='.$psimage->{_legend};
1343  
1344 } else {
1345 print("psimage, legend, missing legend,\n");
1346 }
1347 }
1348  
1349  
1350 =head2 sub legendfont
1351  
1352  
1353 =cut
1354  
1355 sub legendfont {
1356  
1357 my ( $self,$legendfont ) = @_;
1358 if ( $legendfont ne $empty_string ) {
1359  
1360 $psimage->{_legendfont} = $legendfont;
1361 $psimage->{_note} = $psimage->{_note}.' legendfont='.$psimage->{_legendfont};
1362 $psimage->{_Step} = $psimage->{_Step}.' legendfont='.$psimage->{_legendfont};
1363  
1364 } else {
1365 print("psimage, legendfont, missing legendfont,\n");
1366 }
1367 }
1368  
1369  
1370 =head2 sub lend
1371  
1372  
1373 =cut
1374  
1375 sub lend {
1376  
1377 my ( $self,$lend ) = @_;
1378 if ( $lend ne $empty_string ) {
1379  
1380 $psimage->{_lend} = $lend;
1381 $psimage->{_note} = $psimage->{_note}.' lend='.$psimage->{_lend};
1382 $psimage->{_Step} = $psimage->{_Step}.' lend='.$psimage->{_lend};
1383  
1384 } else {
1385 print("psimage, lend, missing lend,\n");
1386 }
1387 }
1388  
1389  
1390 =head2 sub lfnum
1391  
1392  
1393 =cut
1394  
1395 sub lfnum {
1396  
1397 my ( $self,$lfnum ) = @_;
1398 if ( $lfnum ne $empty_string ) {
1399  
1400 $psimage->{_lfnum} = $lfnum;
1401 $psimage->{_note} = $psimage->{_note}.' lfnum='.$psimage->{_lfnum};
1402 $psimage->{_Step} = $psimage->{_Step}.' lfnum='.$psimage->{_lfnum};
1403  
1404 } else {
1405 print("psimage, lfnum, missing lfnum,\n");
1406 }
1407 }
1408  
1409  
1410 =head2 sub lgrid
1411  
1412  
1413 =cut
1414  
1415 sub lgrid {
1416  
1417 my ( $self,$lgrid ) = @_;
1418 if ( $lgrid ne $empty_string ) {
1419  
1420 $psimage->{_lgrid} = $lgrid;
1421 $psimage->{_note} = $psimage->{_note}.' lgrid='.$psimage->{_lgrid};
1422 $psimage->{_Step} = $psimage->{_Step}.' lgrid='.$psimage->{_lgrid};
1423  
1424 } else {
1425 print("psimage, lgrid, missing lgrid,\n");
1426 }
1427 }
1428  
1429  
1430 =head2 sub lheight
1431  
1432  
1433 =cut
1434  
1435 sub lheight {
1436  
1437 my ( $self,$lheight ) = @_;
1438 if ( $lheight ne $empty_string ) {
1439  
1440 $psimage->{_lheight} = $lheight;
1441 $psimage->{_note} = $psimage->{_note}.' lheight='.$psimage->{_lheight};
1442 $psimage->{_Step} = $psimage->{_Step}.' lheight='.$psimage->{_lheight};
1443  
1444 } else {
1445 print("psimage, lheight, missing lheight,\n");
1446 }
1447 }
1448  
1449  
1450 =head2 sub lnice
1451  
1452  
1453 =cut
1454  
1455 sub lnice {
1456  
1457 my ( $self,$lnice ) = @_;
1458 if ( $lnice ne $empty_string ) {
1459  
1460 $psimage->{_lnice} = $lnice;
1461 $psimage->{_note} = $psimage->{_note}.' lnice='.$psimage->{_lnice};
1462 $psimage->{_Step} = $psimage->{_Step}.' lnice='.$psimage->{_lnice};
1463  
1464 } else {
1465 print("psimage, lnice, missing lnice,\n");
1466 }
1467 }
1468  
1469  
1470 =head2 sub lntic
1471  
1472  
1473 =cut
1474  
1475 sub lntic {
1476  
1477 my ( $self,$lntic ) = @_;
1478 if ( $lntic ne $empty_string ) {
1479  
1480 $psimage->{_lntic} = $lntic;
1481 $psimage->{_note} = $psimage->{_note}.' lntic='.$psimage->{_lntic};
1482 $psimage->{_Step} = $psimage->{_Step}.' lntic='.$psimage->{_lntic};
1483  
1484 } else {
1485 print("psimage, lntic, missing lntic,\n");
1486 }
1487 }
1488  
1489  
1490 =head2 sub lstyle
1491  
1492  
1493 =cut
1494  
1495 sub lstyle {
1496  
1497 my ( $self,$lstyle ) = @_;
1498 if ( $lstyle ne $empty_string ) {
1499  
1500 $psimage->{_lstyle} = $lstyle;
1501 $psimage->{_note} = $psimage->{_note}.' lstyle='.$psimage->{_lstyle};
1502 $psimage->{_Step} = $psimage->{_Step}.' lstyle='.$psimage->{_lstyle};
1503  
1504 } else {
1505 print("psimage, lstyle, missing lstyle,\n");
1506 }
1507 }
1508  
1509  
1510 =head2 sub lwidth
1511  
1512  
1513 =cut
1514  
1515 sub lwidth {
1516  
1517 my ( $self,$lwidth ) = @_;
1518 if ( $lwidth ne $empty_string ) {
1519  
1520 $psimage->{_lwidth} = $lwidth;
1521 $psimage->{_note} = $psimage->{_note}.' lwidth='.$psimage->{_lwidth};
1522 $psimage->{_Step} = $psimage->{_Step}.' lwidth='.$psimage->{_lwidth};
1523  
1524 } else {
1525 print("psimage, lwidth, missing lwidth,\n");
1526 }
1527 }
1528  
1529  
1530 =head2 sub lx
1531  
1532  
1533 =cut
1534  
1535 sub lx {
1536  
1537 my ( $self,$lx ) = @_;
1538 if ( $lx ne $empty_string ) {
1539  
1540 $psimage->{_lx} = $lx;
1541 $psimage->{_note} = $psimage->{_note}.' lx='.$psimage->{_lx};
1542 $psimage->{_Step} = $psimage->{_Step}.' lx='.$psimage->{_lx};
1543  
1544 } else {
1545 print("psimage, lx, missing lx,\n");
1546 }
1547 }
1548  
1549  
1550 =head2 sub ly
1551  
1552  
1553 =cut
1554  
1555 sub ly {
1556  
1557 my ( $self,$ly ) = @_;
1558 if ( $ly ne $empty_string ) {
1559  
1560 $psimage->{_ly} = $ly;
1561 $psimage->{_note} = $psimage->{_note}.' ly='.$psimage->{_ly};
1562 $psimage->{_Step} = $psimage->{_Step}.' ly='.$psimage->{_ly};
1563  
1564 } else {
1565 print("psimage, ly, missing ly,\n");
1566 }
1567 }
1568  
1569  
1570 =head2 sub n1
1571  
1572  
1573 =cut
1574  
1575 sub n1 {
1576  
1577 my ( $self,$n1 ) = @_;
1578 if ( $n1 ne $empty_string ) {
1579  
1580 $psimage->{_n1} = $n1;
1581 $psimage->{_note} = $psimage->{_note}.' n1='.$psimage->{_n1};
1582 $psimage->{_Step} = $psimage->{_Step}.' n1='.$psimage->{_n1};
1583  
1584 } else {
1585 print("psimage, n1, missing n1,\n");
1586 }
1587 }
1588  
1589  
1590 =head2 sub n1tic
1591  
1592  
1593 =cut
1594  
1595 sub n1tic {
1596  
1597 my ( $self,$n1tic ) = @_;
1598 if ( $n1tic ne $empty_string ) {
1599  
1600 $psimage->{_n1tic} = $n1tic;
1601 $psimage->{_note} = $psimage->{_note}.' n1tic='.$psimage->{_n1tic};
1602 $psimage->{_Step} = $psimage->{_Step}.' n1tic='.$psimage->{_n1tic};
1603  
1604 } else {
1605 print("psimage, n1tic, missing n1tic,\n");
1606 }
1607 }
1608  
1609  
1610 =head2 sub n2
1611  
1612  
1613 =cut
1614  
1615 sub n2 {
1616  
1617 my ( $self,$n2 ) = @_;
1618 if ( $n2 ne $empty_string ) {
1619  
1620 $psimage->{_n2} = $n2;
1621 $psimage->{_note} = $psimage->{_note}.' n2='.$psimage->{_n2};
1622 $psimage->{_Step} = $psimage->{_Step}.' n2='.$psimage->{_n2};
1623  
1624 } else {
1625 print("psimage, n2, missing n2,\n");
1626 }
1627 }
1628  
1629  
1630 =head2 sub n2tic
1631  
1632  
1633 =cut
1634  
1635 sub n2tic {
1636  
1637 my ( $self,$n2tic ) = @_;
1638 if ( $n2tic ne $empty_string ) {
1639  
1640 $psimage->{_n2tic} = $n2tic;
1641 $psimage->{_note} = $psimage->{_note}.' n2tic='.$psimage->{_n2tic};
1642 $psimage->{_Step} = $psimage->{_Step}.' n2tic='.$psimage->{_n2tic};
1643  
1644 } else {
1645 print("psimage, n2tic, missing n2tic,\n");
1646 }
1647 }
1648  
1649  
1650 =head2 sub npair
1651  
1652  
1653 =cut
1654  
1655 sub npair {
1656  
1657 my ( $self,$npair ) = @_;
1658 if ( $npair ne $empty_string ) {
1659  
1660 $psimage->{_npair} = $npair;
1661 $psimage->{_note} = $psimage->{_note}.' npair='.$psimage->{_npair};
1662 $psimage->{_Step} = $psimage->{_Step}.' npair='.$psimage->{_npair};
1663  
1664 } else {
1665 print("psimage, npair, missing npair,\n");
1666 }
1667 }
1668  
1669  
1670 =head2 sub perc
1671  
1672  
1673 =cut
1674  
1675 sub perc {
1676  
1677 my ( $self,$perc ) = @_;
1678 if ( $perc ne $empty_string ) {
1679  
1680 $psimage->{_perc} = $perc;
1681 $psimage->{_note} = $psimage->{_note}.' perc='.$psimage->{_perc};
1682 $psimage->{_Step} = $psimage->{_Step}.' perc='.$psimage->{_perc};
1683  
1684 } else {
1685 print("psimage, perc, missing perc,\n");
1686 }
1687 }
1688  
1689  
1690 =head2 sub style
1691  
1692  
1693 =cut
1694  
1695 sub style {
1696  
1697 my ( $self,$style ) = @_;
1698 if ( $style ne $empty_string ) {
1699  
1700 $psimage->{_style} = $style;
1701 $psimage->{_note} = $psimage->{_note}.' style='.$psimage->{_style};
1702 $psimage->{_Step} = $psimage->{_Step}.' style='.$psimage->{_style};
1703  
1704 } else {
1705 print("psimage, style, missing style,\n");
1706 }
1707 }
1708  
1709  
1710 =head2 sub threecolor
1711  
1712  
1713 =cut
1714  
1715 sub threecolor {
1716  
1717 my ( $self,$threecolor ) = @_;
1718 if ( $threecolor ne $empty_string ) {
1719  
1720 $psimage->{_threecolor} = $threecolor;
1721 $psimage->{_note} = $psimage->{_note}.' threecolor='.$psimage->{_threecolor};
1722 $psimage->{_Step} = $psimage->{_Step}.' threecolor='.$psimage->{_threecolor};
1723  
1724 } else {
1725 print("psimage, threecolor, missing threecolor,\n");
1726 }
1727 }
1728  
1729  
1730 =head2 sub ticwidth
1731  
1732  
1733 =cut
1734  
1735 sub ticwidth {
1736  
1737 my ( $self,$ticwidth ) = @_;
1738 if ( $ticwidth ne $empty_string ) {
1739  
1740 $psimage->{_ticwidth} = $ticwidth;
1741 $psimage->{_note} = $psimage->{_note}.' ticwidth='.$psimage->{_ticwidth};
1742 $psimage->{_Step} = $psimage->{_Step}.' ticwidth='.$psimage->{_ticwidth};
1743  
1744 } else {
1745 print("psimage, ticwidth, missing ticwidth,\n");
1746 }
1747 }
1748  
1749  
1750 =head2 sub title
1751  
1752  
1753 =cut
1754  
1755 sub title {
1756  
1757 my ( $self,$title ) = @_;
1758 if ( $title ne $empty_string ) {
1759  
1760 $psimage->{_title} = $title;
1761 $psimage->{_note} = $psimage->{_note}.' title='.$psimage->{_title};
1762 $psimage->{_Step} = $psimage->{_Step}.' title='.$psimage->{_title};
1763  
1764 } else {
1765 print("psimage, title, missing title,\n");
1766 }
1767 }
1768  
1769  
1770 =head2 sub titlecolor
1771  
1772  
1773 =cut
1774  
1775 sub titlecolor {
1776  
1777 my ( $self,$titlecolor ) = @_;
1778 if ( $titlecolor ne $empty_string ) {
1779  
1780 $psimage->{_titlecolor} = $titlecolor;
1781 $psimage->{_note} = $psimage->{_note}.' titlecolor='.$psimage->{_titlecolor};
1782 $psimage->{_Step} = $psimage->{_Step}.' titlecolor='.$psimage->{_titlecolor};
1783  
1784 } else {
1785 print("psimage, titlecolor, missing titlecolor,\n");
1786 }
1787 }
1788  
1789  
1790 =head2 sub titlefont
1791  
1792  
1793 =cut
1794  
1795 sub titlefont {
1796  
1797 my ( $self,$titlefont ) = @_;
1798 if ( $titlefont ne $empty_string ) {
1799  
1800 $psimage->{_titlefont} = $titlefont;
1801 $psimage->{_note} = $psimage->{_note}.' titlefont='.$psimage->{_titlefont};
1802 $psimage->{_Step} = $psimage->{_Step}.' titlefont='.$psimage->{_titlefont};
1803  
1804 } else {
1805 print("psimage, titlefont, missing titlefont,\n");
1806 }
1807 }
1808  
1809  
1810 =head2 sub titlesize
1811  
1812  
1813 =cut
1814  
1815 sub titlesize {
1816  
1817 my ( $self,$titlesize ) = @_;
1818 if ( $titlesize ne $empty_string ) {
1819  
1820 $psimage->{_titlesize} = $titlesize;
1821 $psimage->{_note} = $psimage->{_note}.' titlesize='.$psimage->{_titlesize};
1822 $psimage->{_Step} = $psimage->{_Step}.' titlesize='.$psimage->{_titlesize};
1823  
1824 } else {
1825 print("psimage, titlesize, missing titlesize,\n");
1826 }
1827 }
1828  
1829  
1830 =head2 sub units
1831  
1832  
1833 =cut
1834  
1835 sub units {
1836  
1837 my ( $self,$units ) = @_;
1838 if ( $units ne $empty_string ) {
1839  
1840 $psimage->{_units} = $units;
1841 $psimage->{_note} = $psimage->{_note}.' units='.$psimage->{_units};
1842 $psimage->{_Step} = $psimage->{_Step}.' units='.$psimage->{_units};
1843  
1844 } else {
1845 print("psimage, units, missing units,\n");
1846 }
1847 }
1848  
1849  
1850 =head2 sub verbose
1851  
1852  
1853 =cut
1854  
1855 sub verbose {
1856  
1857 my ( $self,$verbose ) = @_;
1858 if ( $verbose ne $empty_string ) {
1859  
1860 $psimage->{_verbose} = $verbose;
1861 $psimage->{_note} = $psimage->{_note}.' verbose='.$psimage->{_verbose};
1862 $psimage->{_Step} = $psimage->{_Step}.' verbose='.$psimage->{_verbose};
1863  
1864 } else {
1865 print("psimage, verbose, missing verbose,\n");
1866 }
1867 }
1868  
1869  
1870 =head2 sub wclip
1871  
1872  
1873 =cut
1874  
1875 sub wclip {
1876  
1877 my ( $self,$wclip ) = @_;
1878 if ( $wclip ne $empty_string ) {
1879  
1880 $psimage->{_wclip} = $wclip;
1881 $psimage->{_note} = $psimage->{_note}.' wclip='.$psimage->{_wclip};
1882 $psimage->{_Step} = $psimage->{_Step}.' wclip='.$psimage->{_wclip};
1883  
1884 } else {
1885 print("psimage, wclip, missing wclip,\n");
1886 }
1887 }
1888  
1889  
1890 =head2 sub whls
1891  
1892  
1893 =cut
1894  
1895 sub whls {
1896  
1897 my ( $self,$whls ) = @_;
1898 if ( $whls ne $empty_string ) {
1899  
1900 $psimage->{_whls} = $whls;
1901 $psimage->{_note} = $psimage->{_note}.' whls='.$psimage->{_whls};
1902 $psimage->{_Step} = $psimage->{_Step}.' whls='.$psimage->{_whls};
1903  
1904 } else {
1905 print("psimage, whls, missing whls,\n");
1906 }
1907 }
1908  
1909  
1910 =head2 sub width
1911  
1912  
1913 =cut
1914  
1915 sub width {
1916  
1917 my ( $self,$width ) = @_;
1918 if ( $width ne $empty_string ) {
1919  
1920 $psimage->{_width} = $width;
1921 $psimage->{_note} = $psimage->{_note}.' width='.$psimage->{_width};
1922 $psimage->{_Step} = $psimage->{_Step}.' width='.$psimage->{_width};
1923  
1924 } else {
1925 print("psimage, width, missing width,\n");
1926 }
1927 }
1928  
1929  
1930 =head2 sub wperc
1931  
1932  
1933 =cut
1934  
1935 sub wperc {
1936  
1937 my ( $self,$wperc ) = @_;
1938 if ( $wperc ne $empty_string ) {
1939  
1940 $psimage->{_wperc} = $wperc;
1941 $psimage->{_note} = $psimage->{_note}.' wperc='.$psimage->{_wperc};
1942 $psimage->{_Step} = $psimage->{_Step}.' wperc='.$psimage->{_wperc};
1943  
1944 } else {
1945 print("psimage, wperc, missing wperc,\n");
1946 }
1947 }
1948  
1949  
1950 =head2 sub wrgb
1951  
1952  
1953 =cut
1954  
1955 sub wrgb {
1956  
1957 my ( $self,$wrgb ) = @_;
1958 if ( $wrgb ne $empty_string ) {
1959  
1960 $psimage->{_wrgb} = $wrgb;
1961 $psimage->{_note} = $psimage->{_note}.' wrgb='.$psimage->{_wrgb};
1962 $psimage->{_Step} = $psimage->{_Step}.' wrgb='.$psimage->{_wrgb};
1963  
1964 } else {
1965 print("psimage, wrgb, missing wrgb,\n");
1966 }
1967 }
1968  
1969  
1970 =head2 sub x1beg
1971  
1972  
1973 =cut
1974  
1975 sub x1beg {
1976  
1977 my ( $self,$x1beg ) = @_;
1978 if ( $x1beg ne $empty_string ) {
1979  
1980 $psimage->{_x1beg} = $x1beg;
1981 $psimage->{_note} = $psimage->{_note}.' x1beg='.$psimage->{_x1beg};
1982 $psimage->{_Step} = $psimage->{_Step}.' x1beg='.$psimage->{_x1beg};
1983  
1984 } else {
1985 print("psimage, x1beg, missing x1beg,\n");
1986 }
1987 }
1988  
1989  
1990 =head2 sub x1end
1991  
1992  
1993 =cut
1994  
1995 sub x1end {
1996  
1997 my ( $self,$x1end ) = @_;
1998 if ( $x1end ne $empty_string ) {
1999  
2000 $psimage->{_x1end} = $x1end;
2001 $psimage->{_note} = $psimage->{_note}.' x1end='.$psimage->{_x1end};
2002 $psimage->{_Step} = $psimage->{_Step}.' x1end='.$psimage->{_x1end};
2003  
2004 } else {
2005 print("psimage, x1end, missing x1end,\n");
2006 }
2007 }
2008  
2009  
2010 =head2 sub x2beg
2011  
2012  
2013 =cut
2014  
2015 sub x2beg {
2016  
2017 my ( $self,$x2beg ) = @_;
2018 if ( $x2beg ne $empty_string ) {
2019  
2020 $psimage->{_x2beg} = $x2beg;
2021 $psimage->{_note} = $psimage->{_note}.' x2beg='.$psimage->{_x2beg};
2022 $psimage->{_Step} = $psimage->{_Step}.' x2beg='.$psimage->{_x2beg};
2023  
2024 } else {
2025 print("psimage, x2beg, missing x2beg,\n");
2026 }
2027 }
2028  
2029  
2030 =head2 sub x2end
2031  
2032  
2033 =cut
2034  
2035 sub x2end {
2036  
2037 my ( $self,$x2end ) = @_;
2038 if ( $x2end ne $empty_string ) {
2039  
2040 $psimage->{_x2end} = $x2end;
2041 $psimage->{_note} = $psimage->{_note}.' x2end='.$psimage->{_x2end};
2042 $psimage->{_Step} = $psimage->{_Step}.' x2end='.$psimage->{_x2end};
2043  
2044 } else {
2045 print("psimage, x2end, missing x2end,\n");
2046 }
2047 }
2048  
2049  
2050 =head2 sub xbox
2051  
2052  
2053 =cut
2054  
2055 sub xbox {
2056  
2057 my ( $self,$xbox ) = @_;
2058 if ( $xbox ne $empty_string ) {
2059  
2060 $psimage->{_xbox} = $xbox;
2061 $psimage->{_note} = $psimage->{_note}.' xbox='.$psimage->{_xbox};
2062 $psimage->{_Step} = $psimage->{_Step}.' xbox='.$psimage->{_xbox};
2063  
2064 } else {
2065 print("psimage, xbox, missing xbox,\n");
2066 }
2067 }
2068  
2069  
2070 =head2 sub ybox
2071  
2072  
2073 =cut
2074  
2075 sub ybox {
2076  
2077 my ( $self,$ybox ) = @_;
2078 if ( $ybox ne $empty_string ) {
2079  
2080 $psimage->{_ybox} = $ybox;
2081 $psimage->{_note} = $psimage->{_note}.' ybox='.$psimage->{_ybox};
2082 $psimage->{_Step} = $psimage->{_Step}.' ybox='.$psimage->{_ybox};
2083  
2084 } else {
2085 print("psimage, ybox, missing ybox,\n");
2086 }
2087 }
2088  
2089  
2090 =head2 sub get_max_index
2091  
2092 max index = number of input variables -1
2093
2094 =cut
2095
2096 sub get_max_index {
2097 my ($self) = @_;
2098 my $max_index = 75;
2099  
2100 return($max_index);
2101 }
2102
2103
2104 1;