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

filter: Statementstmt 0.0% 0 / 266 Branchbran 0.0% 0 / 66 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 41 Podpod 0.0% 0 / 37 totaltotal 0.0% 0 / 410 CC 34 SCAR 17.2
CC
34
Cov
0%
axescolor
6.0
dxnum
6.0
dznum
6.0
CRAP 5.6
1 package App::SeismicUnixGui::sunix::plot::spsplot;
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 SPSPLOT - plot a triangulated sloth function s(x,z) via PostScript
25  
26  
27  
28 spsplot <modelfile >postscriptfile [optional parameters]
29  
30  
31  
32 Optional Parameters:
33  
34 gedge=0.0 gray to draw fixed edges (in interval [0.0,1.0])
35  
36 gtri=1.0 gray to draw non-fixed edges of triangles
37  
38 gmin=0.0 min gray to shade triangles (in interval [0.0,1.0])
39  
40 gmax=1.0 max gray to shade triangles (in interval [0.0,1.0])
41  
42 sgmin=minimum s(x,z) s(x,y) corresponding to gmin
43  
44 sgmax=maximum s(x,z) s(x,y) corresponding to gmax
45  
46 xbox=1.5 offset in inches of left side of axes box
47  
48 ybox=1.5 offset in inches of bottom side of axes box
49  
50 wbox=6.0 width in inches of axes box
51  
52 hbox=8.0 height in inches of axes box
53  
54 xbeg=xmin value at which x axis begins
55  
56 xend=xmax value at which x axis ends
57  
58 dxnum=0.0 numbered tic interval on x axis (0.0 for automatic)
59  
60 fxnum=xmin first numbered tic on x axis (used if dxnum not 0.0)
61  
62 nxtic=1 number of tics per numbered tic on x axis
63  
64 gridx=none grid lines on x axis - none, dot, dash, or solid
65  
66 labelx= label on x axis
67  
68 zbeg=zmin value at which z axis begins
69  
70 zend=zmax value at which z axis ends
71  
72 dznum=0.0 numbered tic interval on z axis (0.0 for automatic)
73  
74 fznum=zmin first numbered tic on z axis (used if dynum not 0.0)
75  
76 nztic=1 number of tics per numbered tic on z axis
77  
78 gridz=none grid lines on z axis - none, dot, dash, or solid
79  
80 labelz= label on z axis
81  
82 labelfont=Helvetica font name for axes labels
83  
84 labelsize=12 font size for axes labels
85  
86 title= title of plot
87  
88 titlefont=Helvetica-Bold font name for title
89  
90 titlesize=24 font size for title
91  
92 titlecolor=black color of title
93  
94 axescolor=black color of axes
95  
96 gridcolor=black color of grid
97  
98 style=seismic normal (z axis horizontal, x axis vertical) or
99  
100 seismic (z axis vertical, x axis horizontal)
101  
102  
103  
104 Note: A value of gedge or gtri outside the interval [0.0,1.0]
105  
106 results in that class of edge not being drawn.
107  
108  
109  
110  
111  
112  
113  
114 Author: Dave Hale, Colorado School of Mines, 10/18/90
115  
116 MODIFIED: Craig Artley, Colorado School of Mines, 03/27/94
117  
118 Tweaks to improve PostScript header, add basic color support.
119  
120  
121  
122 NOTE: Have observed errors in output when compiled with optimization
123  
124 under NEXTSTEP 3.1. Caveat Emptor.
125  
126  
127  
128 Modified: Morten Wendell Pedersen, Aarhus University, 23/3-97
129  
130 Added ticwidth,axeswidth, gridwidth parameters
131  
132  
133  
134 =head2 User's notes (Juan Lorenzo)
135 untested
136  
137 =cut
138  
139  
140 =head2 CHANGES and their DATES
141  
142 =cut
143  
144 use Moose;
145 our $VERSION = '0.0.1';
146  
147  
148 =head2 Import packages
149  
150 =cut
151  
152 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
153  
154 use App::SeismicUnixGui::misc::SeismicUnix qw($go $in $off $on $out $ps $to $suffix_ascii $suffix_bin $suffix_ps $suffix_segy $suffix_su);
155 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
156  
157  
158 =head2 instantiation of packages
159  
160 =cut
161  
162 my $get = L_SU_global_constants->new();
163 my $Project = Project_config->new();
164 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
165 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
166 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
167  
168 my $PS_SEISMIC = $Project->PS_SEISMIC();
169  
170 my $var = $get->var();
171 my $on = $var->{_on};
172 my $off = $var->{_off};
173 my $true = $var->{_true};
174 my $false = $var->{_false};
175 my $empty_string = $var->{_empty_string};
176  
177 =head2 Encapsulated
178 hash of private variables
179  
180 =cut
181  
182 my $spsplot = {
183 _axescolor => '',
184 _dxnum => '',
185 _dznum => '',
186 _fxnum => '',
187 _fznum => '',
188 _gedge => '',
189 _gmax => '',
190 _gmin => '',
191 _gridcolor => '',
192 _gridx => '',
193 _gridz => '',
194 _gtri => '',
195 _hbox => '',
196 _labelfont => '',
197 _labelsize => '',
198 _labelx => '',
199 _labelz => '',
200 _nxtic => '',
201 _nztic => '',
202 _sgmax => '',
203 _sgmin => '',
204 _style => '',
205 _title => '',
206 _titlecolor => '',
207 _titlefont => '',
208 _titlesize => '',
209 _wbox => '',
210 _xbeg => '',
211 _xbox => '',
212 _xend => '',
213 _ybox => '',
214 _zbeg => '',
215 _zend => '',
216 _Step => '',
217 _note => '',
218  
219 };
220  
221 =head2 sub Step
222  
223 collects switches and assembles bash instructions
224 by adding the program name
225  
226 =cut
227  
228 sub Step {
229  
230 $spsplot->{_Step} = 'spsplot'.$spsplot->{_Step};
231 return ( $spsplot->{_Step} );
232  
233 }
234  
235  
236 =head2 sub note
237  
238 collects switches and assembles bash instructions
239 by adding the program name
240  
241 =cut
242  
243 sub note {
244  
245 $spsplot->{_note} = 'spsplot'.$spsplot->{_note};
246 return ( $spsplot->{_note} );
247  
248 }
249  
250  
251  
252 =head2 sub clear
253  
254 =cut
255  
256 sub clear {
257  
258 $spsplot->{_axescolor} = '';
259 $spsplot->{_dxnum} = '';
260 $spsplot->{_dznum} = '';
261 $spsplot->{_fxnum} = '';
262 $spsplot->{_fznum} = '';
263 $spsplot->{_gedge} = '';
264 $spsplot->{_gmax} = '';
265 $spsplot->{_gmin} = '';
266 $spsplot->{_gridcolor} = '';
267 $spsplot->{_gridx} = '';
268 $spsplot->{_gridz} = '';
269 $spsplot->{_gtri} = '';
270 $spsplot->{_hbox} = '';
271 $spsplot->{_labelfont} = '';
272 $spsplot->{_labelsize} = '';
273 $spsplot->{_labelx} = '';
274 $spsplot->{_labelz} = '';
275 $spsplot->{_nxtic} = '';
276 $spsplot->{_nztic} = '';
277 $spsplot->{_sgmax} = '';
278 $spsplot->{_sgmin} = '';
279 $spsplot->{_style} = '';
280 $spsplot->{_title} = '';
281 $spsplot->{_titlecolor} = '';
282 $spsplot->{_titlefont} = '';
283 $spsplot->{_titlesize} = '';
284 $spsplot->{_wbox} = '';
285 $spsplot->{_xbeg} = '';
286 $spsplot->{_xbox} = '';
287 $spsplot->{_xend} = '';
288 $spsplot->{_ybox} = '';
289 $spsplot->{_zbeg} = '';
290 $spsplot->{_zend} = '';
291 $spsplot->{_Step} = '';
292 $spsplot->{_note} = '';
293 }
294  
295  
296 =head2 sub axescolor
297  
298  
299 =cut
300  
301 sub axescolor {
302  
303 my ( $self,$axescolor ) = @_;
304 if ( $axescolor ne $empty_string ) {
305  
306 $spsplot->{_axescolor} = $axescolor;
307 $spsplot->{_note} = $spsplot->{_note}.' axescolor='.$spsplot->{_axescolor};
308 $spsplot->{_Step} = $spsplot->{_Step}.' axescolor='.$spsplot->{_axescolor};
309  
310 } else {
311 print("spsplot, axescolor, missing axescolor,\n");
312 }
313 }
314  
315  
316 =head2 sub dxnum
317  
318  
319 =cut
320  
321 sub dxnum {
322  
323 my ( $self,$dxnum ) = @_;
324 if ( $dxnum ne $empty_string ) {
325  
326 $spsplot->{_dxnum} = $dxnum;
327 $spsplot->{_note} = $spsplot->{_note}.' dxnum='.$spsplot->{_dxnum};
328 $spsplot->{_Step} = $spsplot->{_Step}.' dxnum='.$spsplot->{_dxnum};
329  
330 } else {
331 print("spsplot, dxnum, missing dxnum,\n");
332 }
333 }
334  
335  
336 =head2 sub dznum
337  
338  
339 =cut
340  
341 sub dznum {
342  
343 my ( $self,$dznum ) = @_;
344 if ( $dznum ne $empty_string ) {
345  
346 $spsplot->{_dznum} = $dznum;
347 $spsplot->{_note} = $spsplot->{_note}.' dznum='.$spsplot->{_dznum};
348 $spsplot->{_Step} = $spsplot->{_Step}.' dznum='.$spsplot->{_dznum};
349  
350 } else {
351 print("spsplot, dznum, missing dznum,\n");
352 }
353 }
354  
355  
356 =head2 sub fxnum
357  
358  
359 =cut
360  
361 sub fxnum {
362  
363 my ( $self,$fxnum ) = @_;
364 if ( $fxnum ne $empty_string ) {
365  
366 $spsplot->{_fxnum} = $fxnum;
367 $spsplot->{_note} = $spsplot->{_note}.' fxnum='.$spsplot->{_fxnum};
368 $spsplot->{_Step} = $spsplot->{_Step}.' fxnum='.$spsplot->{_fxnum};
369  
370 } else {
371 print("spsplot, fxnum, missing fxnum,\n");
372 }
373 }
374  
375  
376 =head2 sub fznum
377  
378  
379 =cut
380  
381 sub fznum {
382  
383 my ( $self,$fznum ) = @_;
384 if ( $fznum ne $empty_string ) {
385  
386 $spsplot->{_fznum} = $fznum;
387 $spsplot->{_note} = $spsplot->{_note}.' fznum='.$spsplot->{_fznum};
388 $spsplot->{_Step} = $spsplot->{_Step}.' fznum='.$spsplot->{_fznum};
389  
390 } else {
391 print("spsplot, fznum, missing fznum,\n");
392 }
393 }
394  
395  
396 =head2 sub gedge
397  
398  
399 =cut
400  
401 sub gedge {
402  
403 my ( $self,$gedge ) = @_;
404 if ( $gedge ne $empty_string ) {
405  
406 $spsplot->{_gedge} = $gedge;
407 $spsplot->{_note} = $spsplot->{_note}.' gedge='.$spsplot->{_gedge};
408 $spsplot->{_Step} = $spsplot->{_Step}.' gedge='.$spsplot->{_gedge};
409  
410 } else {
411 print("spsplot, gedge, missing gedge,\n");
412 }
413 }
414  
415  
416 =head2 sub gmax
417  
418  
419 =cut
420  
421 sub gmax {
422  
423 my ( $self,$gmax ) = @_;
424 if ( $gmax ne $empty_string ) {
425  
426 $spsplot->{_gmax} = $gmax;
427 $spsplot->{_note} = $spsplot->{_note}.' gmax='.$spsplot->{_gmax};
428 $spsplot->{_Step} = $spsplot->{_Step}.' gmax='.$spsplot->{_gmax};
429  
430 } else {
431 print("spsplot, gmax, missing gmax,\n");
432 }
433 }
434  
435  
436 =head2 sub gmin
437  
438  
439 =cut
440  
441 sub gmin {
442  
443 my ( $self,$gmin ) = @_;
444 if ( $gmin ne $empty_string ) {
445  
446 $spsplot->{_gmin} = $gmin;
447 $spsplot->{_note} = $spsplot->{_note}.' gmin='.$spsplot->{_gmin};
448 $spsplot->{_Step} = $spsplot->{_Step}.' gmin='.$spsplot->{_gmin};
449  
450 } else {
451 print("spsplot, gmin, missing gmin,\n");
452 }
453 }
454  
455  
456 =head2 sub gridcolor
457  
458  
459 =cut
460  
461 sub gridcolor {
462  
463 my ( $self,$gridcolor ) = @_;
464 if ( $gridcolor ne $empty_string ) {
465  
466 $spsplot->{_gridcolor} = $gridcolor;
467 $spsplot->{_note} = $spsplot->{_note}.' gridcolor='.$spsplot->{_gridcolor};
468 $spsplot->{_Step} = $spsplot->{_Step}.' gridcolor='.$spsplot->{_gridcolor};
469  
470 } else {
471 print("spsplot, gridcolor, missing gridcolor,\n");
472 }
473 }
474  
475  
476 =head2 sub gridx
477  
478  
479 =cut
480  
481 sub gridx {
482  
483 my ( $self,$gridx ) = @_;
484 if ( $gridx ne $empty_string ) {
485  
486 $spsplot->{_gridx} = $gridx;
487 $spsplot->{_note} = $spsplot->{_note}.' gridx='.$spsplot->{_gridx};
488 $spsplot->{_Step} = $spsplot->{_Step}.' gridx='.$spsplot->{_gridx};
489  
490 } else {
491 print("spsplot, gridx, missing gridx,\n");
492 }
493 }
494  
495  
496 =head2 sub gridz
497  
498  
499 =cut
500  
501 sub gridz {
502  
503 my ( $self,$gridz ) = @_;
504 if ( $gridz ne $empty_string ) {
505  
506 $spsplot->{_gridz} = $gridz;
507 $spsplot->{_note} = $spsplot->{_note}.' gridz='.$spsplot->{_gridz};
508 $spsplot->{_Step} = $spsplot->{_Step}.' gridz='.$spsplot->{_gridz};
509  
510 } else {
511 print("spsplot, gridz, missing gridz,\n");
512 }
513 }
514  
515  
516 =head2 sub gtri
517  
518  
519 =cut
520  
521 sub gtri {
522  
523 my ( $self,$gtri ) = @_;
524 if ( $gtri ne $empty_string ) {
525  
526 $spsplot->{_gtri} = $gtri;
527 $spsplot->{_note} = $spsplot->{_note}.' gtri='.$spsplot->{_gtri};
528 $spsplot->{_Step} = $spsplot->{_Step}.' gtri='.$spsplot->{_gtri};
529  
530 } else {
531 print("spsplot, gtri, missing gtri,\n");
532 }
533 }
534  
535  
536 =head2 sub hbox
537  
538  
539 =cut
540  
541 sub hbox {
542  
543 my ( $self,$hbox ) = @_;
544 if ( $hbox ne $empty_string ) {
545  
546 $spsplot->{_hbox} = $hbox;
547 $spsplot->{_note} = $spsplot->{_note}.' hbox='.$spsplot->{_hbox};
548 $spsplot->{_Step} = $spsplot->{_Step}.' hbox='.$spsplot->{_hbox};
549  
550 } else {
551 print("spsplot, hbox, missing hbox,\n");
552 }
553 }
554  
555  
556 =head2 sub labelfont
557  
558  
559 =cut
560  
561 sub labelfont {
562  
563 my ( $self,$labelfont ) = @_;
564 if ( $labelfont ne $empty_string ) {
565  
566 $spsplot->{_labelfont} = $labelfont;
567 $spsplot->{_note} = $spsplot->{_note}.' labelfont='.$spsplot->{_labelfont};
568 $spsplot->{_Step} = $spsplot->{_Step}.' labelfont='.$spsplot->{_labelfont};
569  
570 } else {
571 print("spsplot, labelfont, missing labelfont,\n");
572 }
573 }
574  
575  
576 =head2 sub labelsize
577  
578  
579 =cut
580  
581 sub labelsize {
582  
583 my ( $self,$labelsize ) = @_;
584 if ( $labelsize ne $empty_string ) {
585  
586 $spsplot->{_labelsize} = $labelsize;
587 $spsplot->{_note} = $spsplot->{_note}.' labelsize='.$spsplot->{_labelsize};
588 $spsplot->{_Step} = $spsplot->{_Step}.' labelsize='.$spsplot->{_labelsize};
589  
590 } else {
591 print("spsplot, labelsize, missing labelsize,\n");
592 }
593 }
594  
595  
596 =head2 sub labelx
597  
598  
599 =cut
600  
601 sub labelx {
602  
603 my ( $self,$labelx ) = @_;
604 if ( $labelx ne $empty_string ) {
605  
606 $spsplot->{_labelx} = $labelx;
607 $spsplot->{_note} = $spsplot->{_note}.' labelx='.$spsplot->{_labelx};
608 $spsplot->{_Step} = $spsplot->{_Step}.' labelx='.$spsplot->{_labelx};
609  
610 } else {
611 print("spsplot, labelx, missing labelx,\n");
612 }
613 }
614  
615  
616 =head2 sub labelz
617  
618  
619 =cut
620  
621 sub labelz {
622  
623 my ( $self,$labelz ) = @_;
624 if ( $labelz ne $empty_string ) {
625  
626 $spsplot->{_labelz} = $labelz;
627 $spsplot->{_note} = $spsplot->{_note}.' labelz='.$spsplot->{_labelz};
628 $spsplot->{_Step} = $spsplot->{_Step}.' labelz='.$spsplot->{_labelz};
629  
630 } else {
631 print("spsplot, labelz, missing labelz,\n");
632 }
633 }
634  
635  
636 =head2 sub nxtic
637  
638  
639 =cut
640  
641 sub nxtic {
642  
643 my ( $self,$nxtic ) = @_;
644 if ( $nxtic ne $empty_string ) {
645  
646 $spsplot->{_nxtic} = $nxtic;
647 $spsplot->{_note} = $spsplot->{_note}.' nxtic='.$spsplot->{_nxtic};
648 $spsplot->{_Step} = $spsplot->{_Step}.' nxtic='.$spsplot->{_nxtic};
649  
650 } else {
651 print("spsplot, nxtic, missing nxtic,\n");
652 }
653 }
654  
655  
656 =head2 sub nztic
657  
658  
659 =cut
660  
661 sub nztic {
662  
663 my ( $self,$nztic ) = @_;
664 if ( $nztic ne $empty_string ) {
665  
666 $spsplot->{_nztic} = $nztic;
667 $spsplot->{_note} = $spsplot->{_note}.' nztic='.$spsplot->{_nztic};
668 $spsplot->{_Step} = $spsplot->{_Step}.' nztic='.$spsplot->{_nztic};
669  
670 } else {
671 print("spsplot, nztic, missing nztic,\n");
672 }
673 }
674  
675  
676 =head2 sub sgmax
677  
678  
679 =cut
680  
681 sub sgmax {
682  
683 my ( $self,$sgmax ) = @_;
684 if ( $sgmax ne $empty_string ) {
685  
686 $spsplot->{_sgmax} = $sgmax;
687 $spsplot->{_note} = $spsplot->{_note}.' sgmax='.$spsplot->{_sgmax};
688 $spsplot->{_Step} = $spsplot->{_Step}.' sgmax='.$spsplot->{_sgmax};
689  
690 } else {
691 print("spsplot, sgmax, missing sgmax,\n");
692 }
693 }
694  
695  
696 =head2 sub sgmin
697  
698  
699 =cut
700  
701 sub sgmin {
702  
703 my ( $self,$sgmin ) = @_;
704 if ( $sgmin ne $empty_string ) {
705  
706 $spsplot->{_sgmin} = $sgmin;
707 $spsplot->{_note} = $spsplot->{_note}.' sgmin='.$spsplot->{_sgmin};
708 $spsplot->{_Step} = $spsplot->{_Step}.' sgmin='.$spsplot->{_sgmin};
709  
710 } else {
711 print("spsplot, sgmin, missing sgmin,\n");
712 }
713 }
714  
715  
716 =head2 sub style
717  
718  
719 =cut
720  
721 sub style {
722  
723 my ( $self,$style ) = @_;
724 if ( $style ne $empty_string ) {
725  
726 $spsplot->{_style} = $style;
727 $spsplot->{_note} = $spsplot->{_note}.' style='.$spsplot->{_style};
728 $spsplot->{_Step} = $spsplot->{_Step}.' style='.$spsplot->{_style};
729  
730 } else {
731 print("spsplot, style, missing style,\n");
732 }
733 }
734  
735  
736 =head2 sub title
737  
738  
739 =cut
740  
741 sub title {
742  
743 my ( $self,$title ) = @_;
744 if ( $title ne $empty_string ) {
745  
746 $spsplot->{_title} = $title;
747 $spsplot->{_note} = $spsplot->{_note}.' title='.$spsplot->{_title};
748 $spsplot->{_Step} = $spsplot->{_Step}.' title='.$spsplot->{_title};
749  
750 } else {
751 print("spsplot, title, missing title,\n");
752 }
753 }
754  
755  
756 =head2 sub titlecolor
757  
758  
759 =cut
760  
761 sub titlecolor {
762  
763 my ( $self,$titlecolor ) = @_;
764 if ( $titlecolor ne $empty_string ) {
765  
766 $spsplot->{_titlecolor} = $titlecolor;
767 $spsplot->{_note} = $spsplot->{_note}.' titlecolor='.$spsplot->{_titlecolor};
768 $spsplot->{_Step} = $spsplot->{_Step}.' titlecolor='.$spsplot->{_titlecolor};
769  
770 } else {
771 print("spsplot, titlecolor, missing titlecolor,\n");
772 }
773 }
774  
775  
776 =head2 sub titlefont
777  
778  
779 =cut
780  
781 sub titlefont {
782  
783 my ( $self,$titlefont ) = @_;
784 if ( $titlefont ne $empty_string ) {
785  
786 $spsplot->{_titlefont} = $titlefont;
787 $spsplot->{_note} = $spsplot->{_note}.' titlefont='.$spsplot->{_titlefont};
788 $spsplot->{_Step} = $spsplot->{_Step}.' titlefont='.$spsplot->{_titlefont};
789  
790 } else {
791 print("spsplot, titlefont, missing titlefont,\n");
792 }
793 }
794  
795  
796 =head2 sub titlesize
797  
798  
799 =cut
800  
801 sub titlesize {
802  
803 my ( $self,$titlesize ) = @_;
804 if ( $titlesize ne $empty_string ) {
805  
806 $spsplot->{_titlesize} = $titlesize;
807 $spsplot->{_note} = $spsplot->{_note}.' titlesize='.$spsplot->{_titlesize};
808 $spsplot->{_Step} = $spsplot->{_Step}.' titlesize='.$spsplot->{_titlesize};
809  
810 } else {
811 print("spsplot, titlesize, missing titlesize,\n");
812 }
813 }
814  
815  
816 =head2 sub wbox
817  
818  
819 =cut
820  
821 sub wbox {
822  
823 my ( $self,$wbox ) = @_;
824 if ( $wbox ne $empty_string ) {
825  
826 $spsplot->{_wbox} = $wbox;
827 $spsplot->{_note} = $spsplot->{_note}.' wbox='.$spsplot->{_wbox};
828 $spsplot->{_Step} = $spsplot->{_Step}.' wbox='.$spsplot->{_wbox};
829  
830 } else {
831 print("spsplot, wbox, missing wbox,\n");
832 }
833 }
834  
835  
836 =head2 sub xbeg
837  
838  
839 =cut
840  
841 sub xbeg {
842  
843 my ( $self,$xbeg ) = @_;
844 if ( $xbeg ne $empty_string ) {
845  
846 $spsplot->{_xbeg} = $xbeg;
847 $spsplot->{_note} = $spsplot->{_note}.' xbeg='.$spsplot->{_xbeg};
848 $spsplot->{_Step} = $spsplot->{_Step}.' xbeg='.$spsplot->{_xbeg};
849  
850 } else {
851 print("spsplot, xbeg, missing xbeg,\n");
852 }
853 }
854  
855  
856 =head2 sub xbox
857  
858  
859 =cut
860  
861 sub xbox {
862  
863 my ( $self,$xbox ) = @_;
864 if ( $xbox ne $empty_string ) {
865  
866 $spsplot->{_xbox} = $xbox;
867 $spsplot->{_note} = $spsplot->{_note}.' xbox='.$spsplot->{_xbox};
868 $spsplot->{_Step} = $spsplot->{_Step}.' xbox='.$spsplot->{_xbox};
869  
870 } else {
871 print("spsplot, xbox, missing xbox,\n");
872 }
873 }
874  
875  
876 =head2 sub xend
877  
878  
879 =cut
880  
881 sub xend {
882  
883 my ( $self,$xend ) = @_;
884 if ( $xend ne $empty_string ) {
885  
886 $spsplot->{_xend} = $xend;
887 $spsplot->{_note} = $spsplot->{_note}.' xend='.$spsplot->{_xend};
888 $spsplot->{_Step} = $spsplot->{_Step}.' xend='.$spsplot->{_xend};
889  
890 } else {
891 print("spsplot, xend, missing xend,\n");
892 }
893 }
894  
895  
896 =head2 sub ybox
897  
898  
899 =cut
900  
901 sub ybox {
902  
903 my ( $self,$ybox ) = @_;
904 if ( $ybox ne $empty_string ) {
905  
906 $spsplot->{_ybox} = $ybox;
907 $spsplot->{_note} = $spsplot->{_note}.' ybox='.$spsplot->{_ybox};
908 $spsplot->{_Step} = $spsplot->{_Step}.' ybox='.$spsplot->{_ybox};
909  
910 } else {
911 print("spsplot, ybox, missing ybox,\n");
912 }
913 }
914  
915  
916 =head2 sub zbeg
917  
918  
919 =cut
920  
921 sub zbeg {
922  
923 my ( $self,$zbeg ) = @_;
924 if ( $zbeg ne $empty_string ) {
925  
926 $spsplot->{_zbeg} = $zbeg;
927 $spsplot->{_note} = $spsplot->{_note}.' zbeg='.$spsplot->{_zbeg};
928 $spsplot->{_Step} = $spsplot->{_Step}.' zbeg='.$spsplot->{_zbeg};
929  
930 } else {
931 print("spsplot, zbeg, missing zbeg,\n");
932 }
933 }
934  
935  
936 =head2 sub zend
937  
938  
939 =cut
940  
941 sub zend {
942  
943 my ( $self,$zend ) = @_;
944 if ( $zend ne $empty_string ) {
945  
946 $spsplot->{_zend} = $zend;
947 $spsplot->{_note} = $spsplot->{_note}.' zend='.$spsplot->{_zend};
948 $spsplot->{_Step} = $spsplot->{_Step}.' zend='.$spsplot->{_zend};
949  
950 } else {
951 print("spsplot, zend, missing zend,\n");
952 }
953 }
954  
955  
956 =head2 sub get_max_index
957  
958 max index = number of input variables -1
959
960 =cut
961
962 sub get_max_index {
963 my ($self) = @_;
964 my $max_index = 32;
965  
966 return($max_index);
967 }
968
969
970 1;