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

filter: Statementstmt 0.0% 0 / 405 Branchbran 0.0% 0 / 106 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 61 Podpod 0.0% 0 / 57 totaltotal 0.0% 0 / 629 CC 54 SCAR 17.4
CC
54
Cov
0%
axescolor
6.0
axeswidth
6.0
c
6.0
CRAP 5.7
1 package App::SeismicUnixGui::sunix::plot::pscontour;
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 PSCONTOUR - PostScript CONTOURing of a two-dimensional function f(x1,x2)
25  
26  
27  
28 pscontour n1= [optional parameters] <binaryfile >postscriptfile
29  
30  
31  
32 Required Parameters:
33  
34 n1 number of samples in 1st (fast) dimension
35  
36  
37  
38 Optional Parameters:
39  
40 d1=1.0 sampling interval in 1st dimension
41  
42 f1=d1 first sample in 1st dimension
43  
44 x1=f1,f1+d1,... array of monotonic sampled values 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=d2 first sample in 2nd dimension
51  
52 x2=f2,f2+d2,... array of monotonic sampled values in 2nd dimension
53  
54 nc=5 number of contour values
55  
56 dc=(zmax-zmin)/nc contour interval
57  
58 fc=min+dc first contour
59  
60 c=fc,fc+dc,... array of contour values
61  
62 cwidth=1.0,... array of contour line widths
63  
64 cgray=0.0,... array of contour grays (0.0=black to 1.0=white)
65  
66 ccolor=none,... array of contour colors; none means use cgray
67  
68 cdash=0.0,... array of dash spacings (0.0 for solid)
69  
70 labelcf=1 first labeled contour (1,2,3,...)
71  
72 labelcper=1 label every labelcper-th contour
73  
74 nlabelc=nc number of labeled contours (0 no contour label)
75  
76 nplaces=6 number of decimal places in contour label
77  
78 xbox=1.5 offset in inches of left side of axes box
79  
80 ybox=1.5 offset in inches of bottom side of axes box
81  
82 wbox=6.0 width in inches of axes box
83  
84 hbox=8.0 height in inches of axes box
85  
86 x1beg=x1min value at which axis 1 begins
87  
88 x1end=x1max value at which axis 1 ends
89  
90 d1num=0.0 numbered tic interval on axis 1 (0.0 for automatic)
91  
92 f1num=x1min first numbered tic on axis 1 (used if d1num not 0.0)
93  
94 n1tic=1 number of tics per numbered tic on axis 1
95  
96 grid1=none grid lines on axis 1 - none, dot, dash, or solid
97  
98 label1= label on axis 1
99  
100 x2beg=x2min value at which axis 2 begins
101  
102 x2end=x2max value at which axis 2 ends
103  
104 d2num=0.0 numbered tic interval on axis 2 (0.0 for automatic)
105  
106 f2num=x2min first numbered tic on axis 2 (used if d2num not 0.0)
107  
108 n2tic=1 number of tics per numbered tic on axis 2
109  
110 grid2=none grid lines on axis 2 - none, dot, dash, or solid
111  
112 label2= label on axis 2
113  
114 labelfont=Helvetica font name for axes labels
115  
116 labelsize=18 font size for axes labels
117  
118 title= title of plot
119  
120 titlefont=Helvetica-Bold font name for title
121  
122 titlesize=24 font size for title
123  
124 labelcfont=Helvetica-Bold font name for contour labels
125  
126 labelcsize=6 font size of contour labels
127  
128 labelccolor=black color of contour labels
129  
130 titlecolor=black color of title
131  
132 axescolor=black color of axes
133  
134 gridcolor=black color of grid
135  
136 axeswidth=1 width (in points) of axes
137  
138 ticwidth=axeswidth width (in points) of tic marks
139  
140 gridwidth=axeswidth width (in points) of grid lines
141  
142 style=seismic normal (axis 1 horizontal, axis 2 vertical) or
143  
144 seismic (axis 1 vertical, axis 2 horizontal)
145  
146  
147  
148 Note.
149  
150 The line width of unlabeled contours is designed as a quarter of that
151  
152 of labeled contours.
153  
154  
155  
156 All color specifications may also be made in X Window style Hex format
157  
158 example: axescolor=#255
159  
160  
161  
162 Legal font names are:
163  
164 AvantGarde-Book AvantGarde-BookOblique AvantGarde-Demi AvantGarde-DemiOblique"
165  
166 Bookman-Demi Bookman-DemiItalic Bookman-Light Bookman-LightItalic
167  
168 Courier Courier-Bold Courier-BoldOblique Courier-Oblique
169  
170 Helvetica Helvetica-Bold Helvetica-BoldOblique Helvetica-Oblique
171  
172 Helvetica-Narrow Helvetica-Narrow-Bold Helvetica-Narrow-BoldOblique
173  
174 Helvetica-Narrow-Oblique NewCentrySchlbk-Bold"
175  
176 NewCenturySchlbk-BoldItalic NewCenturySchlbk-Roman Palatino-Bold
177  
178 Palatino-BoldItalic Palatino-Italics Palatino-Roman
179  
180 SanSerif-Bold SanSerif-BoldItalic SanSerif-Roman
181  
182 Symbol Times-Bold Times-BoldItalic
183  
184 Times-Roman Times-Italic ZapfChancery-MediumItalic
185  
186 type: sudoc pscontour for more information
187  
188  
189  
190  
191  
192 Notes:
193  
194  
195  
196 For nice even-numbered contours, use the parameters fc and dc
197  
198  
199  
200 Example: if the range of the z values of a data set range between
201  
202 approximately -1000 and +1000, then use fc=-1000 nc=10 and dc=100
203  
204 to get contours spaced by even 100's.
205  
206  
207  
208  
209  
210  
211  
212 Author: Dave Hale, Colorado School of Mines, 05/29/90
213  
214 MODIFIED: Craig Artley, Colorado School of Mines, 08/30/91
215  
216 BoundingBox moved to top of PostScript output
217  
218 MODIFIED: Zhenyue Liu, Colorado School of Mines, 08/26/93
219  
220 Values are labeled on contours
221  
222 MODIFIED: Craig Artley, Colorado School of Mines, 12/16/93
223  
224 Added color options (Courtesy of Dave Hale, Advance Geophysical).
225  
226 Modified: Morten Wendell Pedersen, Aarhus University, 23/3-97
227  
228 Added ticwidth,axeswidth, gridwidth parameters
229  
230  
231  
232  
233  
234 =head2 User's notes (Juan Lorenzo)
235 untested
236  
237 =cut
238  
239 =head2 CHANGES and their DATES
240  
241 =cut
242  
243 use Moose;
244 our $VERSION = '0.0.1';
245  
246 =head2 Import packages
247  
248 =cut
249  
250 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
251  
252 use App::SeismicUnixGui::misc::SeismicUnix
253 qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
254 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
255  
256 =head2 instantiation of packages
257  
258 =cut
259  
260 my $get = L_SU_global_constants->new();
261 my $Project = Project_config->new();
262 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
263 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
264 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
265  
266 my $var = $get->var();
267 my $on = $var->{_on};
268 my $off = $var->{_off};
269 my $true = $var->{_true};
270 my $false = $var->{_false};
271 my $empty_string = $var->{_empty_string};
272  
273 =head2 Encapsulated
274 hash of private variables
275  
276 =cut
277  
278 my $pscontour = {
279 _axescolor => '',
280 _axeswidth => '',
281 _c => '',
282 _ccolor => '',
283 _cdash => '',
284 _cgray => '',
285 _cwidth => '',
286 _d1 => '',
287 _d1num => '',
288 _d2 => '',
289 _d2num => '',
290 _dc => '',
291 _f1 => '',
292 _f1num => '',
293 _f2 => '',
294 _f2num => '',
295 _fc => '',
296 _grid1 => '',
297 _grid2 => '',
298 _gridcolor => '',
299 _gridwidth => '',
300 _hbox => '',
301 _label1 => '',
302 _label2 => '',
303 _labelccolor => '',
304 _labelcf => '',
305 _labelcfont => '',
306 _labelcper => '',
307 _labelcsize => '',
308 _labelfont => '',
309 _labelsize => '',
310 _n1 => '',
311 _n1tic => '',
312 _n2 => '',
313 _n2tic => '',
314 _nc => '',
315 _nlabelc => '',
316 _nplaces => '',
317 _style => '',
318 _ticwidth => '',
319 _title => '',
320 _titlecolor => '',
321 _titlefont => '',
322 _titlesize => '',
323 _wbox => '',
324 _x1 => '',
325 _x1beg => '',
326 _x1end => '',
327 _x2 => '',
328 _x2beg => '',
329 _x2end => '',
330 _xbox => '',
331 _ybox => '',
332 _Step => '',
333 _note => '',
334  
335 };
336  
337 =head2 sub Step
338  
339 collects switches and assembles bash instructions
340 by adding the program name
341  
342 =cut
343  
344 sub Step {
345  
346 $pscontour->{_Step} = 'pscontour' . $pscontour->{_Step};
347 return ( $pscontour->{_Step} );
348  
349 }
350  
351 =head2 sub note
352  
353 collects switches and assembles bash instructions
354 by adding the program name
355  
356 =cut
357  
358 sub note {
359  
360 $pscontour->{_note} = 'pscontour' . $pscontour->{_note};
361 return ( $pscontour->{_note} );
362  
363 }
364  
365 =head2 sub clear
366  
367 =cut
368  
369 sub clear {
370  
371 $pscontour->{_axescolor} = '';
372 $pscontour->{_axeswidth} = '';
373 $pscontour->{_c} = '';
374 $pscontour->{_ccolor} = '';
375 $pscontour->{_cdash} = '';
376 $pscontour->{_cgray} = '';
377 $pscontour->{_cwidth} = '';
378 $pscontour->{_d1} = '';
379 $pscontour->{_d1num} = '';
380 $pscontour->{_d2} = '';
381 $pscontour->{_d2num} = '';
382 $pscontour->{_dc} = '';
383 $pscontour->{_f1} = '';
384 $pscontour->{_f1num} = '';
385 $pscontour->{_f2} = '';
386 $pscontour->{_f2num} = '';
387 $pscontour->{_fc} = '';
388 $pscontour->{_grid1} = '';
389 $pscontour->{_grid2} = '';
390 $pscontour->{_gridcolor} = '';
391 $pscontour->{_gridwidth} = '';
392 $pscontour->{_hbox} = '';
393 $pscontour->{_label1} = '';
394 $pscontour->{_label2} = '';
395 $pscontour->{_labelccolor} = '';
396 $pscontour->{_labelcf} = '';
397 $pscontour->{_labelcfont} = '';
398 $pscontour->{_labelcper} = '';
399 $pscontour->{_labelcsize} = '';
400 $pscontour->{_labelfont} = '';
401 $pscontour->{_labelsize} = '';
402 $pscontour->{_n1} = '';
403 $pscontour->{_n1tic} = '';
404 $pscontour->{_n2} = '';
405 $pscontour->{_n2tic} = '';
406 $pscontour->{_nc} = '';
407 $pscontour->{_nlabelc} = '';
408 $pscontour->{_nplaces} = '';
409 $pscontour->{_style} = '';
410 $pscontour->{_ticwidth} = '';
411 $pscontour->{_title} = '';
412 $pscontour->{_titlecolor} = '';
413 $pscontour->{_titlefont} = '';
414 $pscontour->{_titlesize} = '';
415 $pscontour->{_wbox} = '';
416 $pscontour->{_x1} = '';
417 $pscontour->{_x1beg} = '';
418 $pscontour->{_x1end} = '';
419 $pscontour->{_x2} = '';
420 $pscontour->{_x2beg} = '';
421 $pscontour->{_x2end} = '';
422 $pscontour->{_xbox} = '';
423 $pscontour->{_ybox} = '';
424 $pscontour->{_Step} = '';
425 $pscontour->{_note} = '';
426 }
427  
428 =head2 sub axescolor
429  
430  
431 =cut
432  
433 sub axescolor {
434  
435 my ( $self, $axescolor ) = @_;
436 if ( $axescolor ne $empty_string ) {
437  
438 $pscontour->{_axescolor} = $axescolor;
439 $pscontour->{_note} =
440 $pscontour->{_note} . ' axescolor=' . $pscontour->{_axescolor};
441 $pscontour->{_Step} =
442 $pscontour->{_Step} . ' axescolor=' . $pscontour->{_axescolor};
443  
444 }
445 else {
446 print("pscontour, axescolor, missing axescolor,\n");
447 }
448 }
449  
450 =head2 sub axeswidth
451  
452  
453 =cut
454  
455 sub axeswidth {
456  
457 my ( $self, $axeswidth ) = @_;
458 if ( $axeswidth ne $empty_string ) {
459  
460 $pscontour->{_axeswidth} = $axeswidth;
461 $pscontour->{_note} =
462 $pscontour->{_note} . ' axeswidth=' . $pscontour->{_axeswidth};
463 $pscontour->{_Step} =
464 $pscontour->{_Step} . ' axeswidth=' . $pscontour->{_axeswidth};
465  
466 }
467 else {
468 print("pscontour, axeswidth, missing axeswidth,\n");
469 }
470 }
471  
472 =head2 sub c
473  
474  
475 =cut
476  
477 sub c {
478  
479 my ( $self, $c ) = @_;
480 if ( $c ne $empty_string ) {
481  
482 $pscontour->{_c} = $c;
483 $pscontour->{_note} = $pscontour->{_note} . ' c=' . $pscontour->{_c};
484 $pscontour->{_Step} = $pscontour->{_Step} . ' c=' . $pscontour->{_c};
485  
486 }
487 else {
488 print("pscontour, c, missing c,\n");
489 }
490 }
491  
492 =head2 sub ccolor
493  
494  
495 =cut
496  
497 sub ccolor {
498  
499 my ( $self, $ccolor ) = @_;
500 if ( $ccolor ne $empty_string ) {
501  
502 $pscontour->{_ccolor} = $ccolor;
503 $pscontour->{_note} =
504 $pscontour->{_note} . ' ccolor=' . $pscontour->{_ccolor};
505 $pscontour->{_Step} =
506 $pscontour->{_Step} . ' ccolor=' . $pscontour->{_ccolor};
507  
508 }
509 else {
510 print("pscontour, ccolor, missing ccolor,\n");
511 }
512 }
513  
514 =head2 sub cdash
515  
516  
517 =cut
518  
519 sub cdash {
520  
521 my ( $self, $cdash ) = @_;
522 if ( $cdash ne $empty_string ) {
523  
524 $pscontour->{_cdash} = $cdash;
525 $pscontour->{_note} =
526 $pscontour->{_note} . ' cdash=' . $pscontour->{_cdash};
527 $pscontour->{_Step} =
528 $pscontour->{_Step} . ' cdash=' . $pscontour->{_cdash};
529  
530 }
531 else {
532 print("pscontour, cdash, missing cdash,\n");
533 }
534 }
535  
536 =head2 sub cgray
537  
538  
539 =cut
540  
541 sub cgray {
542  
543 my ( $self, $cgray ) = @_;
544 if ( $cgray ne $empty_string ) {
545  
546 $pscontour->{_cgray} = $cgray;
547 $pscontour->{_note} =
548 $pscontour->{_note} . ' cgray=' . $pscontour->{_cgray};
549 $pscontour->{_Step} =
550 $pscontour->{_Step} . ' cgray=' . $pscontour->{_cgray};
551  
552 }
553 else {
554 print("pscontour, cgray, missing cgray,\n");
555 }
556 }
557  
558 =head2 sub cwidth
559  
560  
561 =cut
562  
563 sub cwidth {
564  
565 my ( $self, $cwidth ) = @_;
566 if ( $cwidth ne $empty_string ) {
567  
568 $pscontour->{_cwidth} = $cwidth;
569 $pscontour->{_note} =
570 $pscontour->{_note} . ' cwidth=' . $pscontour->{_cwidth};
571 $pscontour->{_Step} =
572 $pscontour->{_Step} . ' cwidth=' . $pscontour->{_cwidth};
573  
574 }
575 else {
576 print("pscontour, cwidth, missing cwidth,\n");
577 }
578 }
579  
580 =head2 sub d1
581  
582  
583 =cut
584  
585 sub d1 {
586  
587 my ( $self, $d1 ) = @_;
588 if ( $d1 ne $empty_string ) {
589  
590 $pscontour->{_d1} = $d1;
591 $pscontour->{_note} = $pscontour->{_note} . ' d1=' . $pscontour->{_d1};
592 $pscontour->{_Step} = $pscontour->{_Step} . ' d1=' . $pscontour->{_d1};
593  
594 }
595 else {
596 print("pscontour, d1, missing d1,\n");
597 }
598 }
599  
600 =head2 sub d1num
601  
602  
603 =cut
604  
605 sub d1num {
606  
607 my ( $self, $d1num ) = @_;
608 if ( $d1num ne $empty_string ) {
609  
610 $pscontour->{_d1num} = $d1num;
611 $pscontour->{_note} =
612 $pscontour->{_note} . ' d1num=' . $pscontour->{_d1num};
613 $pscontour->{_Step} =
614 $pscontour->{_Step} . ' d1num=' . $pscontour->{_d1num};
615  
616 }
617 else {
618 print("pscontour, d1num, missing d1num,\n");
619 }
620 }
621  
622 =head2 sub d2
623  
624  
625 =cut
626  
627 sub d2 {
628  
629 my ( $self, $d2 ) = @_;
630 if ( $d2 ne $empty_string ) {
631  
632 $pscontour->{_d2} = $d2;
633 $pscontour->{_note} = $pscontour->{_note} . ' d2=' . $pscontour->{_d2};
634 $pscontour->{_Step} = $pscontour->{_Step} . ' d2=' . $pscontour->{_d2};
635  
636 }
637 else {
638 print("pscontour, d2, missing d2,\n");
639 }
640 }
641  
642 =head2 sub d2num
643  
644  
645 =cut
646  
647 sub d2num {
648  
649 my ( $self, $d2num ) = @_;
650 if ( $d2num ne $empty_string ) {
651  
652 $pscontour->{_d2num} = $d2num;
653 $pscontour->{_note} =
654 $pscontour->{_note} . ' d2num=' . $pscontour->{_d2num};
655 $pscontour->{_Step} =
656 $pscontour->{_Step} . ' d2num=' . $pscontour->{_d2num};
657  
658 }
659 else {
660 print("pscontour, d2num, missing d2num,\n");
661 }
662 }
663  
664 =head2 sub dc
665  
666  
667 =cut
668  
669 sub dc {
670  
671 my ( $self, $dc ) = @_;
672 if ( $dc ne $empty_string ) {
673  
674 $pscontour->{_dc} = $dc;
675 $pscontour->{_note} = $pscontour->{_note} . ' dc=' . $pscontour->{_dc};
676 $pscontour->{_Step} = $pscontour->{_Step} . ' dc=' . $pscontour->{_dc};
677  
678 }
679 else {
680 print("pscontour, dc, missing dc,\n");
681 }
682 }
683  
684 =head2 sub f1
685  
686  
687 =cut
688  
689 sub f1 {
690  
691 my ( $self, $f1 ) = @_;
692 if ( $f1 ne $empty_string ) {
693  
694 $pscontour->{_f1} = $f1;
695 $pscontour->{_note} = $pscontour->{_note} . ' f1=' . $pscontour->{_f1};
696 $pscontour->{_Step} = $pscontour->{_Step} . ' f1=' . $pscontour->{_f1};
697  
698 }
699 else {
700 print("pscontour, f1, missing f1,\n");
701 }
702 }
703  
704 =head2 sub f1num
705  
706  
707 =cut
708  
709 sub f1num {
710  
711 my ( $self, $f1num ) = @_;
712 if ( $f1num ne $empty_string ) {
713  
714 $pscontour->{_f1num} = $f1num;
715 $pscontour->{_note} =
716 $pscontour->{_note} . ' f1num=' . $pscontour->{_f1num};
717 $pscontour->{_Step} =
718 $pscontour->{_Step} . ' f1num=' . $pscontour->{_f1num};
719  
720 }
721 else {
722 print("pscontour, f1num, missing f1num,\n");
723 }
724 }
725  
726 =head2 sub f2
727  
728  
729 =cut
730  
731 sub f2 {
732  
733 my ( $self, $f2 ) = @_;
734 if ( $f2 ne $empty_string ) {
735  
736 $pscontour->{_f2} = $f2;
737 $pscontour->{_note} = $pscontour->{_note} . ' f2=' . $pscontour->{_f2};
738 $pscontour->{_Step} = $pscontour->{_Step} . ' f2=' . $pscontour->{_f2};
739  
740 }
741 else {
742 print("pscontour, f2, missing f2,\n");
743 }
744 }
745  
746 =head2 sub f2num
747  
748  
749 =cut
750  
751 sub f2num {
752  
753 my ( $self, $f2num ) = @_;
754 if ( $f2num ne $empty_string ) {
755  
756 $pscontour->{_f2num} = $f2num;
757 $pscontour->{_note} =
758 $pscontour->{_note} . ' f2num=' . $pscontour->{_f2num};
759 $pscontour->{_Step} =
760 $pscontour->{_Step} . ' f2num=' . $pscontour->{_f2num};
761  
762 }
763 else {
764 print("pscontour, f2num, missing f2num,\n");
765 }
766 }
767  
768 =head2 sub fc
769  
770  
771 =cut
772  
773 sub fc {
774  
775 my ( $self, $fc ) = @_;
776 if ( $fc ne $empty_string ) {
777  
778 $pscontour->{_fc} = $fc;
779 $pscontour->{_note} = $pscontour->{_note} . ' fc=' . $pscontour->{_fc};
780 $pscontour->{_Step} = $pscontour->{_Step} . ' fc=' . $pscontour->{_fc};
781  
782 }
783 else {
784 print("pscontour, fc, missing fc,\n");
785 }
786 }
787  
788 =head2 sub grid1
789  
790  
791 =cut
792  
793 sub grid1 {
794  
795 my ( $self, $grid1 ) = @_;
796 if ( $grid1 ne $empty_string ) {
797  
798 $pscontour->{_grid1} = $grid1;
799 $pscontour->{_note} =
800 $pscontour->{_note} . ' grid1=' . $pscontour->{_grid1};
801 $pscontour->{_Step} =
802 $pscontour->{_Step} . ' grid1=' . $pscontour->{_grid1};
803  
804 }
805 else {
806 print("pscontour, grid1, missing grid1,\n");
807 }
808 }
809  
810 =head2 sub grid2
811  
812  
813 =cut
814  
815 sub grid2 {
816  
817 my ( $self, $grid2 ) = @_;
818 if ( $grid2 ne $empty_string ) {
819  
820 $pscontour->{_grid2} = $grid2;
821 $pscontour->{_note} =
822 $pscontour->{_note} . ' grid2=' . $pscontour->{_grid2};
823 $pscontour->{_Step} =
824 $pscontour->{_Step} . ' grid2=' . $pscontour->{_grid2};
825  
826 }
827 else {
828 print("pscontour, grid2, missing grid2,\n");
829 }
830 }
831  
832 =head2 sub gridcolor
833  
834  
835 =cut
836  
837 sub gridcolor {
838  
839 my ( $self, $gridcolor ) = @_;
840 if ( $gridcolor ne $empty_string ) {
841  
842 $pscontour->{_gridcolor} = $gridcolor;
843 $pscontour->{_note} =
844 $pscontour->{_note} . ' gridcolor=' . $pscontour->{_gridcolor};
845 $pscontour->{_Step} =
846 $pscontour->{_Step} . ' gridcolor=' . $pscontour->{_gridcolor};
847  
848 }
849 else {
850 print("pscontour, gridcolor, missing gridcolor,\n");
851 }
852 }
853  
854 =head2 sub gridwidth
855  
856  
857 =cut
858  
859 sub gridwidth {
860  
861 my ( $self, $gridwidth ) = @_;
862 if ( $gridwidth ne $empty_string ) {
863  
864 $pscontour->{_gridwidth} = $gridwidth;
865 $pscontour->{_note} =
866 $pscontour->{_note} . ' gridwidth=' . $pscontour->{_gridwidth};
867 $pscontour->{_Step} =
868 $pscontour->{_Step} . ' gridwidth=' . $pscontour->{_gridwidth};
869  
870 }
871 else {
872 print("pscontour, gridwidth, missing gridwidth,\n");
873 }
874 }
875  
876 =head2 sub hbox
877  
878  
879 =cut
880  
881 sub hbox {
882  
883 my ( $self, $hbox ) = @_;
884 if ( $hbox ne $empty_string ) {
885  
886 $pscontour->{_hbox} = $hbox;
887 $pscontour->{_note} =
888 $pscontour->{_note} . ' hbox=' . $pscontour->{_hbox};
889 $pscontour->{_Step} =
890 $pscontour->{_Step} . ' hbox=' . $pscontour->{_hbox};
891  
892 }
893 else {
894 print("pscontour, hbox, missing hbox,\n");
895 }
896 }
897  
898 =head2 sub label1
899  
900  
901 =cut
902  
903 sub label1 {
904  
905 my ( $self, $label1 ) = @_;
906 if ( $label1 ne $empty_string ) {
907  
908 $pscontour->{_label1} = $label1;
909 $pscontour->{_note} =
910 $pscontour->{_note} . ' label1=' . $pscontour->{_label1};
911 $pscontour->{_Step} =
912 $pscontour->{_Step} . ' label1=' . $pscontour->{_label1};
913  
914 }
915 else {
916 print("pscontour, label1, missing label1,\n");
917 }
918 }
919  
920 =head2 sub label2
921  
922  
923 =cut
924  
925 sub label2 {
926  
927 my ( $self, $label2 ) = @_;
928 if ( $label2 ne $empty_string ) {
929  
930 $pscontour->{_label2} = $label2;
931 $pscontour->{_note} =
932 $pscontour->{_note} . ' label2=' . $pscontour->{_label2};
933 $pscontour->{_Step} =
934 $pscontour->{_Step} . ' label2=' . $pscontour->{_label2};
935  
936 }
937 else {
938 print("pscontour, label2, missing label2,\n");
939 }
940 }
941  
942 =head2 sub labelccolor
943  
944  
945 =cut
946  
947 sub labelccolor {
948  
949 my ( $self, $labelccolor ) = @_;
950 if ( $labelccolor ne $empty_string ) {
951  
952 $pscontour->{_labelccolor} = $labelccolor;
953 $pscontour->{_note} =
954 $pscontour->{_note} . ' labelccolor=' . $pscontour->{_labelccolor};
955 $pscontour->{_Step} =
956 $pscontour->{_Step} . ' labelccolor=' . $pscontour->{_labelccolor};
957  
958 }
959 else {
960 print("pscontour, labelccolor, missing labelccolor,\n");
961 }
962 }
963  
964 =head2 sub labelcf
965  
966  
967 =cut
968  
969 sub labelcf {
970  
971 my ( $self, $labelcf ) = @_;
972 if ( $labelcf ne $empty_string ) {
973  
974 $pscontour->{_labelcf} = $labelcf;
975 $pscontour->{_note} =
976 $pscontour->{_note} . ' labelcf=' . $pscontour->{_labelcf};
977 $pscontour->{_Step} =
978 $pscontour->{_Step} . ' labelcf=' . $pscontour->{_labelcf};
979  
980 }
981 else {
982 print("pscontour, labelcf, missing labelcf,\n");
983 }
984 }
985  
986 =head2 sub labelcfont
987  
988  
989 =cut
990  
991 sub labelcfont {
992  
993 my ( $self, $labelcfont ) = @_;
994 if ( $labelcfont ne $empty_string ) {
995  
996 $pscontour->{_labelcfont} = $labelcfont;
997 $pscontour->{_note} =
998 $pscontour->{_note} . ' labelcfont=' . $pscontour->{_labelcfont};
999 $pscontour->{_Step} =
1000 $pscontour->{_Step} . ' labelcfont=' . $pscontour->{_labelcfont};
1001  
1002 }
1003 else {
1004 print("pscontour, labelcfont, missing labelcfont,\n");
1005 }
1006 }
1007  
1008 =head2 sub labelcper
1009  
1010  
1011 =cut
1012  
1013 sub labelcper {
1014  
1015 my ( $self, $labelcper ) = @_;
1016 if ( $labelcper ne $empty_string ) {
1017  
1018 $pscontour->{_labelcper} = $labelcper;
1019 $pscontour->{_note} =
1020 $pscontour->{_note} . ' labelcper=' . $pscontour->{_labelcper};
1021 $pscontour->{_Step} =
1022 $pscontour->{_Step} . ' labelcper=' . $pscontour->{_labelcper};
1023  
1024 }
1025 else {
1026 print("pscontour, labelcper, missing labelcper,\n");
1027 }
1028 }
1029  
1030 =head2 sub labelcsize
1031  
1032  
1033 =cut
1034  
1035 sub labelcsize {
1036  
1037 my ( $self, $labelcsize ) = @_;
1038 if ( $labelcsize ne $empty_string ) {
1039  
1040 $pscontour->{_labelcsize} = $labelcsize;
1041 $pscontour->{_note} =
1042 $pscontour->{_note} . ' labelcsize=' . $pscontour->{_labelcsize};
1043 $pscontour->{_Step} =
1044 $pscontour->{_Step} . ' labelcsize=' . $pscontour->{_labelcsize};
1045  
1046 }
1047 else {
1048 print("pscontour, labelcsize, missing labelcsize,\n");
1049 }
1050 }
1051  
1052 =head2 sub labelfont
1053  
1054  
1055 =cut
1056  
1057 sub labelfont {
1058  
1059 my ( $self, $labelfont ) = @_;
1060 if ( $labelfont ne $empty_string ) {
1061  
1062 $pscontour->{_labelfont} = $labelfont;
1063 $pscontour->{_note} =
1064 $pscontour->{_note} . ' labelfont=' . $pscontour->{_labelfont};
1065 $pscontour->{_Step} =
1066 $pscontour->{_Step} . ' labelfont=' . $pscontour->{_labelfont};
1067  
1068 }
1069 else {
1070 print("pscontour, labelfont, missing labelfont,\n");
1071 }
1072 }
1073  
1074 =head2 sub labelsize
1075  
1076  
1077 =cut
1078  
1079 sub labelsize {
1080  
1081 my ( $self, $labelsize ) = @_;
1082 if ( $labelsize ne $empty_string ) {
1083  
1084 $pscontour->{_labelsize} = $labelsize;
1085 $pscontour->{_note} =
1086 $pscontour->{_note} . ' labelsize=' . $pscontour->{_labelsize};
1087 $pscontour->{_Step} =
1088 $pscontour->{_Step} . ' labelsize=' . $pscontour->{_labelsize};
1089  
1090 }
1091 else {
1092 print("pscontour, labelsize, missing labelsize,\n");
1093 }
1094 }
1095  
1096 =head2 sub n1
1097  
1098  
1099 =cut
1100  
1101 sub n1 {
1102  
1103 my ( $self, $n1 ) = @_;
1104 if ( $n1 ne $empty_string ) {
1105  
1106 $pscontour->{_n1} = $n1;
1107 $pscontour->{_note} = $pscontour->{_note} . ' n1=' . $pscontour->{_n1};
1108 $pscontour->{_Step} = $pscontour->{_Step} . ' n1=' . $pscontour->{_n1};
1109  
1110 }
1111 else {
1112 print("pscontour, n1, missing n1,\n");
1113 }
1114 }
1115  
1116 =head2 sub n1tic
1117  
1118  
1119 =cut
1120  
1121 sub n1tic {
1122  
1123 my ( $self, $n1tic ) = @_;
1124 if ( $n1tic ne $empty_string ) {
1125  
1126 $pscontour->{_n1tic} = $n1tic;
1127 $pscontour->{_note} =
1128 $pscontour->{_note} . ' n1tic=' . $pscontour->{_n1tic};
1129 $pscontour->{_Step} =
1130 $pscontour->{_Step} . ' n1tic=' . $pscontour->{_n1tic};
1131  
1132 }
1133 else {
1134 print("pscontour, n1tic, missing n1tic,\n");
1135 }
1136 }
1137  
1138 =head2 sub n2
1139  
1140  
1141 =cut
1142  
1143 sub n2 {
1144  
1145 my ( $self, $n2 ) = @_;
1146 if ( $n2 ne $empty_string ) {
1147  
1148 $pscontour->{_n2} = $n2;
1149 $pscontour->{_note} = $pscontour->{_note} . ' n2=' . $pscontour->{_n2};
1150 $pscontour->{_Step} = $pscontour->{_Step} . ' n2=' . $pscontour->{_n2};
1151  
1152 }
1153 else {
1154 print("pscontour, n2, missing n2,\n");
1155 }
1156 }
1157  
1158 =head2 sub n2tic
1159  
1160  
1161 =cut
1162  
1163 sub n2tic {
1164  
1165 my ( $self, $n2tic ) = @_;
1166 if ( $n2tic ne $empty_string ) {
1167  
1168 $pscontour->{_n2tic} = $n2tic;
1169 $pscontour->{_note} =
1170 $pscontour->{_note} . ' n2tic=' . $pscontour->{_n2tic};
1171 $pscontour->{_Step} =
1172 $pscontour->{_Step} . ' n2tic=' . $pscontour->{_n2tic};
1173  
1174 }
1175 else {
1176 print("pscontour, n2tic, missing n2tic,\n");
1177 }
1178 }
1179  
1180 =head2 sub nc
1181  
1182  
1183 =cut
1184  
1185 sub nc {
1186  
1187 my ( $self, $nc ) = @_;
1188 if ( $nc ne $empty_string ) {
1189  
1190 $pscontour->{_nc} = $nc;
1191 $pscontour->{_note} = $pscontour->{_note} . ' nc=' . $pscontour->{_nc};
1192 $pscontour->{_Step} = $pscontour->{_Step} . ' nc=' . $pscontour->{_nc};
1193  
1194 }
1195 else {
1196 print("pscontour, nc, missing nc,\n");
1197 }
1198 }
1199  
1200 =head2 sub nlabelc
1201  
1202  
1203 =cut
1204  
1205 sub nlabelc {
1206  
1207 my ( $self, $nlabelc ) = @_;
1208 if ( $nlabelc ne $empty_string ) {
1209  
1210 $pscontour->{_nlabelc} = $nlabelc;
1211 $pscontour->{_note} =
1212 $pscontour->{_note} . ' nlabelc=' . $pscontour->{_nlabelc};
1213 $pscontour->{_Step} =
1214 $pscontour->{_Step} . ' nlabelc=' . $pscontour->{_nlabelc};
1215  
1216 }
1217 else {
1218 print("pscontour, nlabelc, missing nlabelc,\n");
1219 }
1220 }
1221  
1222 =head2 sub nplaces
1223  
1224  
1225 =cut
1226  
1227 sub nplaces {
1228  
1229 my ( $self, $nplaces ) = @_;
1230 if ( $nplaces ne $empty_string ) {
1231  
1232 $pscontour->{_nplaces} = $nplaces;
1233 $pscontour->{_note} =
1234 $pscontour->{_note} . ' nplaces=' . $pscontour->{_nplaces};
1235 $pscontour->{_Step} =
1236 $pscontour->{_Step} . ' nplaces=' . $pscontour->{_nplaces};
1237  
1238 }
1239 else {
1240 print("pscontour, nplaces, missing nplaces,\n");
1241 }
1242 }
1243  
1244 =head2 sub style
1245  
1246  
1247 =cut
1248  
1249 sub style {
1250  
1251 my ( $self, $style ) = @_;
1252 if ( $style ne $empty_string ) {
1253  
1254 $pscontour->{_style} = $style;
1255 $pscontour->{_note} =
1256 $pscontour->{_note} . ' style=' . $pscontour->{_style};
1257 $pscontour->{_Step} =
1258 $pscontour->{_Step} . ' style=' . $pscontour->{_style};
1259  
1260 }
1261 else {
1262 print("pscontour, style, missing style,\n");
1263 }
1264 }
1265  
1266 =head2 sub ticwidth
1267  
1268  
1269 =cut
1270  
1271 sub ticwidth {
1272  
1273 my ( $self, $ticwidth ) = @_;
1274 if ( $ticwidth ne $empty_string ) {
1275  
1276 $pscontour->{_ticwidth} = $ticwidth;
1277 $pscontour->{_note} =
1278 $pscontour->{_note} . ' ticwidth=' . $pscontour->{_ticwidth};
1279 $pscontour->{_Step} =
1280 $pscontour->{_Step} . ' ticwidth=' . $pscontour->{_ticwidth};
1281  
1282 }
1283 else {
1284 print("pscontour, ticwidth, missing ticwidth,\n");
1285 }
1286 }
1287  
1288 =head2 sub title
1289  
1290  
1291 =cut
1292  
1293 sub title {
1294  
1295 my ( $self, $title ) = @_;
1296 if ( $title ne $empty_string ) {
1297  
1298 $pscontour->{_title} = $title;
1299 $pscontour->{_note} =
1300 $pscontour->{_note} . ' title=' . $pscontour->{_title};
1301 $pscontour->{_Step} =
1302 $pscontour->{_Step} . ' title=' . $pscontour->{_title};
1303  
1304 }
1305 else {
1306 print("pscontour, title, missing title,\n");
1307 }
1308 }
1309  
1310 =head2 sub titlecolor
1311  
1312  
1313 =cut
1314  
1315 sub titlecolor {
1316  
1317 my ( $self, $titlecolor ) = @_;
1318 if ( $titlecolor ne $empty_string ) {
1319  
1320 $pscontour->{_titlecolor} = $titlecolor;
1321 $pscontour->{_note} =
1322 $pscontour->{_note} . ' titlecolor=' . $pscontour->{_titlecolor};
1323 $pscontour->{_Step} =
1324 $pscontour->{_Step} . ' titlecolor=' . $pscontour->{_titlecolor};
1325  
1326 }
1327 else {
1328 print("pscontour, titlecolor, missing titlecolor,\n");
1329 }
1330 }
1331  
1332 =head2 sub titlefont
1333  
1334  
1335 =cut
1336  
1337 sub titlefont {
1338  
1339 my ( $self, $titlefont ) = @_;
1340 if ( $titlefont ne $empty_string ) {
1341  
1342 $pscontour->{_titlefont} = $titlefont;
1343 $pscontour->{_note} =
1344 $pscontour->{_note} . ' titlefont=' . $pscontour->{_titlefont};
1345 $pscontour->{_Step} =
1346 $pscontour->{_Step} . ' titlefont=' . $pscontour->{_titlefont};
1347  
1348 }
1349 else {
1350 print("pscontour, titlefont, missing titlefont,\n");
1351 }
1352 }
1353  
1354 =head2 sub titlesize
1355  
1356  
1357 =cut
1358  
1359 sub titlesize {
1360  
1361 my ( $self, $titlesize ) = @_;
1362 if ( $titlesize ne $empty_string ) {
1363  
1364 $pscontour->{_titlesize} = $titlesize;
1365 $pscontour->{_note} =
1366 $pscontour->{_note} . ' titlesize=' . $pscontour->{_titlesize};
1367 $pscontour->{_Step} =
1368 $pscontour->{_Step} . ' titlesize=' . $pscontour->{_titlesize};
1369  
1370 }
1371 else {
1372 print("pscontour, titlesize, missing titlesize,\n");
1373 }
1374 }
1375  
1376 =head2 sub wbox
1377  
1378  
1379 =cut
1380  
1381 sub wbox {
1382  
1383 my ( $self, $wbox ) = @_;
1384 if ( $wbox ne $empty_string ) {
1385  
1386 $pscontour->{_wbox} = $wbox;
1387 $pscontour->{_note} =
1388 $pscontour->{_note} . ' wbox=' . $pscontour->{_wbox};
1389 $pscontour->{_Step} =
1390 $pscontour->{_Step} . ' wbox=' . $pscontour->{_wbox};
1391  
1392 }
1393 else {
1394 print("pscontour, wbox, missing wbox,\n");
1395 }
1396 }
1397  
1398 =head2 sub x1
1399  
1400  
1401 =cut
1402  
1403 sub x1 {
1404  
1405 my ( $self, $x1 ) = @_;
1406 if ( $x1 ne $empty_string ) {
1407  
1408 $pscontour->{_x1} = $x1;
1409 $pscontour->{_note} = $pscontour->{_note} . ' x1=' . $pscontour->{_x1};
1410 $pscontour->{_Step} = $pscontour->{_Step} . ' x1=' . $pscontour->{_x1};
1411  
1412 }
1413 else {
1414 print("pscontour, x1, missing x1,\n");
1415 }
1416 }
1417  
1418 =head2 sub x1beg
1419  
1420  
1421 =cut
1422  
1423 sub x1beg {
1424  
1425 my ( $self, $x1beg ) = @_;
1426 if ( $x1beg ne $empty_string ) {
1427  
1428 $pscontour->{_x1beg} = $x1beg;
1429 $pscontour->{_note} =
1430 $pscontour->{_note} . ' x1beg=' . $pscontour->{_x1beg};
1431 $pscontour->{_Step} =
1432 $pscontour->{_Step} . ' x1beg=' . $pscontour->{_x1beg};
1433  
1434 }
1435 else {
1436 print("pscontour, x1beg, missing x1beg,\n");
1437 }
1438 }
1439  
1440 =head2 sub x1end
1441  
1442  
1443 =cut
1444  
1445 sub x1end {
1446  
1447 my ( $self, $x1end ) = @_;
1448 if ( $x1end ne $empty_string ) {
1449  
1450 $pscontour->{_x1end} = $x1end;
1451 $pscontour->{_note} =
1452 $pscontour->{_note} . ' x1end=' . $pscontour->{_x1end};
1453 $pscontour->{_Step} =
1454 $pscontour->{_Step} . ' x1end=' . $pscontour->{_x1end};
1455  
1456 }
1457 else {
1458 print("pscontour, x1end, missing x1end,\n");
1459 }
1460 }
1461  
1462 =head2 sub x2
1463  
1464  
1465 =cut
1466  
1467 sub x2 {
1468  
1469 my ( $self, $x2 ) = @_;
1470 if ( $x2 ne $empty_string ) {
1471  
1472 $pscontour->{_x2} = $x2;
1473 $pscontour->{_note} = $pscontour->{_note} . ' x2=' . $pscontour->{_x2};
1474 $pscontour->{_Step} = $pscontour->{_Step} . ' x2=' . $pscontour->{_x2};
1475  
1476 }
1477 else {
1478 print("pscontour, x2, missing x2,\n");
1479 }
1480 }
1481  
1482 =head2 sub x2beg
1483  
1484  
1485 =cut
1486  
1487 sub x2beg {
1488  
1489 my ( $self, $x2beg ) = @_;
1490 if ( $x2beg ne $empty_string ) {
1491  
1492 $pscontour->{_x2beg} = $x2beg;
1493 $pscontour->{_note} =
1494 $pscontour->{_note} . ' x2beg=' . $pscontour->{_x2beg};
1495 $pscontour->{_Step} =
1496 $pscontour->{_Step} . ' x2beg=' . $pscontour->{_x2beg};
1497  
1498 }
1499 else {
1500 print("pscontour, x2beg, missing x2beg,\n");
1501 }
1502 }
1503  
1504 =head2 sub x2end
1505  
1506  
1507 =cut
1508  
1509 sub x2end {
1510  
1511 my ( $self, $x2end ) = @_;
1512 if ( $x2end ne $empty_string ) {
1513  
1514 $pscontour->{_x2end} = $x2end;
1515 $pscontour->{_note} =
1516 $pscontour->{_note} . ' x2end=' . $pscontour->{_x2end};
1517 $pscontour->{_Step} =
1518 $pscontour->{_Step} . ' x2end=' . $pscontour->{_x2end};
1519  
1520 }
1521 else {
1522 print("pscontour, x2end, missing x2end,\n");
1523 }
1524 }
1525  
1526 =head2 sub xbox
1527  
1528  
1529 =cut
1530  
1531 sub xbox {
1532  
1533 my ( $self, $xbox ) = @_;
1534 if ( $xbox ne $empty_string ) {
1535  
1536 $pscontour->{_xbox} = $xbox;
1537 $pscontour->{_note} =
1538 $pscontour->{_note} . ' xbox=' . $pscontour->{_xbox};
1539 $pscontour->{_Step} =
1540 $pscontour->{_Step} . ' xbox=' . $pscontour->{_xbox};
1541  
1542 }
1543 else {
1544 print("pscontour, xbox, missing xbox,\n");
1545 }
1546 }
1547  
1548 =head2 sub ybox
1549  
1550  
1551 =cut
1552  
1553 sub ybox {
1554  
1555 my ( $self, $ybox ) = @_;
1556 if ( $ybox ne $empty_string ) {
1557  
1558 $pscontour->{_ybox} = $ybox;
1559 $pscontour->{_note} =
1560 $pscontour->{_note} . ' ybox=' . $pscontour->{_ybox};
1561 $pscontour->{_Step} =
1562 $pscontour->{_Step} . ' ybox=' . $pscontour->{_ybox};
1563  
1564 }
1565 else {
1566 print("pscontour, ybox, missing ybox,\n");
1567 }
1568 }
1569  
1570 =head2 sub get_max_index
1571  
1572 max index = number of input variables -1
1573
1574 =cut
1575  
1576 sub get_max_index {
1577 my ($self) = @_;
1578 my $max_index = 52;
1579  
1580 return ($max_index);
1581 }
1582  
1583 1;