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

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