« lib/App/SeismicUnixGui/sunix/plot/supswigp.pm
↑ Summary
lib/App/SeismicUnixGui/sunix/plot/suximage.pm »
| 1 | package App::SeismicUnixGui::sunix::plot::suxgraph; | ||
| 2 | |||
| 3 | =head1 DOCUMENTATION | ||
| 4 | |||
| 5 | =head2 SYNOPSIS | ||
| 6 | |||
| 7 | PERL PROGRAM NAME: suxgraph.pm | ||
| 8 | |||
| 9 | AUTHOR: Juan Lorenzo (Perl module only) | ||
| 10 | DATE: Jan 25, 2018 | ||
| 11 | DESCRIPTION: package for sunix module suxgraph | ||
| 12 | Version: 1.0.0 | ||
| 13 | |||
| 14 | =head2 USE | ||
| 15 | |||
| 16 | =head3 NOTES | ||
| 17 | |||
| 18 | =head4 Examples | ||
| 19 | |||
| 20 | =head3 SEISMIC UNIX NOTES | ||
| 21 | |||
| 22 | =head2 CHANGES and their DATES | ||
| 23 | |||
| 24 | =cut | ||
| 25 | |||
| 26 | =head2 | ||
| 27 | |||
| 28 | SUXGRAPH inherits use of parameters from XGRAPH (see below) | ||
| 29 | |||
| 30 | SUXGRAPH - X-windows GRAPH plot of a segy data set | ||
| 31 | |||
| 32 | suxgraph <stdin [optional parameters] | ... | ||
| 33 | |||
| 34 | Optional parameters: | ||
| 35 | (see xgraph selfdoc for optional parametes) | ||
| 36 | |||
| 37 | nplot= number of traces (ntr is an acceptable alias for nplot) | ||
| 38 | |||
| 39 | d1=tr.d1 or tr.dt/10^6 sampling interval in the fast dimension | ||
| 40 | =.004 for seismic (if not set) | ||
| 41 | =1.0 for nonseismic (if not set) | ||
| 42 | |||
| 43 | d2=tr.d2 sampling interval in the slow dimension | ||
| 44 | =1.0 (if not set) | ||
| 45 | |||
| 46 | f1=tr.f1 or tr.delrt/10^3 or 0.0 first sample in the fast dimension | ||
| 47 | |||
| 48 | f2=tr.f2 or tr.tracr or tr.tracl first sample in the slow dimension | ||
| 49 | =1.0 for seismic (if not set) | ||
| 50 | =d2 for nonseismic (if not set) | ||
| 51 | |||
| 52 | verbose=0 =1 to print some useful information | ||
| 53 | |||
| 54 | tmpdir= if non-empty, use the value as a directory path | ||
| 55 | prefix for storing temporary files; else if the | ||
| 56 | the CWP_TMPDIR environment variable is set use | ||
| 57 | its value for the path; else use tmpfile() | ||
| 58 | |||
| 59 | Note that for seismic time domain data, the "fast dimension" is | ||
| 60 | time and the "slow dimension" is usually trace number or range. | ||
| 61 | Also note that "foreign" data tapes may have something unexpected | ||
| 62 | in the d2,f2 fields, use segyclean to clear these if you can afford | ||
| 63 | the processing time or use d2= f2= to over-ride the header values if | ||
| 64 | not. | ||
| 65 | |||
| 66 | See the xgraph selfdoc for the remaining parameters. | ||
| 67 | |||
| 68 | On NeXT: suxgraph < infile [optional parameters] | open | ||
| 69 | |||
| 70 | |||
| 71 | XGRAPH - X GRAPHer | ||
| 72 | Graphs n[i] pairs of (x,y) coordinates, for i = 1 to nplot. | ||
| 73 | |||
| 74 | xgraph n= [optional parameters] <binaryfile | ||
| 75 | |||
| 76 | X Functionality: | ||
| 77 | q or Q key Quit | ||
| 78 | |||
| 79 | Required Parameters: | ||
| 80 | n array containing number of points per plot | ||
| 81 | |||
| 82 | Optional Parameters: | ||
| 83 | nplot=number of n's number of plots | ||
| 84 | d1=0.0,... x sampling intervals (0.0 if x coordinates input) | ||
| 85 | f1=0.0,... first x values (not used if x coordinates input) | ||
| 86 | d2=0.0,... y sampling intervals (0.0 if y coordinates input) | ||
| 87 | f2=0.0,... first y values (not used if y coordinates input) | ||
| 88 | pairs=1,... =1 for data pairs in format 1.a, =0 for format 1.b | ||
| 89 | linewidth=1,1,... line widths in pixels (0 for no lines) | ||
| 90 | linecolor=2,3,... line colors (black=0, white=1, 2,3,4 = RGB, ...) | ||
| 91 | mark=0,1,2,3,... indices of marks used to represent plotted points | ||
| 92 | marksize=0,0,... size of marks in pixels (0 for no marks) | ||
| 93 | x1beg=x1min value at which axis 1 begins | ||
| 94 | x1end=x1max value at which axis 1 ends | ||
| 95 | x2beg=x2min value at which axis 2 begins | ||
| 96 | x2end=x2max value at which axis 2 ends | ||
| 97 | reverse=0 =1 to reverse sequence of plotting curves | ||
| 98 | |||
| 99 | Optional resource parameters (defaults taken from resource database): | ||
| 100 | |||
| 101 | windowtitle= title on window | ||
| 102 | |||
| 103 | wbox or | ||
| 104 | width= width in pixels of window | ||
| 105 | |||
| 106 | hbox or | ||
| 107 | height= height in pixels of window | ||
| 108 | |||
| 109 | nTic1= number of tics per numbered tic on axis 1 | ||
| 110 | grid1= grid lines on axis 1 - none, dot, dash, or solid | ||
| 111 | |||
| 112 | y_label or | ||
| 113 | label1= label on axis 1 | ||
| 114 | nTic2= number of tics per numbered tic on axis 2 | ||
| 115 | grid2= grid lines onwidth axis 2 - none, dot, dash, or solid | ||
| 116 | |||
| 117 | xlabel or | ||
| 118 | label2= label on axis 2 | ||
| 119 | |||
| 120 | labelFont= font name for axes labels | ||
| 121 | |||
| 122 | title= title of plot | ||
| 123 | |||
| 124 | titleFont= font name for title | ||
| 125 | titleColor= color for title | ||
| 126 | axesColor= color for axes | ||
| 127 | gridColor= color for grid lines | ||
| 128 | |||
| 129 | style= normal (axis 1 horizontal, axis 2 vertical) or | ||
| 130 | seismic (axis 1 vertical, axis 2 horizontal) | ||
| 131 | |||
| 132 | Data formats supported: | ||
| 133 | 1.a. x1,y1,x2,y2,...,xn,yn | ||
| 134 | b. x1,x2,...,xn,y1,y2,...,yn | ||
| 135 | 2. y1,y2,...,yn (must give non-zero d1[]=) | ||
| 136 | 3. x1,x2,...,xn (must give non-zero d2[]=) | ||
| 137 | 4. nil (must give non-zero d1[]= and non-zero d2[]=) | ||
| 138 | The formats may be repeated and mixed in any order, but if | ||
| 139 | formats 2-4 are used, the d1 and d2 arrays must be specified including | ||
| 140 | d1[]=0.0 d2[]=0.0 entries for any internal occurences of format 1. | ||
| 141 | Similarly, the pairs array must contain place-keeping entries for | ||
| 142 | plots of formats 2-4 if they are mixed with both formats 1.a and 1.b. | ||
| 143 | Also, if formats 2-4 are used with non-zero f1[] or f2[] entries, then | ||
| 144 | the corresponding array(s) must be fully specified including f1[]=0.0 | ||
| 145 | and/or f2[]=0.0 entries for any internal occurences of format 1 or | ||
| 146 | formats 2-4 where the zero entries are desired. | ||
| 147 | mark index: | ||
| 148 | 1. asterisk | ||
| 149 | 2. x-cross | ||
| 150 | 3. open triangle | ||
| 151 | 4. open square | ||
| 152 | 5. open circle | ||
| 153 | 6. solid triangle | ||
| 154 | 7. solid square | ||
| 155 | 8. solid circle | ||
| 156 | |||
| 157 | Note: n1 and n2 are acceptable aliases for n and nplot, respectively. | ||
| 158 | |||
| 159 | Example: | ||
| 160 | xgraph n=50,100,20 d1=2.5,1,0.33 <datafile | ||
| 161 | plots three curves with equally spaced x values in one plot frame | ||
| 162 | x1-coordinates are x1(i) = f1+i*d1 for i = 1 to n (f1=0 by default) | ||
| 163 | number of x2's and then x2-coordinates for each curve are read | ||
| 164 | sequentially from datafile. | ||
| 165 | |||
| 166 | =cut | ||
| 167 | |||
| 168 | use Moose; | ||
| 169 | our $VERSION = '0.0.1'; | ||
| 170 | use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants'; | ||
| 171 | |||
| 172 | my $get = L_SU_global_constants->new(); | ||
| 173 | |||
| 174 | my $var = $get->var(); | ||
| 175 | my $empty_string = $var->{_empty_string}; | ||
| 176 | |||
| 177 | my $suxgraph = { | ||
| 178 | |||
| 179 | _tmpdir => '', | ||
| 180 | _verbose => '', | ||
| 181 | _Step => '', | ||
| 182 | _note => '', | ||
| 183 | _n2 => '', | ||
| 184 | _verbose => '', | ||
| 185 | _tmpdir => '', | ||
| 186 | # following come from xgraph | ||
| 187 | _axesColor => '', | ||
| 188 | _d1 => '', | ||
| 189 | _d2 => '', | ||
| 190 | _f1 => '', | ||
| 191 | _f2 => '', | ||
| 192 | _grid1 => '', | ||
| 193 | _grid2 => '', | ||
| 194 | _gridColor => '', | ||
| 195 | _height => '', | ||
| 196 | _label1 => '', | ||
| 197 | _label2 => '', | ||
| 198 | _labelFont => '', | ||
| 199 | _linecolor => '', | ||
| 200 | _linewidth => '', | ||
| 201 | _mark => '', | ||
| 202 | _marksize => '', | ||
| 203 | _n => '', | ||
| 204 | _nTic1 => '', | ||
| 205 | _nTic2 => '', | ||
| 206 | _nplot => '', | ||
| 207 | _pairs => '', | ||
| 208 | _reverse => '', | ||
| 209 | _style => '', | ||
| 210 | _title => '', | ||
| 211 | _titleColor => '', | ||
| 212 | _titleFont => '', | ||
| 213 | _width => '', | ||
| 214 | _windowtitle => '', | ||
| 215 | _x1beg => '', | ||
| 216 | _x1end => '', | ||
| 217 | _x2beg => '', | ||
| 218 | _x2end => '', | ||
| 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 | if ( $suxgraph->{_box_X0} ne $empty_string | ||
| 231 | && $suxgraph->{_box_Y0} ne $empty_string | ||
| 232 | && $suxgraph->{_height} ne $empty_string | ||
| 233 | && $suxgraph->{_width} ne $empty_string | ||
| 234 | ) | ||
| 235 | { | ||
| 236 | $suxgraph->{_geometry} = | ||
| 237 | '-geometry ' . $suxgraph->{_width} . 'x' | ||
| 238 | . $suxgraph->{_height} . '+' | ||
| 239 | . $suxgraph->{_box_X0} . '+' | ||
| 240 | . $suxgraph->{_box_Y0}; | ||
| 241 | |||
| 242 | $suxgraph->{_Step} = 'suxgraph' . $suxgraph->{_Step}.' '.$suxgraph->{_geometry} ; | ||
| 243 | } | ||
| 244 | else { | ||
| 245 | print("xgraph,missing parameters, NADA\n"); | ||
| 246 | $suxgraph->{_Step} = 'suxgraph' . $suxgraph->{_Step}; | ||
| 247 | } | ||
| 248 | |||
| 249 | return ( $suxgraph->{_Step} ); | ||
| 250 | |||
| 251 | } | ||
| 252 | |||
| 253 | =head2 sub note | ||
| 254 | |||
| 255 | collects switches and assembles bash instructions | ||
| 256 | by adding the program name | ||
| 257 | |||
| 258 | =cut | ||
| 259 | |||
| 260 | sub note { | ||
| 261 | |||
| 262 | $suxgraph->{_note} = 'suxgraph' . $suxgraph->{_note}; | ||
| 263 | return ( $suxgraph->{_note} ); | ||
| 264 | |||
| 265 | } | ||
| 266 | |||
| 267 | =head2 sub clear | ||
| 268 | |||
| 269 | =cut | ||
| 270 | |||
| 271 | sub clear { | ||
| 272 | |||
| 273 | $suxgraph->{_nplot} = ''; | ||
| 274 | $suxgraph->{_tmpdir} = ''; | ||
| 275 | $suxgraph->{_verbose} = ''; | ||
| 276 | $suxgraph->{_Step} = ''; | ||
| 277 | $suxgraph->{_note} = ''; | ||
| 278 | $suxgraph->{_box_X0} = 0; | ||
| 279 | $suxgraph->{_box_Y0} = 0; | ||
| 280 | $suxgraph->{_note} = ''; | ||
| 281 | |||
| 282 | # following come from xgraph | ||
| 283 | $suxgraph->{_axesColor} = ''; | ||
| 284 | $suxgraph->{_d1} = ''; | ||
| 285 | $suxgraph->{_d2} = ''; | ||
| 286 | $suxgraph->{_f1} = ''; | ||
| 287 | $suxgraph->{_f2} = ''; | ||
| 288 | $suxgraph->{_grid1} = ''; | ||
| 289 | $suxgraph->{_grid2} = ''; | ||
| 290 | $suxgraph->{_gridColor} = ''; | ||
| 291 | $suxgraph->{_height} = ''; | ||
| 292 | $suxgraph->{_label1} = ''; | ||
| 293 | $suxgraph->{_label2} = ''; | ||
| 294 | $suxgraph->{_labelFont} = ''; | ||
| 295 | $suxgraph->{_linecolor} = ''; | ||
| 296 | $suxgraph->{_linewidth} = ''; | ||
| 297 | $suxgraph->{_mark} = ''; | ||
| 298 | $suxgraph->{_marksize} = ''; | ||
| 299 | $suxgraph->{_n} = ''; | ||
| 300 | $suxgraph->{_nTic1} = ''; | ||
| 301 | $suxgraph->{_nTic2} = ''; | ||
| 302 | $suxgraph->{_nplot} = ''; | ||
| 303 | $suxgraph->{_pairs} = ''; | ||
| 304 | $suxgraph->{_reverse} = ''; | ||
| 305 | $suxgraph->{_style} = ''; | ||
| 306 | $suxgraph->{_title} = ''; | ||
| 307 | $suxgraph->{_titleColor} = ''; | ||
| 308 | $suxgraph->{_titleFont} = ''; | ||
| 309 | $suxgraph->{_width} = ''; | ||
| 310 | $suxgraph->{_windowtitle} = ''; | ||
| 311 | $suxgraph->{_x1beg} = ''; | ||
| 312 | $suxgraph->{_x1end} = ''; | ||
| 313 | $suxgraph->{_x2beg} = ''; | ||
| 314 | $suxgraph->{_x2end} = ''; | ||
| 315 | } | ||
| 316 | |||
| 317 | |||
| 318 | =head2 sub verbose | ||
| 319 | |||
| 320 | |||
| 321 | =cut | ||
| 322 | |||
| 323 | sub verbose { | ||
| 324 | |||
| 325 | my ( $self, $verbose ) = @_; | ||
| 326 | if ( $verbose ne $empty_string ) { | ||
| 327 | |||
| 328 | $suxgraph->{_verbose} = $verbose; | ||
| 329 | $suxgraph->{_note} = | ||
| 330 | $suxgraph->{_note} . ' verbose=' . $suxgraph->{_verbose}; | ||
| 331 | $suxgraph->{_Step} = | ||
| 332 | $suxgraph->{_Step} . ' verbose=' . $suxgraph->{_verbose}; | ||
| 333 | |||
| 334 | } | ||
| 335 | else { | ||
| 336 | print("suxgraph, verbose, missing verbose,\n"); | ||
| 337 | } | ||
| 338 | } | ||
| 339 | |||
| 340 | =pod | ||
| 341 | from here down files come from xgraph | ||
| 342 | =cut | ||
| 343 | |||
| 344 | =head2 sub axesColor | ||
| 345 | |||
| 346 | |||
| 347 | =cut | ||
| 348 | |||
| 349 | sub axesColor { | ||
| 350 | |||
| 351 | my ( $self, $axesColor ) = @_; | ||
| 352 | if ($axesColor) { | ||
| 353 | |||
| 354 | $suxgraph->{_axesColor} = $axesColor; | ||
| 355 | $suxgraph->{_note} = | ||
| 356 | $suxgraph->{_note} . ' axesColor=' . $suxgraph->{_axesColor}; | ||
| 357 | $suxgraph->{_Step} = | ||
| 358 | $suxgraph->{_Step} . ' axesColor=' . $suxgraph->{_axesColor}; | ||
| 359 | |||
| 360 | } | ||
| 361 | else { | ||
| 362 | print("suxgraph, axesColor, missing axesColor,\n"); | ||
| 363 | } | ||
| 364 | } | ||
| 365 | |||
| 366 | =head2 sub axes_style | ||
| 367 | |||
| 368 | normal (axis 1 horizontal, axis 2 vertical) or | ||
| 369 | seismic (axis 1 vertical, axis 2 horizontal) | ||
| 370 | |||
| 371 | =cut | ||
| 372 | |||
| 373 | sub axes_style { | ||
| 374 | |||
| 375 | my ( $self, $style ) = @_; | ||
| 376 | if ($style) { | ||
| 377 | |||
| 378 | $suxgraph->{_style} = $style; | ||
| 379 | $suxgraph->{_note} = | ||
| 380 | $suxgraph->{_note} . ' style=' . $suxgraph->{_style}; | ||
| 381 | $suxgraph->{_Step} = | ||
| 382 | $suxgraph->{_Step} . ' style=' . $suxgraph->{_style}; | ||
| 383 | |||
| 384 | } | ||
| 385 | else { | ||
| 386 | print("suxgraph, axes_style, missing axes_style,\n"); | ||
| 387 | } | ||
| 388 | } | ||
| 389 | |||
| 390 | |||
| 391 | |||
| 392 | =head2 sub box_X0 | ||
| 393 | |||
| 394 | number of pixels right from top | ||
| 395 | left corner of screen | ||
| 396 | |||
| 397 | =cut | ||
| 398 | |||
| 399 | sub box_X0 { | ||
| 400 | |||
| 401 | my ( $self, $box_X0 ) = @_; | ||
| 402 | if ( $box_X0 ne $empty_string ) { | ||
| 403 | |||
| 404 | $suxgraph->{_box_X0} = $box_X0; | ||
| 405 | $suxgraph->{_note} = $suxgraph->{_note} . ' box_X0=' . $suxgraph->{_box_X0}; | ||
| 406 | |||
| 407 | } | ||
| 408 | else { | ||
| 409 | print("xgraph, box_box_X0, missing box_box_X0,\n"); | ||
| 410 | } | ||
| 411 | } | ||
| 412 | |||
| 413 | =head2 sub box_Y0 | ||
| 414 | |||
| 415 | number of pixels down from top | ||
| 416 | left corner of screen | ||
| 417 | |||
| 418 | =cut | ||
| 419 | |||
| 420 | sub box_Y0 { | ||
| 421 | |||
| 422 | my ( $self, $box_Y0 ) = @_; | ||
| 423 | if ( $box_Y0 ne $empty_string ) { | ||
| 424 | |||
| 425 | $suxgraph->{_box_Y0} = $box_Y0; | ||
| 426 | $suxgraph->{_note} = $suxgraph->{_note} . ' box_Y0=' . $suxgraph->{_box_Y0}; | ||
| 427 | |||
| 428 | } | ||
| 429 | else { | ||
| 430 | print("xgraph, box_$box_Y0, missing box_$box_Y0,\n"); | ||
| 431 | } | ||
| 432 | } | ||
| 433 | |||
| 434 | |||
| 435 | =head2 sub box_height | ||
| 436 | |||
| 437 | height in pixels of window | ||
| 438 | |||
| 439 | =cut | ||
| 440 | |||
| 441 | sub box_height { | ||
| 442 | |||
| 443 | my ( $self, $height ) = @_; | ||
| 444 | if ($height) { | ||
| 445 | |||
| 446 | $suxgraph->{_height} = $height; | ||
| 447 | $suxgraph->{_note} = | ||
| 448 | $suxgraph->{_note} . ' height=' . $suxgraph->{_height}; | ||
| 449 | $suxgraph->{_Step} = | ||
| 450 | $suxgraph->{_Step} . ' height=' . $suxgraph->{_height}; | ||
| 451 | |||
| 452 | } | ||
| 453 | else { | ||
| 454 | print("suxgraph, box_height, missing box_height,\n"); | ||
| 455 | } | ||
| 456 | } | ||
| 457 | |||
| 458 | =head2 sub box_width | ||
| 459 | |||
| 460 | |||
| 461 | =cut | ||
| 462 | |||
| 463 | sub box_width { | ||
| 464 | |||
| 465 | my ( $self, $width ) = @_; | ||
| 466 | if ($width) { | ||
| 467 | |||
| 468 | $suxgraph->{_width} = $width; | ||
| 469 | $suxgraph->{_note} = | ||
| 470 | $suxgraph->{_note} . ' width=' . $suxgraph->{_width}; | ||
| 471 | $suxgraph->{_Step} = | ||
| 472 | $suxgraph->{_Step} . ' width=' . $suxgraph->{_width}; | ||
| 473 | |||
| 474 | } | ||
| 475 | else { | ||
| 476 | print("suxgraph, box_width, missing box_width,\n"); | ||
| 477 | } | ||
| 478 | } | ||
| 479 | |||
| 480 | =head2 sub d1 | ||
| 481 | |||
| 482 | |||
| 483 | =cut | ||
| 484 | |||
| 485 | sub d1 { | ||
| 486 | |||
| 487 | my ( $self, $d1 ) = @_; | ||
| 488 | if ($d1) { | ||
| 489 | |||
| 490 | $suxgraph->{_d1} = $d1; | ||
| 491 | $suxgraph->{_note} = $suxgraph->{_note} . ' d1=' . $suxgraph->{_d1}; | ||
| 492 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' d1=' . $suxgraph->{_d1}; | ||
| 493 | |||
| 494 | } | ||
| 495 | else { | ||
| 496 | print("suxgraph, d1, missing d1,\n"); | ||
| 497 | } | ||
| 498 | } | ||
| 499 | |||
| 500 | =head2 sub d2 | ||
| 501 | |||
| 502 | |||
| 503 | =cut | ||
| 504 | |||
| 505 | sub d2 { | ||
| 506 | |||
| 507 | my ( $self, $d2 ) = @_; | ||
| 508 | if ($d2) { | ||
| 509 | |||
| 510 | $suxgraph->{_d2} = $d2; | ||
| 511 | $suxgraph->{_note} = $suxgraph->{_note} . ' d2=' . $suxgraph->{_d2}; | ||
| 512 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' d2=' . $suxgraph->{_d2}; | ||
| 513 | |||
| 514 | } | ||
| 515 | else { | ||
| 516 | print("suxgraph, d2, missing d2,\n"); | ||
| 517 | } | ||
| 518 | } | ||
| 519 | |||
| 520 | =head2 sub dt | ||
| 521 | |||
| 522 | |||
| 523 | =cut | ||
| 524 | |||
| 525 | sub dt { | ||
| 526 | |||
| 527 | my ( $self, $d1 ) = @_; | ||
| 528 | if ($d1) { | ||
| 529 | |||
| 530 | $suxgraph->{_d1} = $d1; | ||
| 531 | $suxgraph->{_note} = $suxgraph->{_note} . ' d1=' . $suxgraph->{_d1}; | ||
| 532 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' d1=' . $suxgraph->{_d1}; | ||
| 533 | |||
| 534 | } | ||
| 535 | else { | ||
| 536 | print("suxgraph, dt, missing dt,\n"); | ||
| 537 | } | ||
| 538 | } | ||
| 539 | |||
| 540 | =head2 sub dx | ||
| 541 | |||
| 542 | |||
| 543 | =cut | ||
| 544 | |||
| 545 | sub dx { | ||
| 546 | |||
| 547 | my ( $self, $d1 ) = @_; | ||
| 548 | if ( $d1 ne $empty_string ) { | ||
| 549 | |||
| 550 | $suxgraph->{_d1} = $d1; | ||
| 551 | $suxgraph->{_note} = $suxgraph->{_note} . ' d1=' . $suxgraph->{_d1}; | ||
| 552 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' d1=' . $suxgraph->{_d1}; | ||
| 553 | |||
| 554 | } | ||
| 555 | else { | ||
| 556 | print("suxgraph, dx, missing dx,\n"); | ||
| 557 | } | ||
| 558 | } | ||
| 559 | |||
| 560 | =head2 sub dy | ||
| 561 | |||
| 562 | |||
| 563 | =cut | ||
| 564 | |||
| 565 | sub dy { | ||
| 566 | |||
| 567 | my ( $self, $d1 ) = @_; | ||
| 568 | if ( $d1 ne $empty_string ) { | ||
| 569 | |||
| 570 | $suxgraph->{_d1} = $d1; | ||
| 571 | $suxgraph->{_note} = $suxgraph->{_note} . ' d1=' . $suxgraph->{_d1}; | ||
| 572 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' d1=' . $suxgraph->{_d1}; | ||
| 573 | |||
| 574 | } | ||
| 575 | else { | ||
| 576 | print("suxgraph, dy, missing d1,\n"); | ||
| 577 | } | ||
| 578 | } | ||
| 579 | |||
| 580 | =head2 sub f1 | ||
| 581 | |||
| 582 | |||
| 583 | =cut | ||
| 584 | |||
| 585 | sub f1 { | ||
| 586 | |||
| 587 | my ( $self, $f1 ) = @_; | ||
| 588 | if ($f1) { | ||
| 589 | |||
| 590 | $suxgraph->{_f1} = $f1; | ||
| 591 | $suxgraph->{_note} = $suxgraph->{_note} . ' f1=' . $suxgraph->{_f1}; | ||
| 592 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' f1=' . $suxgraph->{_f1}; | ||
| 593 | |||
| 594 | } | ||
| 595 | else { | ||
| 596 | print("suxgraph, f1, missing f1,\n"); | ||
| 597 | } | ||
| 598 | } | ||
| 599 | |||
| 600 | =head2 sub f2 | ||
| 601 | |||
| 602 | |||
| 603 | =cut | ||
| 604 | |||
| 605 | sub f2 { | ||
| 606 | |||
| 607 | my ( $self, $f2 ) = @_; | ||
| 608 | if ($f2) { | ||
| 609 | |||
| 610 | $suxgraph->{_f2} = $f2; | ||
| 611 | $suxgraph->{_note} = $suxgraph->{_note} . ' f2=' . $suxgraph->{_f2}; | ||
| 612 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' f2=' . $suxgraph->{_f2}; | ||
| 613 | |||
| 614 | } | ||
| 615 | else { | ||
| 616 | print("suxgraph, f2, missing f2,\n"); | ||
| 617 | } | ||
| 618 | } | ||
| 619 | |||
| 620 | =head2 sub first_tick_number_x | ||
| 621 | |||
| 622 | |||
| 623 | =cut | ||
| 624 | |||
| 625 | sub first_tick_number_x { | ||
| 626 | |||
| 627 | my ( $self, $f2 ) = @_; | ||
| 628 | if ($f2) { | ||
| 629 | |||
| 630 | $suxgraph->{_f2} = $f2; | ||
| 631 | $suxgraph->{_note} = $suxgraph->{_note} . ' f2=' . $suxgraph->{_f2}; | ||
| 632 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' f2=' . $suxgraph->{_f2}; | ||
| 633 | |||
| 634 | } | ||
| 635 | else { | ||
| 636 | print("suxgraph, first_tick_number_x, missing f2,\n"); | ||
| 637 | } | ||
| 638 | } | ||
| 639 | |||
| 640 | =head2 sub first_tick_num_time | ||
| 641 | |||
| 642 | |||
| 643 | =cut | ||
| 644 | |||
| 645 | sub first_time_tick_num { | ||
| 646 | |||
| 647 | my ( $self, $f1 ) = @_; | ||
| 648 | if ( $f1 ne $empty_string ) { | ||
| 649 | |||
| 650 | $suxgraph->{_f1} = $f1; | ||
| 651 | $suxgraph->{_note} = $suxgraph->{_note} . ' f1=' . $suxgraph->{_f1}; | ||
| 652 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' f1=' . $suxgraph->{_f1}; | ||
| 653 | |||
| 654 | } | ||
| 655 | else { | ||
| 656 | print("suxgraph, first_tick_num_time, missing f1,\n"); | ||
| 657 | } | ||
| 658 | } | ||
| 659 | |||
| 660 | =head2 sub format | ||
| 661 | |||
| 662 | |||
| 663 | =cut | ||
| 664 | |||
| 665 | sub format { | ||
| 666 | |||
| 667 | my ( $self, $pairs ) = @_; | ||
| 668 | if ($pairs) { | ||
| 669 | |||
| 670 | $suxgraph->{_pairs} = $pairs; | ||
| 671 | $suxgraph->{_note} = | ||
| 672 | $suxgraph->{_note} . ' pairs=' . $suxgraph->{_pairs}; | ||
| 673 | $suxgraph->{_Step} = | ||
| 674 | $suxgraph->{_Step} . ' pairs=' . $suxgraph->{_pairs}; | ||
| 675 | |||
| 676 | } | ||
| 677 | else { | ||
| 678 | print("suxgraph, format, missing format,\n"); | ||
| 679 | } | ||
| 680 | } | ||
| 681 | |||
| 682 | =head2 sub geometry | ||
| 683 | |||
| 684 | low-level layout not commented in | ||
| 685 | seismic unix notes | ||
| 686 | |||
| 687 | =cut | ||
| 688 | |||
| 689 | sub geometry { | ||
| 690 | |||
| 691 | my ( $self, $geometry ) = @_; | ||
| 692 | if ($geometry) { | ||
| 693 | |||
| 694 | $suxgraph->{_geometry} = $geometry; | ||
| 695 | $suxgraph->{_note} = | ||
| 696 | $suxgraph->{_note} . ' -geometry ' . $suxgraph->{_geometry}; | ||
| 697 | $suxgraph->{_Step} = | ||
| 698 | $suxgraph->{_Step} . ' -geometry ' . $suxgraph->{_geometry}; | ||
| 699 | |||
| 700 | # print("suxgraph, geometry:$geometry\n"); | ||
| 701 | |||
| 702 | } | ||
| 703 | else { | ||
| 704 | print("suxgraph, geometry, missing geometry,\n"); | ||
| 705 | } | ||
| 706 | } | ||
| 707 | |||
| 708 | =head2 sub grid1 | ||
| 709 | |||
| 710 | grid lines on axis 1 - none, dot, dash, or solid | ||
| 711 | |||
| 712 | =cut | ||
| 713 | |||
| 714 | sub grid1 { | ||
| 715 | |||
| 716 | my ( $self, $grid1 ) = @_; | ||
| 717 | if ($grid1) { | ||
| 718 | |||
| 719 | $suxgraph->{_grid1} = $grid1; | ||
| 720 | $suxgraph->{_note} = | ||
| 721 | $suxgraph->{_note} . ' grid1=' . $suxgraph->{_grid1}; | ||
| 722 | $suxgraph->{_Step} = | ||
| 723 | $suxgraph->{_Step} . ' grid1=' . $suxgraph->{_grid1}; | ||
| 724 | |||
| 725 | } | ||
| 726 | else { | ||
| 727 | print("suxgraph, grid1, missing grid1,\n"); | ||
| 728 | } | ||
| 729 | } | ||
| 730 | |||
| 731 | =head2 sub grid1_type | ||
| 732 | |||
| 733 | grid lines on axis 1 - none, dot, dash, or solid | ||
| 734 | |||
| 735 | =cut | ||
| 736 | |||
| 737 | sub grid1_type { | ||
| 738 | |||
| 739 | my ( $self, $grid1 ) = @_; | ||
| 740 | if ($grid1) { | ||
| 741 | |||
| 742 | $suxgraph->{_grid1} = $grid1; | ||
| 743 | $suxgraph->{_note} = | ||
| 744 | $suxgraph->{_note} . ' grid1=' . $suxgraph->{_grid1}; | ||
| 745 | $suxgraph->{_Step} = | ||
| 746 | $suxgraph->{_Step} . ' grid1=' . $suxgraph->{_grid1}; | ||
| 747 | |||
| 748 | } | ||
| 749 | else { | ||
| 750 | print("suxgraph, grid1_type, missing grid1_type,\n"); | ||
| 751 | } | ||
| 752 | } | ||
| 753 | |||
| 754 | =head2 sub grid2 | ||
| 755 | |||
| 756 | grid lines on axis 2 - none, dot, dash, or solid | ||
| 757 | |||
| 758 | =cut | ||
| 759 | |||
| 760 | sub grid2 { | ||
| 761 | |||
| 762 | my ( $self, $grid2 ) = @_; | ||
| 763 | if ($grid2) { | ||
| 764 | |||
| 765 | $suxgraph->{_grid2} = $grid2; | ||
| 766 | $suxgraph->{_note} = | ||
| 767 | $suxgraph->{_note} . ' grid2=' . $suxgraph->{_grid2}; | ||
| 768 | $suxgraph->{_Step} = | ||
| 769 | $suxgraph->{_Step} . ' grid2=' . $suxgraph->{_grid2}; | ||
| 770 | |||
| 771 | } | ||
| 772 | else { | ||
| 773 | print("suxgraph, grid2, missing grid2,\n"); | ||
| 774 | } | ||
| 775 | } | ||
| 776 | |||
| 777 | =head2 sub grid2_type | ||
| 778 | |||
| 779 | grid lines on axis 2 - none, dot, dash, or solid | ||
| 780 | |||
| 781 | =cut | ||
| 782 | |||
| 783 | sub grid2_type { | ||
| 784 | |||
| 785 | my ( $self, $grid2 ) = @_; | ||
| 786 | if ($grid2) { | ||
| 787 | |||
| 788 | $suxgraph->{_grid2} = $grid2; | ||
| 789 | $suxgraph->{_note} = | ||
| 790 | $suxgraph->{_note} . ' grid2=' . $suxgraph->{_grid2}; | ||
| 791 | $suxgraph->{_Step} = | ||
| 792 | $suxgraph->{_Step} . ' grid2=' . $suxgraph->{_grid2}; | ||
| 793 | |||
| 794 | } | ||
| 795 | else { | ||
| 796 | print("suxgraph, grid2_type, missing grid2_type,\n"); | ||
| 797 | } | ||
| 798 | } | ||
| 799 | |||
| 800 | =head2 sub gridColor | ||
| 801 | |||
| 802 | |||
| 803 | =cut | ||
| 804 | |||
| 805 | sub gridColor { | ||
| 806 | |||
| 807 | my ( $self, $gridColor ) = @_; | ||
| 808 | if ($gridColor) { | ||
| 809 | |||
| 810 | $suxgraph->{_gridColor} = $gridColor; | ||
| 811 | $suxgraph->{_note} = | ||
| 812 | $suxgraph->{_note} . ' gridColor=' . $suxgraph->{_gridColor}; | ||
| 813 | $suxgraph->{_Step} = | ||
| 814 | $suxgraph->{_Step} . ' gridColor=' . $suxgraph->{_gridColor}; | ||
| 815 | |||
| 816 | } | ||
| 817 | else { | ||
| 818 | print("suxgraph, gridColor, missing gridColor,\n"); | ||
| 819 | } | ||
| 820 | } | ||
| 821 | |||
| 822 | =head2 sub height | ||
| 823 | |||
| 824 | |||
| 825 | =cut | ||
| 826 | |||
| 827 | sub height { | ||
| 828 | |||
| 829 | my ( $self, $height ) = @_; | ||
| 830 | if ($height) { | ||
| 831 | |||
| 832 | $suxgraph->{_height} = $height; | ||
| 833 | $suxgraph->{_note} = | ||
| 834 | $suxgraph->{_note} . ' height=' . $suxgraph->{_height}; | ||
| 835 | $suxgraph->{_Step} = | ||
| 836 | $suxgraph->{_Step} . ' height=' . $suxgraph->{_height}; | ||
| 837 | |||
| 838 | } | ||
| 839 | else { | ||
| 840 | print("suxgraph, height, missing height,\n"); | ||
| 841 | } | ||
| 842 | } | ||
| 843 | |||
| 844 | =head2 sub label1 | ||
| 845 | |||
| 846 | label on axis 1 | ||
| 847 | |||
| 848 | =cut | ||
| 849 | |||
| 850 | sub label1 { | ||
| 851 | |||
| 852 | my ( $self, $label1 ) = @_; | ||
| 853 | if ($label1) { | ||
| 854 | |||
| 855 | $suxgraph->{_label1} = $label1; | ||
| 856 | $suxgraph->{_note} = | ||
| 857 | $suxgraph->{_note} . ' label1=' . $suxgraph->{_label1}; | ||
| 858 | $suxgraph->{_Step} = | ||
| 859 | $suxgraph->{_Step} . ' label1=' . $suxgraph->{_label1}; | ||
| 860 | |||
| 861 | } | ||
| 862 | else { | ||
| 863 | print("suxgraph, label1, missing label1,\n"); | ||
| 864 | } | ||
| 865 | } | ||
| 866 | |||
| 867 | =head2 sub label2 | ||
| 868 | |||
| 869 | label on axis 2 | ||
| 870 | |||
| 871 | =cut | ||
| 872 | |||
| 873 | sub label2 { | ||
| 874 | |||
| 875 | my ( $self, $label2 ) = @_; | ||
| 876 | if ($label2) { | ||
| 877 | |||
| 878 | $suxgraph->{_label2} = $label2; | ||
| 879 | $suxgraph->{_note} = | ||
| 880 | $suxgraph->{_note} . ' label2=' . $suxgraph->{_label2}; | ||
| 881 | $suxgraph->{_Step} = | ||
| 882 | $suxgraph->{_Step} . ' label2=' . $suxgraph->{_label2}; | ||
| 883 | |||
| 884 | } | ||
| 885 | else { | ||
| 886 | print("suxgraph, label2, missing label2,\n"); | ||
| 887 | } | ||
| 888 | } | ||
| 889 | |||
| 890 | =head2 sub labelFont | ||
| 891 | |||
| 892 | |||
| 893 | =cut | ||
| 894 | |||
| 895 | sub labelFont { | ||
| 896 | |||
| 897 | my ( $self, $labelFont ) = @_; | ||
| 898 | if ($labelFont) { | ||
| 899 | |||
| 900 | $suxgraph->{_labelFont} = $labelFont; | ||
| 901 | $suxgraph->{_note} = | ||
| 902 | $suxgraph->{_note} . ' labelFont=' . $suxgraph->{_labelFont}; | ||
| 903 | $suxgraph->{_Step} = | ||
| 904 | $suxgraph->{_Step} . ' labelFont=' . $suxgraph->{_labelFont}; | ||
| 905 | |||
| 906 | } | ||
| 907 | else { | ||
| 908 | print("suxgraph, labelFont, missing labelFont,\n"); | ||
| 909 | } | ||
| 910 | } | ||
| 911 | |||
| 912 | =head2 sub line_color | ||
| 913 | |||
| 914 | |||
| 915 | =cut | ||
| 916 | |||
| 917 | sub line_color { | ||
| 918 | |||
| 919 | my ( $self, $linecolor ) = @_; | ||
| 920 | if ($linecolor) { | ||
| 921 | |||
| 922 | $suxgraph->{_linecolor} = $linecolor; | ||
| 923 | $suxgraph->{_note} = | ||
| 924 | $suxgraph->{_note} . ' linecolor=' . $suxgraph->{_linecolor}; | ||
| 925 | $suxgraph->{_Step} = | ||
| 926 | $suxgraph->{_Step} . ' linecolor=' . $suxgraph->{_linecolor}; | ||
| 927 | |||
| 928 | } | ||
| 929 | else { | ||
| 930 | print("suxgraph, line_color, missing line_color,\n"); | ||
| 931 | } | ||
| 932 | } | ||
| 933 | |||
| 934 | =head2 sub linecolor | ||
| 935 | |||
| 936 | |||
| 937 | =cut | ||
| 938 | |||
| 939 | sub linecolor { | ||
| 940 | |||
| 941 | my ( $self, $linecolor ) = @_; | ||
| 942 | if ($linecolor) { | ||
| 943 | |||
| 944 | $suxgraph->{_linecolor} = $linecolor; | ||
| 945 | $suxgraph->{_note} = | ||
| 946 | $suxgraph->{_note} . ' linecolor=' . $suxgraph->{_linecolor}; | ||
| 947 | $suxgraph->{_Step} = | ||
| 948 | $suxgraph->{_Step} . ' linecolor=' . $suxgraph->{_linecolor}; | ||
| 949 | |||
| 950 | } | ||
| 951 | else { | ||
| 952 | print("suxgraph, line_color, missing line_color,\n"); | ||
| 953 | } | ||
| 954 | } | ||
| 955 | |||
| 956 | =head2 sub line_width | ||
| 957 | |||
| 958 | line widths in pixels (0 for no lines) | ||
| 959 | |||
| 960 | =cut | ||
| 961 | |||
| 962 | sub line_width { | ||
| 963 | |||
| 964 | my ( $self, $linewidth ) = @_; | ||
| 965 | if ($linewidth) { | ||
| 966 | |||
| 967 | $suxgraph->{_linewidth} = $linewidth; | ||
| 968 | $suxgraph->{_note} = | ||
| 969 | $suxgraph->{_note} . ' linewidth=' . $suxgraph->{_linewidth}; | ||
| 970 | $suxgraph->{_Step} = | ||
| 971 | $suxgraph->{_Step} . ' linewidth=' . $suxgraph->{_linewidth}; | ||
| 972 | |||
| 973 | } | ||
| 974 | else { | ||
| 975 | print("suxgraph, line_widths, missing line_widths,\n"); | ||
| 976 | } | ||
| 977 | } | ||
| 978 | |||
| 979 | =head2 sub line_widths | ||
| 980 | |||
| 981 | line widths in pixels (0 for no lines) | ||
| 982 | |||
| 983 | =cut | ||
| 984 | |||
| 985 | sub line_widths { | ||
| 986 | |||
| 987 | my ( $self, $linewidth ) = @_; | ||
| 988 | if ($linewidth) { | ||
| 989 | |||
| 990 | $suxgraph->{_linewidth} = $linewidth; | ||
| 991 | $suxgraph->{_note} = | ||
| 992 | $suxgraph->{_note} . ' linewidth=' . $suxgraph->{_linewidth}; | ||
| 993 | $suxgraph->{_Step} = | ||
| 994 | $suxgraph->{_Step} . ' linewidth=' . $suxgraph->{_linewidth}; | ||
| 995 | |||
| 996 | } | ||
| 997 | else { | ||
| 998 | print("suxgraph, line_widths, missing line_widths,\n"); | ||
| 999 | } | ||
| 1000 | } | ||
| 1001 | |||
| 1002 | =head2 sub linewidth | ||
| 1003 | |||
| 1004 | line widths in pixels (0 for no lines | ||
| 1005 | |||
| 1006 | =cut | ||
| 1007 | |||
| 1008 | sub linewidth { | ||
| 1009 | |||
| 1010 | my ( $self, $linewidth ) = @_; | ||
| 1011 | if ($linewidth) { | ||
| 1012 | |||
| 1013 | $suxgraph->{_linewidth} = $linewidth; | ||
| 1014 | $suxgraph->{_note} = | ||
| 1015 | $suxgraph->{_note} . ' linewidth=' . $suxgraph->{_linewidth}; | ||
| 1016 | $suxgraph->{_Step} = | ||
| 1017 | $suxgraph->{_Step} . ' linewidth=' . $suxgraph->{_linewidth}; | ||
| 1018 | |||
| 1019 | } | ||
| 1020 | else { | ||
| 1021 | print("suxgraph, linewidth, missing linewidth,\n"); | ||
| 1022 | } | ||
| 1023 | } | ||
| 1024 | |||
| 1025 | =head2 sub mark | ||
| 1026 | |||
| 1027 | |||
| 1028 | =cut | ||
| 1029 | |||
| 1030 | sub mark { | ||
| 1031 | |||
| 1032 | my ( $self, $mark ) = @_; | ||
| 1033 | if ($mark) { | ||
| 1034 | |||
| 1035 | $suxgraph->{_mark} = $mark; | ||
| 1036 | $suxgraph->{_note} = | ||
| 1037 | $suxgraph->{_note} . ' mark=' . $suxgraph->{_mark}; | ||
| 1038 | $suxgraph->{_Step} = | ||
| 1039 | $suxgraph->{_Step} . ' mark=' . $suxgraph->{_mark}; | ||
| 1040 | |||
| 1041 | } | ||
| 1042 | else { | ||
| 1043 | print("suxgraph, mark, missing mark,\n"); | ||
| 1044 | } | ||
| 1045 | } | ||
| 1046 | |||
| 1047 | =head2 sub mark_indices | ||
| 1048 | |||
| 1049 | indices of marks used to represent plotted points | ||
| 1050 | |||
| 1051 | =cut | ||
| 1052 | |||
| 1053 | sub mark_indices { | ||
| 1054 | |||
| 1055 | my ( $self, $mark ) = @_; | ||
| 1056 | if ($mark) { | ||
| 1057 | |||
| 1058 | $suxgraph->{_mark} = $mark; | ||
| 1059 | $suxgraph->{_note} = | ||
| 1060 | $suxgraph->{_note} . ' mark=' . $suxgraph->{_mark}; | ||
| 1061 | $suxgraph->{_Step} = | ||
| 1062 | $suxgraph->{_Step} . ' mark=' . $suxgraph->{_mark}; | ||
| 1063 | |||
| 1064 | } | ||
| 1065 | else { | ||
| 1066 | print("suxgraph, mark_indices, missing mark_indices,\n"); | ||
| 1067 | } | ||
| 1068 | } | ||
| 1069 | |||
| 1070 | =head2 sub marksize | ||
| 1071 | |||
| 1072 | |||
| 1073 | =cut | ||
| 1074 | |||
| 1075 | sub marksize { | ||
| 1076 | |||
| 1077 | my ( $self, $marksize ) = @_; | ||
| 1078 | if ($marksize) { | ||
| 1079 | |||
| 1080 | $suxgraph->{_marksize} = $marksize; | ||
| 1081 | $suxgraph->{_note} = | ||
| 1082 | $suxgraph->{_note} . ' marksize=' . $suxgraph->{_marksize}; | ||
| 1083 | $suxgraph->{_Step} = | ||
| 1084 | $suxgraph->{_Step} . ' marksize=' . $suxgraph->{_marksize}; | ||
| 1085 | |||
| 1086 | } | ||
| 1087 | else { | ||
| 1088 | print("suxgraph, marksize, missing marksize,\n"); | ||
| 1089 | } | ||
| 1090 | } | ||
| 1091 | |||
| 1092 | =head2 sub mark_size_pix | ||
| 1093 | |||
| 1094 | size of marks in pixels (0 for no marks) | ||
| 1095 | |||
| 1096 | =cut | ||
| 1097 | |||
| 1098 | sub mark_size_pix { | ||
| 1099 | |||
| 1100 | my ( $self, $marksize ) = @_; | ||
| 1101 | if ($marksize) { | ||
| 1102 | |||
| 1103 | $suxgraph->{_marksize} = $marksize; | ||
| 1104 | $suxgraph->{_note} = | ||
| 1105 | $suxgraph->{_note} . ' marksize=' . $suxgraph->{_marksize}; | ||
| 1106 | $suxgraph->{_Step} = | ||
| 1107 | $suxgraph->{_Step} . ' marksize=' . $suxgraph->{_marksize}; | ||
| 1108 | |||
| 1109 | } | ||
| 1110 | else { | ||
| 1111 | print("suxgraph, mark_size_pix, missing mark_size_pix,\n"); | ||
| 1112 | } | ||
| 1113 | } | ||
| 1114 | |||
| 1115 | =head2 sub n | ||
| 1116 | |||
| 1117 | |||
| 1118 | =cut | ||
| 1119 | |||
| 1120 | sub n { | ||
| 1121 | |||
| 1122 | my ( $self, $n ) = @_; | ||
| 1123 | if ($n) { | ||
| 1124 | |||
| 1125 | $suxgraph->{_n} = $n; | ||
| 1126 | $suxgraph->{_note} = $suxgraph->{_note} . ' n=' . $suxgraph->{_n}; | ||
| 1127 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' n=' . $suxgraph->{_n}; | ||
| 1128 | |||
| 1129 | } | ||
| 1130 | else { | ||
| 1131 | print("suxgraph, n, missing n,\n"); | ||
| 1132 | } | ||
| 1133 | } | ||
| 1134 | |||
| 1135 | |||
| 1136 | =head2 sub n1 | ||
| 1137 | |||
| 1138 | |||
| 1139 | =cut | ||
| 1140 | |||
| 1141 | sub n1 { | ||
| 1142 | |||
| 1143 | my ( $self, $n ) = @_; | ||
| 1144 | if ($n) { | ||
| 1145 | |||
| 1146 | $suxgraph->{_n} = $n; | ||
| 1147 | $suxgraph->{_note} = $suxgraph->{_note} . ' n=' . $suxgraph->{_n}; | ||
| 1148 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' n=' . $suxgraph->{_n}; | ||
| 1149 | |||
| 1150 | } | ||
| 1151 | else { | ||
| 1152 | print("suxgraph, n1, missing n1,\n"); | ||
| 1153 | } | ||
| 1154 | } | ||
| 1155 | |||
| 1156 | |||
| 1157 | |||
| 1158 | =head2 sub num_traces | ||
| 1159 | |||
| 1160 | alias for nplot | ||
| 1161 | |||
| 1162 | =cut | ||
| 1163 | |||
| 1164 | sub num_traces { | ||
| 1165 | |||
| 1166 | my ( $self, $nplot ) = @_; | ||
| 1167 | if ( $nplot ne $empty_string ) { | ||
| 1168 | |||
| 1169 | $suxgraph->{_nplot} = $nplot; | ||
| 1170 | $suxgraph->{_note} = | ||
| 1171 | $suxgraph->{_note} . ' nplot=' . $suxgraph->{_nplot}; | ||
| 1172 | $suxgraph->{_Step} = | ||
| 1173 | $suxgraph->{_Step} . ' nplot=' . $suxgraph->{_nplot}; | ||
| 1174 | |||
| 1175 | } | ||
| 1176 | else { | ||
| 1177 | print("suxgraph, num_traces, missing num_traces,\n"); | ||
| 1178 | } | ||
| 1179 | } | ||
| 1180 | |||
| 1181 | |||
| 1182 | =head2 sub num_minor_ticks_betw_distance_ticks | ||
| 1183 | |||
| 1184 | |||
| 1185 | =cut | ||
| 1186 | |||
| 1187 | sub num_minor_ticks_betw_distance_ticks { | ||
| 1188 | |||
| 1189 | my ( $self, $nTic2 ) = @_; | ||
| 1190 | if ($nTic2) { | ||
| 1191 | |||
| 1192 | $suxgraph->{_nTic2} = $nTic2; | ||
| 1193 | $suxgraph->{_note} = | ||
| 1194 | $suxgraph->{_note} . ' nTic2=' . $suxgraph->{_nTic2}; | ||
| 1195 | $suxgraph->{_Step} = | ||
| 1196 | $suxgraph->{_Step} . ' nTic2=' . $suxgraph->{_nTic2}; | ||
| 1197 | |||
| 1198 | } | ||
| 1199 | else { | ||
| 1200 | print( | ||
| 1201 | "suxgraph, num_minor_ticks_betw_distance_ticks, missing nTic2,\n"); | ||
| 1202 | } | ||
| 1203 | } | ||
| 1204 | |||
| 1205 | =head2 sub num_minor_ticks_betw_time_ticks | ||
| 1206 | |||
| 1207 | |||
| 1208 | =cut | ||
| 1209 | |||
| 1210 | sub num_minor_ticks_betw_time_ticks { | ||
| 1211 | |||
| 1212 | my ( $self, $nTic1 ) = @_; | ||
| 1213 | if ($nTic1) { | ||
| 1214 | |||
| 1215 | $suxgraph->{_nTic1} = $nTic1; | ||
| 1216 | $suxgraph->{_note} = | ||
| 1217 | $suxgraph->{_note} . ' nTic1=' . $suxgraph->{_nTic1}; | ||
| 1218 | $suxgraph->{_Step} = | ||
| 1219 | $suxgraph->{_Step} . ' nTic1=' . $suxgraph->{_nTic1}; | ||
| 1220 | |||
| 1221 | } | ||
| 1222 | else { | ||
| 1223 | print("suxgraph, num_minor_ticks_betw_time_ticks, missing nTic1,\n"); | ||
| 1224 | } | ||
| 1225 | } | ||
| 1226 | |||
| 1227 | =head2 sub num_points | ||
| 1228 | |||
| 1229 | |||
| 1230 | =cut | ||
| 1231 | |||
| 1232 | sub num_points { | ||
| 1233 | |||
| 1234 | my ( $self, $n ) = @_; | ||
| 1235 | if ($n) { | ||
| 1236 | |||
| 1237 | $suxgraph->{_n} = $n; | ||
| 1238 | $suxgraph->{_note} = $suxgraph->{_note} . ' n=' . $suxgraph->{_n}; | ||
| 1239 | $suxgraph->{_Step} = $suxgraph->{_Step} . ' n=' . $suxgraph->{_n}; | ||
| 1240 | |||
| 1241 | } | ||
| 1242 | else { | ||
| 1243 | print("suxgraph, num_points, missing num_points,\n"); | ||
| 1244 | } | ||
| 1245 | } | ||
| 1246 | |||
| 1247 | =head2 sub nTic1 | ||
| 1248 | |||
| 1249 | |||
| 1250 | =cut | ||
| 1251 | |||
| 1252 | sub nTic1 { | ||
| 1253 | |||
| 1254 | my ( $self, $nTic1 ) = @_; | ||
| 1255 | if ($nTic1) { | ||
| 1256 | |||
| 1257 | $suxgraph->{_nTic1} = $nTic1; | ||
| 1258 | $suxgraph->{_note} = | ||
| 1259 | $suxgraph->{_note} . ' nTic1=' . $suxgraph->{_nTic1}; | ||
| 1260 | $suxgraph->{_Step} = | ||
| 1261 | $suxgraph->{_Step} . ' nTic1=' . $suxgraph->{_nTic1}; | ||
| 1262 | |||
| 1263 | } | ||
| 1264 | else { | ||
| 1265 | print("suxgraph, nTic1, missing nTic1,\n"); | ||
| 1266 | } | ||
| 1267 | } | ||
| 1268 | |||
| 1269 | =head2 sub nTic2 | ||
| 1270 | |||
| 1271 | |||
| 1272 | =cut | ||
| 1273 | |||
| 1274 | sub nTic2 { | ||
| 1275 | |||
| 1276 | my ( $self, $nTic2 ) = @_; | ||
| 1277 | if ($nTic2) { | ||
| 1278 | |||
| 1279 | $suxgraph->{_nTic2} = $nTic2; | ||
| 1280 | $suxgraph->{_note} = | ||
| 1281 | $suxgraph->{_note} . ' nTic2=' . $suxgraph->{_nTic2}; | ||
| 1282 | $suxgraph->{_Step} = | ||
| 1283 | $suxgraph->{_Step} . ' nTic2=' . $suxgraph->{_nTic2}; | ||
| 1284 | |||
| 1285 | } | ||
| 1286 | else { | ||
| 1287 | print("suxgraph, nTic2, missing nTic2,\n"); | ||
| 1288 | } | ||
| 1289 | } | ||
| 1290 | |||
| 1291 | =head2 sub n2 | ||
| 1292 | |||
| 1293 | |||
| 1294 | =cut | ||
| 1295 | |||
| 1296 | sub n2 { | ||
| 1297 | |||
| 1298 | my ( $self, $nplot ) = @_; | ||
| 1299 | if ($nplot) { | ||
| 1300 | |||
| 1301 | $suxgraph->{_nplot} = $nplot; | ||
| 1302 | $suxgraph->{_note} = | ||
| 1303 | $suxgraph->{_note} . ' nplot=' . $suxgraph->{_nplot}; | ||
| 1304 | $suxgraph->{_Step} = | ||
| 1305 | $suxgraph->{_Step} . ' nplot=' . $suxgraph->{_nplot}; | ||
| 1306 | |||
| 1307 | } | ||
| 1308 | else { | ||
| 1309 | print("suxgraph, n2, missing n2,\n"); | ||
| 1310 | } | ||
| 1311 | } | ||
| 1312 | |||
| 1313 | =head2 sub nplot | ||
| 1314 | |||
| 1315 | |||
| 1316 | =cut | ||
| 1317 | |||
| 1318 | sub nplot { | ||
| 1319 | |||
| 1320 | my ( $self, $nplot ) = @_; | ||
| 1321 | if ($nplot) { | ||
| 1322 | |||
| 1323 | $suxgraph->{_nplot} = $nplot; | ||
| 1324 | $suxgraph->{_note} = | ||
| 1325 | $suxgraph->{_note} . ' nplot=' . $suxgraph->{_nplot}; | ||
| 1326 | $suxgraph->{_Step} = | ||
| 1327 | $suxgraph->{_Step} . ' nplot=' . $suxgraph->{_nplot}; | ||
| 1328 | |||
| 1329 | } | ||
| 1330 | else { | ||
| 1331 | print("suxgraph, nplot, missing nplot,\n"); | ||
| 1332 | } | ||
| 1333 | } | ||
| 1334 | |||
| 1335 | =head2 sub orientation | ||
| 1336 | |||
| 1337 | can be seismic type RHS | ||
| 1338 | or normal type LHS | ||
| 1339 | normal (axis 1 horizontal, axis 2 vertical) or | ||
| 1340 | seismic (axis 1 vertical, axis 2 horizontal) | ||
| 1341 | |||
| 1342 | =cut | ||
| 1343 | |||
| 1344 | sub orientation { | ||
| 1345 | |||
| 1346 | my ( $self, $style ) = @_; | ||
| 1347 | if ($style) { | ||
| 1348 | |||
| 1349 | $suxgraph->{_style} = $style; | ||
| 1350 | $suxgraph->{_note} = | ||
| 1351 | $suxgraph->{_note} . ' style=' . $suxgraph->{_style}; | ||
| 1352 | $suxgraph->{_Step} = | ||
| 1353 | $suxgraph->{_Step} . ' style=' . $suxgraph->{_style}; | ||
| 1354 | |||
| 1355 | } | ||
| 1356 | else { | ||
| 1357 | print("suxgraph, orientation, missing orientation,\n"); | ||
| 1358 | } | ||
| 1359 | } | ||
| 1360 | |||
| 1361 | =head2 sub pairs | ||
| 1362 | |||
| 1363 | |||
| 1364 | =cut | ||
| 1365 | |||
| 1366 | sub pairs { | ||
| 1367 | |||
| 1368 | my ( $self, $pairs ) = @_; | ||
| 1369 | if ($pairs) { | ||
| 1370 | |||
| 1371 | $suxgraph->{_pairs} = $pairs; | ||
| 1372 | $suxgraph->{_note} = | ||
| 1373 | $suxgraph->{_note} . ' pairs=' . $suxgraph->{_pairs}; | ||
| 1374 | $suxgraph->{_Step} = | ||
| 1375 | $suxgraph->{_Step} . ' pairs=' . $suxgraph->{_pairs}; | ||
| 1376 | |||
| 1377 | } | ||
| 1378 | else { | ||
| 1379 | print("suxgraph, pairs, missing pairs,\n"); | ||
| 1380 | } | ||
| 1381 | } | ||
| 1382 | |||
| 1383 | =head2 sub reverse | ||
| 1384 | |||
| 1385 | |||
| 1386 | =cut | ||
| 1387 | |||
| 1388 | sub reverse { | ||
| 1389 | |||
| 1390 | my ( $self, $reverse ) = @_; | ||
| 1391 | if ($reverse) { | ||
| 1392 | |||
| 1393 | $suxgraph->{_reverse} = $reverse; | ||
| 1394 | $suxgraph->{_note} = | ||
| 1395 | $suxgraph->{_note} . ' reverse=' . $suxgraph->{_reverse}; | ||
| 1396 | $suxgraph->{_Step} = | ||
| 1397 | $suxgraph->{_Step} . ' reverse=' . $suxgraph->{_reverse}; | ||
| 1398 | |||
| 1399 | } | ||
| 1400 | else { | ||
| 1401 | print("suxgraph, reverse, missing reverse,\n"); | ||
| 1402 | } | ||
| 1403 | } | ||
| 1404 | |||
| 1405 | =head2 sub style | ||
| 1406 | |||
| 1407 | can be seismic type RHS | ||
| 1408 | or normal type LHS | ||
| 1409 | |||
| 1410 | normal (axis 1 horizontal, axis 2 vertical) or | ||
| 1411 | seismic (axis 1 vertical, axis 2 horizontal) | ||
| 1412 | |||
| 1413 | normal (axis 1 horizontal, axis 2 vertical) or | ||
| 1414 | seismic (axis 1 vertical, axis 2 horizontal) | ||
| 1415 | |||
| 1416 | =cut | ||
| 1417 | |||
| 1418 | sub style { | ||
| 1419 | |||
| 1420 | my ( $self, $style ) = @_; | ||
| 1421 | if ($style) { | ||
| 1422 | |||
| 1423 | $suxgraph->{_style} = $style; | ||
| 1424 | $suxgraph->{_note} = | ||
| 1425 | $suxgraph->{_note} . ' style=' . $suxgraph->{_style}; | ||
| 1426 | $suxgraph->{_Step} = | ||
| 1427 | $suxgraph->{_Step} . ' style=' . $suxgraph->{_style}; | ||
| 1428 | |||
| 1429 | } | ||
| 1430 | else { | ||
| 1431 | print("suxgraph, style, missing style,\n"); | ||
| 1432 | } | ||
| 1433 | } | ||
| 1434 | |||
| 1435 | =head2 sub title | ||
| 1436 | |||
| 1437 | title for plot | ||
| 1438 | |||
| 1439 | =cut | ||
| 1440 | |||
| 1441 | sub title { | ||
| 1442 | |||
| 1443 | my ( $self, $title ) = @_; | ||
| 1444 | if ($title) { | ||
| 1445 | |||
| 1446 | $suxgraph->{_title} = $title; | ||
| 1447 | $suxgraph->{_note} = | ||
| 1448 | $suxgraph->{_note} . ' title=' . $suxgraph->{_title}; | ||
| 1449 | $suxgraph->{_Step} = | ||
| 1450 | $suxgraph->{_Step} . ' title=' . $suxgraph->{_title}; | ||
| 1451 | |||
| 1452 | } | ||
| 1453 | else { | ||
| 1454 | print("suxgraph, title, missing title,\n"); | ||
| 1455 | } | ||
| 1456 | } | ||
| 1457 | |||
| 1458 | =head2 sub titleColor | ||
| 1459 | |||
| 1460 | |||
| 1461 | =cut | ||
| 1462 | |||
| 1463 | sub titleColor { | ||
| 1464 | |||
| 1465 | my ( $self, $titleColor ) = @_; | ||
| 1466 | if ($titleColor) { | ||
| 1467 | |||
| 1468 | $suxgraph->{_titleColor} = $titleColor; | ||
| 1469 | $suxgraph->{_note} = | ||
| 1470 | $suxgraph->{_note} . ' titleColor=' . $suxgraph->{_titleColor}; | ||
| 1471 | $suxgraph->{_Step} = | ||
| 1472 | $suxgraph->{_Step} . ' titleColor=' . $suxgraph->{_titleColor}; | ||
| 1473 | |||
| 1474 | } | ||
| 1475 | else { | ||
| 1476 | print("suxgraph, titleColor, missing titleColor,\n"); | ||
| 1477 | } | ||
| 1478 | } | ||
| 1479 | |||
| 1480 | =head2 sub titleFont | ||
| 1481 | |||
| 1482 | |||
| 1483 | =cut | ||
| 1484 | |||
| 1485 | sub titleFont { | ||
| 1486 | |||
| 1487 | my ( $self, $titleFont ) = @_; | ||
| 1488 | if ($titleFont) { | ||
| 1489 | |||
| 1490 | $suxgraph->{_titleFont} = $titleFont; | ||
| 1491 | $suxgraph->{_note} = | ||
| 1492 | $suxgraph->{_note} . ' titleFont=' . $suxgraph->{_titleFont}; | ||
| 1493 | $suxgraph->{_Step} = | ||
| 1494 | $suxgraph->{_Step} . ' titleFont=' . $suxgraph->{_titleFont}; | ||
| 1495 | |||
| 1496 | } | ||
| 1497 | else { | ||
| 1498 | print("suxgraph, titleFont, missing titleFont,\n"); | ||
| 1499 | } | ||
| 1500 | } | ||
| 1501 | |||
| 1502 | |||
| 1503 | =head2 sub tmpdir | ||
| 1504 | |||
| 1505 | |||
| 1506 | =cut | ||
| 1507 | |||
| 1508 | sub tmpdir { | ||
| 1509 | |||
| 1510 | my ( $self, $tmpdir ) = @_; | ||
| 1511 | if ( $tmpdir ne $empty_string ) { | ||
| 1512 | |||
| 1513 | $suxgraph->{_tmpdir} = $tmpdir; | ||
| 1514 | $suxgraph->{_note} = | ||
| 1515 | $suxgraph->{_note} . ' tmpdir=' . $suxgraph->{_tmpdir}; | ||
| 1516 | $suxgraph->{_Step} = | ||
| 1517 | $suxgraph->{_Step} . ' tmpdir=' . $suxgraph->{_tmpdir}; | ||
| 1518 | |||
| 1519 | } | ||
| 1520 | else { | ||
| 1521 | print("suxgraph, tmpdir, missing tmpdir,\n"); | ||
| 1522 | } | ||
| 1523 | } | ||
| 1524 | |||
| 1525 | =head2 sub width | ||
| 1526 | |||
| 1527 | |||
| 1528 | =cut | ||
| 1529 | |||
| 1530 | sub width { | ||
| 1531 | |||
| 1532 | my ( $self, $width ) = @_; | ||
| 1533 | if ($width) { | ||
| 1534 | |||
| 1535 | $suxgraph->{_width} = $width; | ||
| 1536 | $suxgraph->{_note} = | ||
| 1537 | $suxgraph->{_note} . ' width=' . $suxgraph->{_width}; | ||
| 1538 | $suxgraph->{_Step} = | ||
| 1539 | $suxgraph->{_Step} . ' width=' . $suxgraph->{_width}; | ||
| 1540 | |||
| 1541 | } | ||
| 1542 | else { | ||
| 1543 | print("suxgraph, width, missing width,\n"); | ||
| 1544 | } | ||
| 1545 | } | ||
| 1546 | |||
| 1547 | =head2 sub windowtitle | ||
| 1548 | |||
| 1549 | |||
| 1550 | =cut | ||
| 1551 | |||
| 1552 | sub windowtitle { | ||
| 1553 | |||
| 1554 | my ( $self, $windowtitle ) = @_; | ||
| 1555 | if ($windowtitle) { | ||
| 1556 | |||
| 1557 | $suxgraph->{_windowtitle} = $windowtitle; | ||
| 1558 | $suxgraph->{_note} = | ||
| 1559 | $suxgraph->{_note} . ' windowtitle=' . $suxgraph->{_windowtitle}; | ||
| 1560 | $suxgraph->{_Step} = | ||
| 1561 | $suxgraph->{_Step} . ' windowtitle=' . $suxgraph->{_windowtitle}; | ||
| 1562 | |||
| 1563 | } | ||
| 1564 | else { | ||
| 1565 | print("suxgraph, windowtitle, missing windowtitle,\n"); | ||
| 1566 | } | ||
| 1567 | } | ||
| 1568 | |||
| 1569 | =head2 sub x1_min | ||
| 1570 | |||
| 1571 | value at which axis 1 begins | ||
| 1572 | |||
| 1573 | =cut | ||
| 1574 | |||
| 1575 | sub x1_min { | ||
| 1576 | |||
| 1577 | my ( $self, $x1beg ) = @_; | ||
| 1578 | if ( $x1beg ne $empty_string ) { | ||
| 1579 | |||
| 1580 | $suxgraph->{_x1beg} = $x1beg; | ||
| 1581 | $suxgraph->{_note} = | ||
| 1582 | $suxgraph->{_note} . ' x1beg=' . $suxgraph->{_x1beg}; | ||
| 1583 | $suxgraph->{_Step} = | ||
| 1584 | $suxgraph->{_Step} . ' x1beg=' . $suxgraph->{_x1beg}; | ||
| 1585 | |||
| 1586 | } | ||
| 1587 | else { | ||
| 1588 | print("suxgraph, x1_min, missing x1_min,\n"); | ||
| 1589 | } | ||
| 1590 | } | ||
| 1591 | |||
| 1592 | =head2 sub x1_max | ||
| 1593 | |||
| 1594 | value at which axis 1 ends | ||
| 1595 | |||
| 1596 | =cut | ||
| 1597 | |||
| 1598 | sub x1_max { | ||
| 1599 | |||
| 1600 | my ( $self, $x1end ) = @_; | ||
| 1601 | if ($x1end) { | ||
| 1602 | |||
| 1603 | $suxgraph->{_x1end} = $x1end; | ||
| 1604 | $suxgraph->{_note} = | ||
| 1605 | $suxgraph->{_note} . ' x1end=' . $suxgraph->{_x1end}; | ||
| 1606 | $suxgraph->{_Step} = | ||
| 1607 | $suxgraph->{_Step} . ' x1end=' . $suxgraph->{_x1end}; | ||
| 1608 | |||
| 1609 | } | ||
| 1610 | else { | ||
| 1611 | print("suxgraph, x1_max, missing x1_max,\n"); | ||
| 1612 | } | ||
| 1613 | } | ||
| 1614 | |||
| 1615 | =head2 sub x1beg | ||
| 1616 | |||
| 1617 | value at which axis 1 begins | ||
| 1618 | |||
| 1619 | =cut | ||
| 1620 | |||
| 1621 | sub x1beg { | ||
| 1622 | |||
| 1623 | my ( $self, $x1beg ) = @_; | ||
| 1624 | if ( $x1beg ne $empty_string ) { | ||
| 1625 | |||
| 1626 | $suxgraph->{_x1beg} = $x1beg; | ||
| 1627 | $suxgraph->{_note} = | ||
| 1628 | $suxgraph->{_note} . ' x1beg=' . $suxgraph->{_x1beg}; | ||
| 1629 | $suxgraph->{_Step} = | ||
| 1630 | $suxgraph->{_Step} . ' x1beg=' . $suxgraph->{_x1beg}; | ||
| 1631 | |||
| 1632 | } | ||
| 1633 | else { | ||
| 1634 | print("suxgraph, x1beg, missing x1beg,\n"); | ||
| 1635 | } | ||
| 1636 | } | ||
| 1637 | |||
| 1638 | =head2 sub x1end | ||
| 1639 | |||
| 1640 | value at which axis 1 ends | ||
| 1641 | |||
| 1642 | =cut | ||
| 1643 | |||
| 1644 | sub x1end { | ||
| 1645 | |||
| 1646 | my ( $self, $x1end ) = @_; | ||
| 1647 | if ($x1end) { | ||
| 1648 | |||
| 1649 | $suxgraph->{_x1end} = $x1end; | ||
| 1650 | $suxgraph->{_note} = | ||
| 1651 | $suxgraph->{_note} . ' x1end=' . $suxgraph->{_x1end}; | ||
| 1652 | $suxgraph->{_Step} = | ||
| 1653 | $suxgraph->{_Step} . ' x1end=' . $suxgraph->{_x1end}; | ||
| 1654 | |||
| 1655 | } | ||
| 1656 | else { | ||
| 1657 | print("suxgraph, x1end, missing x1end,\n"); | ||
| 1658 | } | ||
| 1659 | } | ||
| 1660 | |||
| 1661 | =head2 sub x_label | ||
| 1662 | |||
| 1663 | label on axis 1 | ||
| 1664 | |||
| 1665 | =cut | ||
| 1666 | |||
| 1667 | sub x_label { | ||
| 1668 | |||
| 1669 | my ( $self, $label1 ) = @_; | ||
| 1670 | if ($label1) { | ||
| 1671 | |||
| 1672 | $suxgraph->{_label1} = $label1; | ||
| 1673 | $suxgraph->{_note} = | ||
| 1674 | $suxgraph->{_note} . ' label1=' . $suxgraph->{_label1}; | ||
| 1675 | $suxgraph->{_Step} = | ||
| 1676 | $suxgraph->{_Step} . ' label1=' . $suxgraph->{_label1}; | ||
| 1677 | |||
| 1678 | } | ||
| 1679 | else { | ||
| 1680 | print("suxgraph, x_label, missing x_label,\n"); | ||
| 1681 | } | ||
| 1682 | } | ||
| 1683 | |||
| 1684 | =head2 sub x2beg | ||
| 1685 | |||
| 1686 | value at which axis 2 begins | ||
| 1687 | |||
| 1688 | =cut | ||
| 1689 | |||
| 1690 | sub x2beg { | ||
| 1691 | |||
| 1692 | my ( $self, $x2beg ) = @_; | ||
| 1693 | if ( $x2beg ne $empty_string ) { | ||
| 1694 | |||
| 1695 | $suxgraph->{_x2beg} = $x2beg; | ||
| 1696 | $suxgraph->{_note} = | ||
| 1697 | $suxgraph->{_note} . ' x2beg=' . $suxgraph->{_x2beg}; | ||
| 1698 | $suxgraph->{_Step} = | ||
| 1699 | $suxgraph->{_Step} . ' x2beg=' . $suxgraph->{_x2beg}; | ||
| 1700 | |||
| 1701 | } | ||
| 1702 | else { | ||
| 1703 | print("suxgraph, x2beg, missing x2beg,\n"); | ||
| 1704 | } | ||
| 1705 | } | ||
| 1706 | |||
| 1707 | =head2 sub x2_min | ||
| 1708 | |||
| 1709 | value at which axis 2 begins | ||
| 1710 | |||
| 1711 | =cut | ||
| 1712 | |||
| 1713 | sub x2_min { | ||
| 1714 | |||
| 1715 | my ( $self, $x2beg ) = @_; | ||
| 1716 | if ( $x2beg ne $empty_string ) { | ||
| 1717 | |||
| 1718 | $suxgraph->{_x2beg} = $x2beg; | ||
| 1719 | $suxgraph->{_note} = | ||
| 1720 | $suxgraph->{_note} . ' x2beg=' . $suxgraph->{_x2beg}; | ||
| 1721 | $suxgraph->{_Step} = | ||
| 1722 | $suxgraph->{_Step} . ' x2beg=' . $suxgraph->{_x2beg}; | ||
| 1723 | |||
| 1724 | } | ||
| 1725 | else { | ||
| 1726 | print("suxgraph, x2_min, missing x2_min,\n"); | ||
| 1727 | } | ||
| 1728 | } | ||
| 1729 | |||
| 1730 | =head2 sub x2_max | ||
| 1731 | |||
| 1732 | value at which axis 2 ends | ||
| 1733 | |||
| 1734 | =cut | ||
| 1735 | |||
| 1736 | sub x2_max { | ||
| 1737 | |||
| 1738 | my ( $self, $x2end ) = @_; | ||
| 1739 | if ($x2end) { | ||
| 1740 | |||
| 1741 | $suxgraph->{_x2end} = $x2end; | ||
| 1742 | $suxgraph->{_note} = | ||
| 1743 | $suxgraph->{_note} . ' x2end=' . $suxgraph->{_x2end}; | ||
| 1744 | $suxgraph->{_Step} = | ||
| 1745 | $suxgraph->{_Step} . ' x2end=' . $suxgraph->{_x2end}; | ||
| 1746 | |||
| 1747 | } | ||
| 1748 | else { | ||
| 1749 | print("suxgraph, x2_max, missing x2_max,\n"); | ||
| 1750 | } | ||
| 1751 | } | ||
| 1752 | |||
| 1753 | =head2 sub x2end | ||
| 1754 | |||
| 1755 | value at which axis 2 ends | ||
| 1756 | |||
| 1757 | =cut | ||
| 1758 | |||
| 1759 | sub x2end { | ||
| 1760 | |||
| 1761 | my ( $self, $x2end ) = @_; | ||
| 1762 | if ($x2end) { | ||
| 1763 | |||
| 1764 | $suxgraph->{_x2end} = $x2end; | ||
| 1765 | $suxgraph->{_note} = | ||
| 1766 | $suxgraph->{_note} . ' x2end=' . $suxgraph->{_x2end}; | ||
| 1767 | $suxgraph->{_Step} = | ||
| 1768 | $suxgraph->{_Step} . ' x2end=' . $suxgraph->{_x2end}; | ||
| 1769 | |||
| 1770 | } | ||
| 1771 | else { | ||
| 1772 | print("suxgraph, x2end, missing x2end,\n"); | ||
| 1773 | } | ||
| 1774 | } | ||
| 1775 | |||
| 1776 | =head2 sub x_end_m | ||
| 1777 | |||
| 1778 | value at which axis 2 ends | ||
| 1779 | |||
| 1780 | =cut | ||
| 1781 | |||
| 1782 | sub x_end_m { | ||
| 1783 | |||
| 1784 | my ( $self, $x2end ) = @_; | ||
| 1785 | if ($x2end) { | ||
| 1786 | |||
| 1787 | $suxgraph->{_x2end} = $x2end; | ||
| 1788 | $suxgraph->{_note} = | ||
| 1789 | $suxgraph->{_note} . ' x2end=' . $suxgraph->{_x2end}; | ||
| 1790 | $suxgraph->{_Step} = | ||
| 1791 | $suxgraph->{_Step} . ' x2end=' . $suxgraph->{_x2end}; | ||
| 1792 | |||
| 1793 | } | ||
| 1794 | else { | ||
| 1795 | print("suxgraph, x_end_m, missing x_end_m,\n"); | ||
| 1796 | } | ||
| 1797 | } | ||
| 1798 | |||
| 1799 | =head2 sub xlabel | ||
| 1800 | |||
| 1801 | value at which axis 2 begins | ||
| 1802 | |||
| 1803 | =cut | ||
| 1804 | |||
| 1805 | sub xlabel { | ||
| 1806 | |||
| 1807 | my ( $self, $label1 ) = @_; | ||
| 1808 | if ( $label1 ne $empty_string ) { | ||
| 1809 | |||
| 1810 | $suxgraph->{_label1} = $label1; | ||
| 1811 | $suxgraph->{_note} = | ||
| 1812 | $suxgraph->{_note} . ' label1=' . $suxgraph->{_label1}; | ||
| 1813 | $suxgraph->{_Step} = | ||
| 1814 | $suxgraph->{_Step} . ' label1=' . $suxgraph->{_label1}; | ||
| 1815 | |||
| 1816 | } | ||
| 1817 | else { | ||
| 1818 | print("suxgraph, xlabel, missing label2,\n"); | ||
| 1819 | } | ||
| 1820 | } | ||
| 1821 | |||
| 1822 | =head2 sub x_grid_lines | ||
| 1823 | |||
| 1824 | grid lines on axis 2 - none, dot, dash, or solid | ||
| 1825 | |||
| 1826 | =cut | ||
| 1827 | |||
| 1828 | sub x_grid_lines { | ||
| 1829 | |||
| 1830 | my ( $self, $grid2 ) = @_; | ||
| 1831 | if ($grid2) { | ||
| 1832 | |||
| 1833 | $suxgraph->{_grid2} = $grid2; | ||
| 1834 | $suxgraph->{_note} = | ||
| 1835 | $suxgraph->{_note} . ' grid2=' . $suxgraph->{_grid2}; | ||
| 1836 | $suxgraph->{_Step} = | ||
| 1837 | $suxgraph->{_Step} . ' grid2=' . $suxgraph->{_grid2}; | ||
| 1838 | |||
| 1839 | } | ||
| 1840 | else { | ||
| 1841 | print("suxgraph, x_grid_lines, missing grid2,\n"); | ||
| 1842 | } | ||
| 1843 | } | ||
| 1844 | |||
| 1845 | =head2 sub x_start_m | ||
| 1846 | |||
| 1847 | value at which axis 2 begins | ||
| 1848 | |||
| 1849 | =cut | ||
| 1850 | |||
| 1851 | sub x_start_m { | ||
| 1852 | |||
| 1853 | my ( $self, $x2beg ) = @_; | ||
| 1854 | if ( $x2beg ne $empty_string ) { | ||
| 1855 | |||
| 1856 | $suxgraph->{_x2beg} = $x2beg; | ||
| 1857 | $suxgraph->{_note} = | ||
| 1858 | $suxgraph->{_note} . ' x2beg=' . $suxgraph->{_x2beg}; | ||
| 1859 | $suxgraph->{_Step} = | ||
| 1860 | $suxgraph->{_Step} . ' x2beg=' . $suxgraph->{_x2beg}; | ||
| 1861 | |||
| 1862 | } | ||
| 1863 | else { | ||
| 1864 | print("suxgraph, x_start_m, missing x2beg,\n"); | ||
| 1865 | } | ||
| 1866 | } | ||
| 1867 | |||
| 1868 | =head2 sub y_end_s | ||
| 1869 | |||
| 1870 | value at which axis 1 ends | ||
| 1871 | |||
| 1872 | =cut | ||
| 1873 | |||
| 1874 | sub y_end_s { | ||
| 1875 | |||
| 1876 | my ( $self, $x1end ) = @_; | ||
| 1877 | if ($x1end) { | ||
| 1878 | |||
| 1879 | $suxgraph->{_x1end} = $x1end; | ||
| 1880 | $suxgraph->{_note} = | ||
| 1881 | $suxgraph->{_note} . ' x1end=' . $suxgraph->{_x1end}; | ||
| 1882 | $suxgraph->{_Step} = | ||
| 1883 | $suxgraph->{_Step} . ' x1end=' . $suxgraph->{_x1end}; | ||
| 1884 | |||
| 1885 | } | ||
| 1886 | else { | ||
| 1887 | print("suxgraph, y_end_s, missing y_end_s,\n"); | ||
| 1888 | } | ||
| 1889 | } | ||
| 1890 | |||
| 1891 | |||
| 1892 | |||
| 1893 | =head2 sub y_grid_lines | ||
| 1894 | |||
| 1895 | grid lines on axis 1 - none, dot, dash, or solid | ||
| 1896 | |||
| 1897 | =cut | ||
| 1898 | |||
| 1899 | sub y_grid_lines { | ||
| 1900 | |||
| 1901 | my ( $self, $grid1 ) = @_; | ||
| 1902 | if ($grid1) { | ||
| 1903 | |||
| 1904 | $suxgraph->{_grid1} = $grid1; | ||
| 1905 | $suxgraph->{_note} = | ||
| 1906 | $suxgraph->{_note} . ' grid1=' . $suxgraph->{_grid1}; | ||
| 1907 | $suxgraph->{_Step} = | ||
| 1908 | $suxgraph->{_Step} . ' grid1=' . $suxgraph->{_grid1}; | ||
| 1909 | |||
| 1910 | } | ||
| 1911 | else { | ||
| 1912 | print("suxgraph, y_grid_lines, missing grid1,\n"); | ||
| 1913 | } | ||
| 1914 | } | ||
| 1915 | |||
| 1916 | =head2 sub y_label | ||
| 1917 | |||
| 1918 | value at which axis 1 begins | ||
| 1919 | |||
| 1920 | =cut | ||
| 1921 | |||
| 1922 | sub y_label { | ||
| 1923 | |||
| 1924 | my ( $self, $y_label ) = @_; | ||
| 1925 | if ( $y_label ne $empty_string ) { | ||
| 1926 | |||
| 1927 | $suxgraph->{_label1} = $y_label; | ||
| 1928 | $suxgraph->{_note} = | ||
| 1929 | $suxgraph->{_note} . ' label1=' . $suxgraph->{_label1}; | ||
| 1930 | $suxgraph->{_Step} = | ||
| 1931 | $suxgraph->{_Step} . ' label1=' . $suxgraph->{_label1}; | ||
| 1932 | |||
| 1933 | } | ||
| 1934 | else { | ||
| 1935 | print("suxgraph, y_label, missing label1,\n"); | ||
| 1936 | } | ||
| 1937 | } | ||
| 1938 | |||
| 1939 | =head2 sub y_start_s_s | ||
| 1940 | |||
| 1941 | value at which axis 1 begins | ||
| 1942 | |||
| 1943 | =cut | ||
| 1944 | |||
| 1945 | sub y_start_s { | ||
| 1946 | |||
| 1947 | my ( $self, $x1beg ) = @_; | ||
| 1948 | if ( $x1beg ne $empty_string ) { | ||
| 1949 | |||
| 1950 | $suxgraph->{_x1beg} = $x1beg; | ||
| 1951 | $suxgraph->{_note} = | ||
| 1952 | $suxgraph->{_note} . ' x1beg=' . $suxgraph->{_x1beg}; | ||
| 1953 | $suxgraph->{_Step} = | ||
| 1954 | $suxgraph->{_Step} . ' x1beg=' . $suxgraph->{_x1beg}; | ||
| 1955 | |||
| 1956 | } | ||
| 1957 | else { | ||
| 1958 | print("suxgraph, y_start_s, missing x1beg,\n"); | ||
| 1959 | } | ||
| 1960 | } | ||
| 1961 | |||
| 1962 | =head2 sub get_max_index | ||
| 1963 | |||
| 1964 | max index = number of input variables -1 | ||
| 1965 | |||
| 1966 | =cut | ||
| 1967 | |||
| 1968 | sub get_max_index { | ||
| 1969 | my ($self) = @_; | ||
| 1970 | my $max_index = 40; | ||
| 1971 | |||
| 1972 | return ($max_index); | ||
| 1973 | } | ||
| 1974 | 1; |