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

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