« lib/App/SeismicUnixGui/sunix/header/sushw.pm
↑ Summary
lib/App/SeismicUnixGui/sunix/plot/supswigp.pm »
| 1 | package App::SeismicUnixGui::sunix::plot::supswigb; | ||
| 2 | |||
| 3 | =head1 DOCUMENTATION | ||
| 4 | |||
| 5 | =head2 SYNOPSIS | ||
| 6 | |||
| 7 | PERL PROGRAM NAME: SUPSWIGB - PostScript Bit-mapped WIGgle plot of a segy data set | ||
| 8 | AUTHOR: Juan Lorenzo (Perl module only) | ||
| 9 | DATE: | ||
| 10 | DESCRIPTION: | ||
| 11 | Version: | ||
| 12 | |||
| 13 | =head2 USE | ||
| 14 | |||
| 15 | =head3 NOTES | ||
| 16 | |||
| 17 | =head4 Examples | ||
| 18 | |||
| 19 | =head3 SEISMIC UNIX NOTES | ||
| 20 | |||
| 21 | SUPSWIGB - PostScript Bit-mapped WIGgle plot of a segy data set | ||
| 22 | |||
| 23 | supswigb <stdin [optional parameters] > | ||
| 24 | |||
| 25 | Optional parameters: | ||
| 26 | key=(keyword) if set, the values of x2 are set from header field | ||
| 27 | specified by keyword | ||
| 28 | n2=tr.ntr or number of traces in the data set (ntr is an alias for n2) | ||
| 29 | d1=tr.d1 or tr.dt/10^6 sampling interval in the fast dimension | ||
| 30 | =.004 for seismic (if not set) | ||
| 31 | =1.0 for nonseismic (if not set) | ||
| 32 | d2=tr.d2 sampling interval in the slow dimension | ||
| 33 | =1.0 (if not set) | ||
| 34 | f1=tr.f1 or tr.delrt/10^3 or 0.0 first sample in the fast dimension | ||
| 35 | f2=tr.f2 or tr.tracr or tr.tracl first sample in the slow dimension | ||
| 36 | =1.0 for seismic (if not set) | ||
| 37 | =d2 for nonseismic (if not set) | ||
| 38 | |||
| 39 | style=seismic normal (axis 1 horizontal, axis 2 vertical) or | ||
| 40 | vsp (same as normal with axis 2 reversed) | ||
| 41 | Note: vsp requires use of a keyword | ||
| 42 | |||
| 43 | verbose=0 =1 to print some useful information | ||
| 44 | |||
| 45 | tmpdir= if non-empty, use the value as a directory path | ||
| 46 | prefix for storing temporary files; else if the | ||
| 47 | the CWP_TMPDIR environment variable is set use | ||
| 48 | its value for the path; else use tmpfile() | ||
| 49 | |||
| 50 | Note that for seismic time domain data, the "fast dimension" is | ||
| 51 | time and the "slow dimension" is usually trace number or range. | ||
| 52 | Also note that "foreign" data tapes may have something unexpected | ||
| 53 | in the d2,f2 fields, use segyclean to clear these if you can afford | ||
| 54 | the processing time or use d2= f2= to override the header values if | ||
| 55 | not. | ||
| 56 | |||
| 57 | If key=keyword is set, then the values of x2 are taken from the header | ||
| 58 | field represented by the keyword (for example key=offset, will show | ||
| 59 | traces in true offset). This permit unequally spaced traces to be plotted. | ||
| 60 | Type sukeyword -o to see the complete list of SU keywords. | ||
| 61 | |||
| 62 | This program is really just a wrapper for the plotting program: pswigb | ||
| 63 | See the pswigb selfdoc for the remaining parameters. | ||
| 64 | |||
| 65 | Trace header fields accessed: ns, ntr, tracr, tracl, delrt, trid, | ||
| 66 | dt, d1, d2, f1, f2, keyword (if set) | ||
| 67 | |||
| 68 | Credits: | ||
| 69 | |||
| 70 | CWP: Dave Hale and Zhiming Li (pswigb, etc.) | ||
| 71 | Jack Cohen and John Stockwell (supswigb, etc.) | ||
| 72 | Delphi: Alexander Koek, added support for irregularly spaced traces | ||
| 73 | |||
| 74 | Modified by Brian Zook, Southwest Research Institute, to honor | ||
| 75 | scale factors, added vsp style | ||
| 76 | |||
| 77 | Notes: | ||
| 78 | When the number of traces isn't known, we need to count | ||
| 79 | the traces for pswigb. You can make this value "known" | ||
| 80 | either by getparring n2 or by having the ntr field set | ||
| 81 | in the trace header. A getparred value takes precedence | ||
| 82 | over the value in the trace header. | ||
| 83 | |||
| 84 | When we must compute ntr, we don't allocate a 2-d array, | ||
| 85 | but just content ourselves with copying trace by trace from | ||
| 86 | the data "file" to the pipe into the plotting program. | ||
| 87 | Although we could use tr.data, we allocate a trace buffer | ||
| 88 | for code clarity. | ||
| 89 | |||
| 90 | |||
| 91 | SUPSWIGB inherits all the properties of PSWIGB | ||
| 92 | |||
| 93 | PSWIGB - PostScript WIGgle-trace plot of f(x1,x2) via Bitmap | ||
| 94 | Best for many traces. Use PSWIGP (Polygon version) for few traces. | ||
| 95 | |||
| 96 | pswigb n1= [optional parameters] <binaryfile >postscriptfile | ||
| 97 | |||
| 98 | Required Parameters: | ||
| 99 | n1 number of samples in 1st (fast) dimension | ||
| 100 | |||
| 101 | Optional Parameters: | ||
| 102 | d1=1.0 sampling interval in 1st dimension | ||
| 103 | f1=0.0 first sample in 1st dimension | ||
| 104 | n2=all number of samples in 2nd (slow) dimension | ||
| 105 | d2=1.0 sampling interval in 2nd dimension | ||
| 106 | f2=0.0 first sample in 2nd dimension | ||
| 107 | x2=f2,f2+d2,... array of sampled values in 2nd dimension | ||
| 108 | bias=0.0 data value corresponding to location along axis 2 | ||
| 109 | perc=100.0 percentile for determining clip | ||
| 110 | clip=(perc percentile) data values < bias+clip and > bias-clip are clipped | ||
| 111 | xcur=1.0 wiggle excursion in traces corresponding to clip | ||
| 112 | wt=1 =0 for no wiggle-trace; =1 for wiggle-trace | ||
| 113 | va=1 =0 for no variable-area; =1 for variable-area fill | ||
| 114 | =2 for variable area, solid/grey fill | ||
| 115 | SHADING: 2<= va <=5 va=2 lightgrey, va=5 black", | ||
| 116 | nbpi=72 number of bits per inch at which to rasterize | ||
| 117 | verbose=1 =1 for info printed on stderr (0 for no info) | ||
| 118 | xbox=1.5 offset in inches of left side of axes box | ||
| 119 | ybox=1.5 offset in inches of bottom side of axes box | ||
| 120 | wbox=6.0 width in inches of axes box | ||
| 121 | hbox=8.0 height in inches of axes box | ||
| 122 | x1beg=x1min value at which axis 1 begins | ||
| 123 | x1end=x1max value at which axis 1 ends | ||
| 124 | d1num=0.0 numbered tic interval on axis 1 (0.0 for automatic) | ||
| 125 | f1num=x1min first numbered tic on axis 1 (used if d1num not 0.0) | ||
| 126 | n1tic=1 number of tics per numbered tic on axis 1 | ||
| 127 | grid1=none grid lines on axis 1 - none, dot, dash, or solid | ||
| 128 | label1= label on axis 1 | ||
| 129 | x2beg=x2min value at which axis 2 begins | ||
| 130 | x2end=x2max value at which axis 2 ends | ||
| 131 | d2num=0.0 numbered tic interval on axis 2 (0.0 for automatic) | ||
| 132 | f2num=x2min first numbered tic on axis 2 (used if d2num not 0.0) | ||
| 133 | n2tic=1 number of tics per numbered tic on axis 2 | ||
| 134 | grid2=none grid lines on axis 2 - none, dot, dash, or solid | ||
| 135 | label2= label on axis 2 | ||
| 136 | labelfont=Helvetica font name for axes labels | ||
| 137 | labelsize=18 font size for axes labels | ||
| 138 | title= title of plot | ||
| 139 | titlefont=Helvetica-Bold font name for title | ||
| 140 | titlesize=24 font size for title | ||
| 141 | titlecolor=black color of title | ||
| 142 | axescolor=black color of axes | ||
| 143 | gridcolor=black color of grid | ||
| 144 | axeswidth=1 width (in points) of axes | ||
| 145 | ticwidth=axeswidth width (in points) of tic marks | ||
| 146 | gridwidth=axeswidth width (in points) of grid lines | ||
| 147 | style=seismic normal (axis 1 horizontal, axis 2 vertical) or | ||
| 148 | seismic (axis 1 vertical, axis 2 horizontal) | ||
| 149 | interp=0 no display interpolation | ||
| 150 | =1 use 8 point sinc interpolation | ||
| 151 | curve=curve1,curve2,... file(s) containing points to draw curve(s) | ||
| 152 | npair=n1,n2,n2,... number(s) of pairs in each file | ||
| 153 | curvecolor=black,.. color of curve(s) | ||
| 154 | curvewidth=axeswidth width (in points) of curve(s) | ||
| 155 | curvedash=0 solid curve(s), dash indices 1,...,11 produce | ||
| 156 | curve(s) with various dash styles | ||
| 157 | |||
| 158 | Notes: | ||
| 159 | The interp option may be useful for high nbpi values, however, it | ||
| 160 | tacitly assumes that the data are purely oscillatory. Non-oscillatory | ||
| 161 | data will not be represented correctly when this option is set. | ||
| 162 | |||
| 163 | The curve file is an ascii file with the points specified as x1 x2 | ||
| 164 | pairs, one pair to a line. A "vector" of curve files and curve | ||
| 165 | colors may be specified as curvefile=file1,file2,etc. and | ||
| 166 | curvecolor=color1,color2,etc, and the number of pairs of values in each | ||
| 167 | file as npair=npair1,npair2,... . | ||
| 168 | |||
| 169 | All color specifications may also be made in X Window style Hex format | ||
| 170 | example: axescolor=#255 | ||
| 171 | |||
| 172 | Legal font names are: | ||
| 173 | AvantGarde-Book AvantGarde-BookOblique AvantGarde-Demi AvantGarde-DemiOblique" | ||
| 174 | Bookman-Demi Bookman-DemiItalic Bookman-Light Bookman-LightItalic | ||
| 175 | Courier Courier-Bold Courier-BoldOblique Courier-Oblique | ||
| 176 | Helvetica Helvetica-Bold Helvetica-BoldOblique Helvetica-Oblique | ||
| 177 | Helvetica-Narrow Helvetica-Narrow-Bold Helvetica-Narrow-BoldOblique | ||
| 178 | Helvetica-Narrow-Oblique NewCentrySchlbk-Bold" | ||
| 179 | NewCenturySchlbk-BoldItalic NewCenturySchlbk-Roman Palatino-Bold | ||
| 180 | Palatino-BoldItalic Palatino-Italics Palatino-Roman | ||
| 181 | SanSerif-Bold SanSerif-BoldItalic SanSerif-Roman | ||
| 182 | Symbol Times-Bold Times-BoldItalic | ||
| 183 | Times-Roman Times-Italic ZapfChancery-MediumItalic | ||
| 184 | |||
| 185 | |||
| 186 | =head2 CHANGES and their DATES | ||
| 187 | |||
| 188 | V0.0.2 supswigb <stdin [optional parameters] > (JML for SeismicUnixGui 2.8.23) | ||
| 189 | |||
| 190 | =cut | ||
| 191 | |||
| 192 | use Moose; | ||
| 193 | our $VERSION = '0.0.2'; | ||
| 194 | use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants'; | ||
| 195 | |||
| 196 | my $get = L_SU_global_constants->new(); | ||
| 197 | |||
| 198 | my $var = $get->var(); | ||
| 199 | my $empty_string = $var->{_empty_string}; | ||
| 200 | |||
| 201 | |||
| 202 | my $supswigb = { | ||
| 203 | _absclip => '', | ||
| 204 | _bias => '', | ||
| 205 | _box_width_inch => '', | ||
| 206 | _box_height_inch => '', | ||
| 207 | _box_X0_inch => '', | ||
| 208 | _box_Y0_inch => '', | ||
| 209 | _clip => '', | ||
| 210 | _cmap => '', | ||
| 211 | _curve => '', | ||
| 212 | _curvecolor => '', | ||
| 213 | _curvefile => '', | ||
| 214 | _ftr => '', | ||
| 215 | _d1 => '', | ||
| 216 | _d1num => '', | ||
| 217 | _dt => '', | ||
| 218 | _d2 => '', | ||
| 219 | _dx => '', | ||
| 220 | _dx_major_divisions => '', | ||
| 221 | _dy_major_divisions => '', | ||
| 222 | _dt_major_divisions => '', | ||
| 223 | _d2num => '', | ||
| 224 | _dtr => '', | ||
| 225 | _endian => '', | ||
| 226 | _f1num => '', | ||
| 227 | _f1 => '', | ||
| 228 | _first_y => '', | ||
| 229 | _first_time_sample_value => '', | ||
| 230 | _f2 => '', | ||
| 231 | _first_x => '', | ||
| 232 | _first_distance_sample_value => '', | ||
| 233 | _first_distance_tick_num => '', | ||
| 234 | _f1num => '', | ||
| 235 | _first_time_tick_num => '', | ||
| 236 | _f2num => '', | ||
| 237 | _grid1 => '', | ||
| 238 | _grid2 => '', | ||
| 239 | _gridcolor => '', | ||
| 240 | _hbox => '', | ||
| 241 | _headerword => '', | ||
| 242 | _hiclip => '', | ||
| 243 | _interp => '', | ||
| 244 | _key => '', | ||
| 245 | _label2 => '', | ||
| 246 | _labelfont => '', | ||
| 247 | _labelcolor => '', | ||
| 248 | _label1 => '', | ||
| 249 | _label2 => '', | ||
| 250 | _loclip => '', | ||
| 251 | _mpicks => '', | ||
| 252 | _n1 => '', | ||
| 253 | _n1tic => '', | ||
| 254 | _num_minor_ticks_betw_major_time_ticks => '', | ||
| 255 | _n2 => '', | ||
| 256 | _n2tic => '', | ||
| 257 | _nbpi => '', | ||
| 258 | _npair => '', | ||
| 259 | _num_minor_ticks_betw_major_distance_ticks => '', | ||
| 260 | _percent => '', | ||
| 261 | _plotfile => '', | ||
| 262 | _orientation => '', | ||
| 263 | _perc => '', | ||
| 264 | _picks => '', | ||
| 265 | _shading => '', | ||
| 266 | _style => '', | ||
| 267 | _tend_s => '', | ||
| 268 | _tstart_s => '', | ||
| 269 | _tmpdir => '', | ||
| 270 | _trace_inc => '', | ||
| 271 | _trace_inc_m => '', | ||
| 272 | _title => '', | ||
| 273 | _titlefont => '', | ||
| 274 | _titlecolor => '', | ||
| 275 | _va => '', | ||
| 276 | _verbose => '', | ||
| 277 | _wbox => '', | ||
| 278 | _wigclip => '', | ||
| 279 | _wt => '', | ||
| 280 | _windowtitle => '', | ||
| 281 | _x2beg => '', | ||
| 282 | _xstart_m => '', | ||
| 283 | _x2end => '', | ||
| 284 | _xend_m => '', | ||
| 285 | _xcur => '', | ||
| 286 | _x2 => '', | ||
| 287 | _x1beg => '', | ||
| 288 | _xbox => '', | ||
| 289 | _x1end => '', | ||
| 290 | _xlabel => '', | ||
| 291 | _x_tick_increment => '', | ||
| 292 | _xcur => '', | ||
| 293 | _ylabel => '', | ||
| 294 | _y_tick_increment => '', | ||
| 295 | _ybox => '', | ||
| 296 | _Step => '', | ||
| 297 | _note => '', | ||
| 298 | }; | ||
| 299 | |||
| 300 | |||
| 301 | |||
| 302 | =head2 sub Step | ||
| 303 | |||
| 304 | collects switches and assembles bash instructions | ||
| 305 | by adding the program name | ||
| 306 | |||
| 307 | =cut | ||
| 308 | |||
| 309 | sub Step { | ||
| 310 | |||
| 311 | $supswigb->{_Step} = 'supswigb' . $supswigb->{_Step}; | ||
| 312 | return ( $supswigb->{_Step} ); | ||
| 313 | |||
| 314 | } | ||
| 315 | |||
| 316 | =head2 sub note | ||
| 317 | |||
| 318 | collects switches and assembles bash instructions | ||
| 319 | by adding the program name | ||
| 320 | |||
| 321 | =cut | ||
| 322 | |||
| 323 | sub note { | ||
| 324 | |||
| 325 | $supswigb->{_note} = 'supswigb' . $supswigb->{_note}; | ||
| 326 | return ( $supswigb->{_note} ); | ||
| 327 | |||
| 328 | } | ||
| 329 | |||
| 330 | =head2 sub clear | ||
| 331 | |||
| 332 | 50 + 43 personalized params | ||
| 333 | clear global variables from the memory | ||
| 334 | |||
| 335 | =cut | ||
| 336 | |||
| 337 | sub clear { | ||
| 338 | |||
| 339 | $supswigb->{_d1} = ''; | ||
| 340 | $supswigb->{_d2} = ''; | ||
| 341 | $supswigb->{_f1} = ''; | ||
| 342 | $supswigb->{_f2} = ''; | ||
| 343 | $supswigb->{_key} = ''; | ||
| 344 | $supswigb->{_n2} = ''; | ||
| 345 | $supswigb->{_style} = ''; | ||
| 346 | $supswigb->{_tmpdir} = ''; | ||
| 347 | $supswigb->{_absclip} = ''; | ||
| 348 | $supswigb->{_bias} = ''; | ||
| 349 | $supswigb->{_box_width_inch} = ''; | ||
| 350 | $supswigb->{_box_height_inch} = ''; | ||
| 351 | $supswigb->{_box_X0_inch} = ''; | ||
| 352 | $supswigb->{_box_Y0_inch} = ''; | ||
| 353 | $supswigb->{_clip} = ''; | ||
| 354 | $supswigb->{_cmap} = ''; | ||
| 355 | $supswigb->{_curve} = ''; | ||
| 356 | $supswigb->{_curvecolor} = ''; | ||
| 357 | $supswigb->{_curvefile} = ''; | ||
| 358 | $supswigb->{_ftr} = ''; | ||
| 359 | $supswigb->{_d1} = ''; | ||
| 360 | $supswigb->{_d1num} = ''; | ||
| 361 | $supswigb->{_dt} = ''; | ||
| 362 | $supswigb->{_d2} = ''; | ||
| 363 | $supswigb->{_dx} = ''; | ||
| 364 | $supswigb->{_dx_major_divisions} = ''; | ||
| 365 | $supswigb->{_dy_major_divisions} = ''; | ||
| 366 | $supswigb->{_dt_major_divisions} = ''; | ||
| 367 | $supswigb->{_d2num} = ''; | ||
| 368 | $supswigb->{_dtr} = ''; | ||
| 369 | $supswigb->{_endian} = ''; | ||
| 370 | $supswigb->{_f1num} = ''; | ||
| 371 | $supswigb->{_f1} = ''; | ||
| 372 | $supswigb->{_first_y} = ''; | ||
| 373 | $supswigb->{_first_time_sample_value} = ''; | ||
| 374 | $supswigb->{_f2} = ''; | ||
| 375 | $supswigb->{_first_x} = ''; | ||
| 376 | $supswigb->{_first_distance_sample_value} = ''; | ||
| 377 | $supswigb->{_first_distance_tick_num} = ''; | ||
| 378 | $supswigb->{_f1num} = ''; | ||
| 379 | $supswigb->{_first_time_tick_num} = ''; | ||
| 380 | $supswigb->{_f2num} = ''; | ||
| 381 | $supswigb->{_grid1} = ''; | ||
| 382 | $supswigb->{_grid2} = ''; | ||
| 383 | $supswigb->{_gridcolor} = ''; | ||
| 384 | $supswigb->{_hbox} = ''; | ||
| 385 | $supswigb->{_headerword} = ''; | ||
| 386 | $supswigb->{_hiclip} = ''; | ||
| 387 | $supswigb->{_interp} = ''; | ||
| 388 | $supswigb->{_key} = ''; | ||
| 389 | $supswigb->{_label2} = ''; | ||
| 390 | $supswigb->{_labelfont} = ''; | ||
| 391 | $supswigb->{_labelcolor} = ''; | ||
| 392 | $supswigb->{_label1} = ''; | ||
| 393 | $supswigb->{_label2} = ''; | ||
| 394 | $supswigb->{_loclip} = ''; | ||
| 395 | $supswigb->{_mpicks} = ''; | ||
| 396 | $supswigb->{_n1} = ''; | ||
| 397 | $supswigb->{_n1tic} = ''; | ||
| 398 | $supswigb->{_num_minor_ticks_betw_major_time_ticks} = ''; | ||
| 399 | $supswigb->{_n2} = ''; | ||
| 400 | $supswigb->{_n2tic} = ''; | ||
| 401 | $supswigb->{_npair} = ''; | ||
| 402 | $supswigb->{_num_minor_ticks_betw_major_distance_ticks} = ''; | ||
| 403 | $supswigb->{_percent} = ''; | ||
| 404 | $supswigb->{_plotfile} = ''; | ||
| 405 | $supswigb->{_orientation} = ''; | ||
| 406 | $supswigb->{_perc} = ''; | ||
| 407 | $supswigb->{_picks} = ''; | ||
| 408 | $supswigb->{_shading} = ''; | ||
| 409 | $supswigb->{_style} = ''; | ||
| 410 | $supswigb->{_tend_s} = ''; | ||
| 411 | $supswigb->{_tstart_s} = ''; | ||
| 412 | $supswigb->{_tmpdir} = ''; | ||
| 413 | $supswigb->{_trace_inc} = ''; | ||
| 414 | $supswigb->{_trace_inc_m} = ''; | ||
| 415 | $supswigb->{_title} = ''; | ||
| 416 | $supswigb->{_titlefont} = ''; | ||
| 417 | $supswigb->{_titlecolor} = ''; | ||
| 418 | $supswigb->{_va} = ''; | ||
| 419 | $supswigb->{_verbose} = ''; | ||
| 420 | $supswigb->{_wbox} = ''; | ||
| 421 | $supswigb->{_wigclip} = ''; | ||
| 422 | $supswigb->{_wt} = ''; | ||
| 423 | $supswigb->{_windowtitle} = ''; | ||
| 424 | $supswigb->{_x2beg} = ''; | ||
| 425 | $supswigb->{_xstart_m} = ''; | ||
| 426 | $supswigb->{_x2end} = ''; | ||
| 427 | $supswigb->{_xend_m} = ''; | ||
| 428 | $supswigb->{_xcur} = ''; | ||
| 429 | $supswigb->{_x2} = ''; | ||
| 430 | $supswigb->{_x1beg} = ''; | ||
| 431 | $supswigb->{_xbox} = ''; | ||
| 432 | $supswigb->{_x1end} = ''; | ||
| 433 | $supswigb->{_xlabel} = ''; | ||
| 434 | $supswigb->{_x_tick_increment} = ''; | ||
| 435 | $supswigb->{_xcur} = ''; | ||
| 436 | $supswigb->{_ylabel} = ''; | ||
| 437 | $supswigb->{_y_tick_increment} = ''; | ||
| 438 | $supswigb->{_ybox} = ''; | ||
| 439 | $supswigb->{_verbose} = ''; | ||
| 440 | $supswigb->{_Step} = ''; | ||
| 441 | $supswigb->{_note} = ''; | ||
| 442 | } | ||
| 443 | |||
| 444 | =head2 sub absclip | ||
| 445 | |||
| 446 | define min and max plotting values | ||
| 447 | define min and max plotting values | ||
| 448 | |||
| 449 | =cut | ||
| 450 | |||
| 451 | sub absclip { | ||
| 452 | |||
| 453 | my ( $self, $absclip ) = @_; | ||
| 454 | if ( $absclip ne $empty_string ) { | ||
| 455 | |||
| 456 | $supswigb->{_absclip} = $absclip; | ||
| 457 | $supswigb->{_note} = | ||
| 458 | $supswigb->{_note} . ' clip=' . $supswigb->{_absclip}; | ||
| 459 | $supswigb->{_Step} = | ||
| 460 | $supswigb->{_Step} . ' clip=' . $supswigb->{_absclip}; | ||
| 461 | |||
| 462 | } | ||
| 463 | else { | ||
| 464 | print("supswigb,missing absclip,\n"); | ||
| 465 | } | ||
| 466 | } | ||
| 467 | |||
| 468 | =head2 sub bclip | ||
| 469 | |||
| 470 | |||
| 471 | =cut | ||
| 472 | |||
| 473 | sub bclip { | ||
| 474 | |||
| 475 | my ( $self, $bclip ) = @_; | ||
| 476 | if ( $bclip ne $empty_string ) { | ||
| 477 | |||
| 478 | $supswigb->{_bclip} = $bclip; | ||
| 479 | $supswigb->{_note} = | ||
| 480 | $supswigb->{_note} . ' bclip=' . $supswigb->{_bclip}; | ||
| 481 | $supswigb->{_Step} = | ||
| 482 | $supswigb->{_Step} . ' bclip=' . $supswigb->{_bclip}; | ||
| 483 | |||
| 484 | } | ||
| 485 | else { | ||
| 486 | print("supswigb, bclip, missing bclip,\n"); | ||
| 487 | } | ||
| 488 | } | ||
| 489 | |||
| 490 | =head2 sub bias | ||
| 491 | |||
| 492 | G. Bonot 091718 | ||
| 493 | Only shows data to the right (along axis 2) of each sample data value. Data accounts for | ||
| 494 | the right side of waveform amplitude and is adjusted on input | ||
| 495 | |||
| 496 | =cut | ||
| 497 | |||
| 498 | sub bias { | ||
| 499 | |||
| 500 | my ( $self, $bias ) = @_; | ||
| 501 | if ( $bias ne $empty_string ) { | ||
| 502 | |||
| 503 | $supswigb->{_bias} = $bias; | ||
| 504 | $supswigb->{_note} = $supswigb->{_note} . ' bias=' . $supswigb->{_bias}; | ||
| 505 | $supswigb->{_Step} = $supswigb->{_Step} . ' bias=' . $supswigb->{_bias}; | ||
| 506 | |||
| 507 | } | ||
| 508 | else { | ||
| 509 | print("supswigb,missing bias,\n"); | ||
| 510 | } | ||
| 511 | } | ||
| 512 | |||
| 513 | =head2 sub box_X0_inch | ||
| 514 | |||
| 515 | |||
| 516 | =cut | ||
| 517 | |||
| 518 | sub box_X0_inch { | ||
| 519 | |||
| 520 | my ( $self, $xbox ) = @_; | ||
| 521 | if ( $xbox ne $empty_string ) { | ||
| 522 | |||
| 523 | $supswigb->{_xbox} = $xbox; | ||
| 524 | $supswigb->{_note} = $supswigb->{_note} . ' xbox=' . $supswigb->{_xbox}; | ||
| 525 | $supswigb->{_Step} = $supswigb->{_Step} . ' xbox=' . $supswigb->{_xbox}; | ||
| 526 | |||
| 527 | } | ||
| 528 | else { | ||
| 529 | print("supswigb,box_X0_inch ,missing xbox\n"); | ||
| 530 | } | ||
| 531 | } | ||
| 532 | |||
| 533 | =head2 sub box_Y0_inch | ||
| 534 | |||
| 535 | |||
| 536 | =cut | ||
| 537 | |||
| 538 | sub box_Y0_inch { | ||
| 539 | |||
| 540 | my ( $self, $ybox ) = @_; | ||
| 541 | if ( $ybox ne $empty_string ) { | ||
| 542 | |||
| 543 | $supswigb->{_ybox} = $ybox; | ||
| 544 | $supswigb->{_note} = $supswigb->{_note} . ' ybox=' . $supswigb->{_ybox}; | ||
| 545 | $supswigb->{_Step} = $supswigb->{_Step} . ' ybox=' . $supswigb->{_ybox}; | ||
| 546 | |||
| 547 | } | ||
| 548 | else { | ||
| 549 | print("supswigb,box_Y0_inch ,missing ybox\n"); | ||
| 550 | } | ||
| 551 | } | ||
| 552 | |||
| 553 | =head2 sub box_height_inch | ||
| 554 | |||
| 555 | |||
| 556 | =cut | ||
| 557 | |||
| 558 | sub box_height_inch { | ||
| 559 | |||
| 560 | my ( $self, $hbox ) = @_; | ||
| 561 | if ( $hbox ne $empty_string ) { | ||
| 562 | |||
| 563 | $supswigb->{_hbox} = $hbox; | ||
| 564 | $supswigb->{_note} = $supswigb->{_note} . ' hbox=' . $supswigb->{_hbox}; | ||
| 565 | $supswigb->{_Step} = $supswigb->{_Step} . ' hbox=' . $supswigb->{_hbox}; | ||
| 566 | |||
| 567 | } | ||
| 568 | else { | ||
| 569 | print("supswigb,box_height_inch,missing hbox,\n"); | ||
| 570 | } | ||
| 571 | } | ||
| 572 | |||
| 573 | =head2 sub box_width_inch | ||
| 574 | |||
| 575 | |||
| 576 | =cut | ||
| 577 | |||
| 578 | sub box_width_inch { | ||
| 579 | |||
| 580 | my ( $self, $wbox ) = @_; | ||
| 581 | if ( $wbox ne $empty_string ) { | ||
| 582 | |||
| 583 | $supswigb->{_wbox} = $wbox; | ||
| 584 | $supswigb->{_note} = $supswigb->{_note} . ' wbox=' . $supswigb->{_wbox}; | ||
| 585 | $supswigb->{_Step} = $supswigb->{_Step} . ' wbox=' . $supswigb->{_wbox}; | ||
| 586 | |||
| 587 | } | ||
| 588 | else { | ||
| 589 | print("box_width_inch wbox,\n"); | ||
| 590 | } | ||
| 591 | } | ||
| 592 | |||
| 593 | =head2 sub clip | ||
| 594 | |||
| 595 | define min and max plotting values | ||
| 596 | |||
| 597 | =cut | ||
| 598 | |||
| 599 | sub clip { | ||
| 600 | |||
| 601 | my ( $self, $clip ) = @_; | ||
| 602 | if ( $clip ne $empty_string ) { | ||
| 603 | |||
| 604 | $supswigb->{_clip} = $clip; | ||
| 605 | $supswigb->{_note} = $supswigb->{_note} . ' clip=' . $supswigb->{_clip}; | ||
| 606 | $supswigb->{_Step} = $supswigb->{_Step} . ' clip=' . $supswigb->{_clip}; | ||
| 607 | |||
| 608 | } | ||
| 609 | else { | ||
| 610 | print("supswigb,missing clip,\n"); | ||
| 611 | } | ||
| 612 | } | ||
| 613 | |||
| 614 | =head2 sub cmap | ||
| 615 | define min and max plotting values | ||
| 616 | |||
| 617 | =cut | ||
| 618 | |||
| 619 | sub cmap { | ||
| 620 | |||
| 621 | my ( $self, $cmap ) = @_; | ||
| 622 | if ( $cmap ne $empty_string ) { | ||
| 623 | |||
| 624 | $supswigb->{_cmap} = $cmap; | ||
| 625 | $supswigb->{_note} = $supswigb->{_note} . ' cmap=' . $supswigb->{_cmap}; | ||
| 626 | $supswigb->{_Step} = $supswigb->{_Step} . ' cmap=' . $supswigb->{_cmap}; | ||
| 627 | |||
| 628 | } | ||
| 629 | else { | ||
| 630 | print("supswigb,cmap, missing cmap,\n"); | ||
| 631 | } | ||
| 632 | } | ||
| 633 | |||
| 634 | =head2 sub curve | ||
| 635 | |||
| 636 | |||
| 637 | =cut | ||
| 638 | |||
| 639 | sub curve { | ||
| 640 | |||
| 641 | my ( $self, $curve ) = @_; | ||
| 642 | if ( $curve ne $empty_string ) { | ||
| 643 | |||
| 644 | $supswigb->{_curve} = $curve; | ||
| 645 | $supswigb->{_note} = | ||
| 646 | $supswigb->{_note} . ' curve=' . $supswigb->{_curve}; | ||
| 647 | $supswigb->{_Step} = | ||
| 648 | $supswigb->{_Step} . ' curve=' . $supswigb->{_curve}; | ||
| 649 | |||
| 650 | } | ||
| 651 | else { | ||
| 652 | print("supswigb,missing curve,\n"); | ||
| 653 | } | ||
| 654 | } | ||
| 655 | |||
| 656 | =head2 sub curvecolor | ||
| 657 | |||
| 658 | |||
| 659 | =cut | ||
| 660 | |||
| 661 | sub curvecolor { | ||
| 662 | |||
| 663 | my ( $self, $curvecolor ) = @_; | ||
| 664 | if ( $curvecolor ne $empty_string ) { | ||
| 665 | |||
| 666 | $supswigb->{_curvecolor} = $curvecolor; | ||
| 667 | $supswigb->{_note} = | ||
| 668 | $supswigb->{_note} . ' curvecolor=' . $supswigb->{_curvecolor}; | ||
| 669 | $supswigb->{_Step} = | ||
| 670 | $supswigb->{_Step} . ' curvecolor=' . $supswigb->{_curvecolor}; | ||
| 671 | |||
| 672 | } | ||
| 673 | else { | ||
| 674 | print("supswigb,missing curvecolor,\n"); | ||
| 675 | } | ||
| 676 | } | ||
| 677 | |||
| 678 | =head2 sub curvefile | ||
| 679 | |||
| 680 | |||
| 681 | =cut | ||
| 682 | |||
| 683 | sub curvefile { | ||
| 684 | |||
| 685 | my ( $self, $curvefile ) = @_; | ||
| 686 | if ( $curvefile ne $empty_string ) { | ||
| 687 | |||
| 688 | $supswigb->{_curvefile} = $curvefile; | ||
| 689 | $supswigb->{_note} = | ||
| 690 | $supswigb->{_note} . ' curvefile=' . $supswigb->{_curvefile}; | ||
| 691 | $supswigb->{_Step} = | ||
| 692 | $supswigb->{_Step} . ' curvefile=' . $supswigb->{_curvefile}; | ||
| 693 | |||
| 694 | } | ||
| 695 | else { | ||
| 696 | print("supswigb,missing curvefile,\n"); | ||
| 697 | } | ||
| 698 | } | ||
| 699 | |||
| 700 | =head2 sub d1 | ||
| 701 | |||
| 702 | increment in fast dimension | ||
| 703 | usually time and equal to dt | ||
| 704 | |||
| 705 | =cut | ||
| 706 | |||
| 707 | sub d1 { | ||
| 708 | |||
| 709 | my ( $self, $d1 ) = @_; | ||
| 710 | if ( $d1 ne $empty_string ) { | ||
| 711 | |||
| 712 | $supswigb->{_d1} = $d1; | ||
| 713 | $supswigb->{_note} = $supswigb->{_note} . ' d1=' . $supswigb->{_d1}; | ||
| 714 | $supswigb->{_Step} = $supswigb->{_Step} . ' d1=' . $supswigb->{_d1}; | ||
| 715 | |||
| 716 | } | ||
| 717 | else { | ||
| 718 | print("supswigb, d1, missing d1,\n"); | ||
| 719 | } | ||
| 720 | } | ||
| 721 | |||
| 722 | =head2 subs d1 and dt | ||
| 723 | |||
| 724 | increment in fast dimension | ||
| 725 | usually time and equal to dt | ||
| 726 | |||
| 727 | =cut | ||
| 728 | |||
| 729 | sub dt { | ||
| 730 | |||
| 731 | my ( $self, $d1 ) = @_; | ||
| 732 | |||
| 733 | if ( $d1 ne $empty_string ) { | ||
| 734 | |||
| 735 | $supswigb->{_d1} = $d1; | ||
| 736 | $supswigb->{_note} = $supswigb->{_note} . ' d1=' . $supswigb->{_d1}; | ||
| 737 | $supswigb->{_Step} = $supswigb->{_Step} . ' d1=' . $supswigb->{_d1}; | ||
| 738 | |||
| 739 | } | ||
| 740 | else { | ||
| 741 | print("supswigb, dt, missing d1,\n"); | ||
| 742 | } | ||
| 743 | } | ||
| 744 | |||
| 745 | =head2 sub dt_major_divisions | ||
| 746 | |||
| 747 | subs d1num, y_tick_increment dy_major_divisions dt_major_divisions | ||
| 748 | |||
| 749 | numbered tick increments along x axis | ||
| 750 | usually in m and only for display | ||
| 751 | |||
| 752 | Kenny Lau | ||
| 753 | 16 Sept 2018 | ||
| 754 | Changes the interval between ticks | ||
| 755 | |||
| 756 | =cut | ||
| 757 | |||
| 758 | sub dt_major_divisions { | ||
| 759 | |||
| 760 | my ( $self, $d1num ) = @_; | ||
| 761 | if ( $d1num ne $empty_string ) { | ||
| 762 | |||
| 763 | $supswigb->{_d1num} = $d1num; | ||
| 764 | $supswigb->{_note} = | ||
| 765 | $supswigb->{_note} . ' d1num=' . $supswigb->{_d1num}; | ||
| 766 | $supswigb->{_Step} = | ||
| 767 | $supswigb->{_Step} . ' d1num=' . $supswigb->{_d1num}; | ||
| 768 | |||
| 769 | } | ||
| 770 | else { | ||
| 771 | print("supswigb,dt_major_divisions,missing d1num,\n"); | ||
| 772 | } | ||
| 773 | |||
| 774 | } | ||
| 775 | |||
| 776 | =head2 subs trace_inc trace_inc_m, dx and d2 | ||
| 777 | |||
| 778 | increment in fast dimension | ||
| 779 | usually time and equal to dt | ||
| 780 | |||
| 781 | only the first trace is read in | ||
| 782 | if an increment is not 1 between traces | ||
| 783 | you should indicate here | ||
| 784 | |||
| 785 | distance increment between traces | ||
| 786 | |||
| 787 | =cut | ||
| 788 | |||
| 789 | sub dx { | ||
| 790 | |||
| 791 | my ( $self, $d2 ) = @_; | ||
| 792 | if ( $d2 ne $empty_string ) { | ||
| 793 | |||
| 794 | $supswigb->{_d2} = $d2; | ||
| 795 | $supswigb->{_note} = $supswigb->{_note} . ' d2=' . $supswigb->{_d2}; | ||
| 796 | $supswigb->{_Step} = $supswigb->{_Step} . ' d2=' . $supswigb->{_d2}; | ||
| 797 | |||
| 798 | } | ||
| 799 | else { | ||
| 800 | print("supswigb, dx, missing d2,\n"); | ||
| 801 | } | ||
| 802 | } | ||
| 803 | |||
| 804 | =head2 sub dy_major_divisions | ||
| 805 | |||
| 806 | subs d1num, y_tick_increment dy_major_divisions dt_major_divisions | ||
| 807 | |||
| 808 | numbered tick increments along x axis | ||
| 809 | usually in m and only for display | ||
| 810 | |||
| 811 | Kenny Lau | ||
| 812 | 16 Sept 2018 | ||
| 813 | Changes the interval between ticks | ||
| 814 | |||
| 815 | =cut | ||
| 816 | |||
| 817 | sub dy_major_divisions { | ||
| 818 | |||
| 819 | my ( $self, $d1num ) = @_; | ||
| 820 | if ( $d1num ne $empty_string ) { | ||
| 821 | |||
| 822 | $supswigb->{_d1num} = $d1num; | ||
| 823 | $supswigb->{_note} = | ||
| 824 | $supswigb->{_note} . ' d1num=' . $supswigb->{_d1num}; | ||
| 825 | $supswigb->{_Step} = | ||
| 826 | $supswigb->{_Step} . ' d1num=' . $supswigb->{_d1num}; | ||
| 827 | |||
| 828 | } | ||
| 829 | else { | ||
| 830 | print("supswigb,dy_major_divisions,missing d1num,\n"); | ||
| 831 | } | ||
| 832 | |||
| 833 | } | ||
| 834 | |||
| 835 | =head2 sub d1num | ||
| 836 | |||
| 837 | subs d1num, y_tick_increment dy_major_divisions dt_major_divisions | ||
| 838 | |||
| 839 | numbered tick increments along x axis | ||
| 840 | usually in m and only for display | ||
| 841 | |||
| 842 | Kenny Lau | ||
| 843 | 16 Sept 2018 | ||
| 844 | Changes the interval between ticks | ||
| 845 | |||
| 846 | =cut | ||
| 847 | |||
| 848 | sub d1num { | ||
| 849 | |||
| 850 | my ( $self, $d1num ) = @_; | ||
| 851 | if ( $d1num ne $empty_string ) { | ||
| 852 | |||
| 853 | $supswigb->{_d1num} = $d1num; | ||
| 854 | $supswigb->{_note} = | ||
| 855 | $supswigb->{_note} . ' d1num=' . $supswigb->{_d1num}; | ||
| 856 | $supswigb->{_Step} = | ||
| 857 | $supswigb->{_Step} . ' d1num=' . $supswigb->{_d1num}; | ||
| 858 | |||
| 859 | } | ||
| 860 | else { | ||
| 861 | print("supswigb,missing d1num,\n"); | ||
| 862 | } | ||
| 863 | } | ||
| 864 | |||
| 865 | =head2 subs trace_inc trace_inc_m, dx and d2 | ||
| 866 | |||
| 867 | increment in fast dimension | ||
| 868 | usually time and equal to dt | ||
| 869 | |||
| 870 | only the first trace is read in | ||
| 871 | if an increment is not 1 between traces | ||
| 872 | you should indicate here | ||
| 873 | |||
| 874 | distance increment between traces | ||
| 875 | |||
| 876 | =cut | ||
| 877 | |||
| 878 | sub d2 { | ||
| 879 | |||
| 880 | my ( $self, $d2 ) = @_; | ||
| 881 | if ( $d2 ne $empty_string ) { | ||
| 882 | |||
| 883 | $supswigb->{_d2} = $d2; | ||
| 884 | $supswigb->{_note} = $supswigb->{_note} . ' d2=' . $supswigb->{_d2}; | ||
| 885 | $supswigb->{_Step} = $supswigb->{_Step} . ' d2=' . $supswigb->{_d2}; | ||
| 886 | |||
| 887 | } | ||
| 888 | else { | ||
| 889 | print("supswigb, d2, missing d2,\n"); | ||
| 890 | } | ||
| 891 | } | ||
| 892 | |||
| 893 | =head2 subs d2num dx_major_divisions and x_tick_increment | ||
| 894 | |||
| 895 | numbered tick increments along x axis | ||
| 896 | usually in m and only for display | ||
| 897 | |||
| 898 | =cut | ||
| 899 | |||
| 900 | sub d2num { | ||
| 901 | |||
| 902 | my ( $self, $d2num ) = @_; | ||
| 903 | if ( $d2num ne $empty_string ) { | ||
| 904 | |||
| 905 | $supswigb->{_d2num} = $d2num; | ||
| 906 | $supswigb->{_note} = | ||
| 907 | $supswigb->{_note} . ' d2num=' . $supswigb->{_d2num}; | ||
| 908 | $supswigb->{_Step} = | ||
| 909 | $supswigb->{_Step} . ' d2num=' . $supswigb->{_d2num}; | ||
| 910 | |||
| 911 | } | ||
| 912 | else { | ||
| 913 | print("supswigb,d2num, missing d2num,\n"); | ||
| 914 | } | ||
| 915 | } | ||
| 916 | |||
| 917 | =head2 sub endian | ||
| 918 | |||
| 919 | |||
| 920 | =cut | ||
| 921 | |||
| 922 | sub endian { | ||
| 923 | |||
| 924 | my ( $self, $endian ) = @_; | ||
| 925 | if ( $endian ne $empty_string ) { | ||
| 926 | |||
| 927 | $supswigb->{_endian} = $endian; | ||
| 928 | $supswigb->{_note} = | ||
| 929 | $supswigb->{_note} . ' endian=' . $supswigb->{_endian}; | ||
| 930 | $supswigb->{_Step} = | ||
| 931 | $supswigb->{_Step} . ' endian=' . $supswigb->{_endian}; | ||
| 932 | |||
| 933 | } | ||
| 934 | else { | ||
| 935 | print("supswigb,missing endian,\n"); | ||
| 936 | } | ||
| 937 | } | ||
| 938 | |||
| 939 | =head2 subs f1, first_time_sample_value and first_y | ||
| 940 | |||
| 941 | value of the first sample tihat is used | ||
| 942 | |||
| 943 | =cut | ||
| 944 | |||
| 945 | sub f1 { | ||
| 946 | |||
| 947 | my ( $self, $f1 ) = @_; | ||
| 948 | if ( $f1 ne $empty_string ) { | ||
| 949 | |||
| 950 | $supswigb->{_f1} = $f1; | ||
| 951 | $supswigb->{_note} = $supswigb->{_note} . ' f1=' . $supswigb->{_f1}; | ||
| 952 | $supswigb->{_Step} = $supswigb->{_Step} . ' f1=' . $supswigb->{_f1}; | ||
| 953 | |||
| 954 | } | ||
| 955 | else { | ||
| 956 | print("supswigb, f1, missing f1,\n"); | ||
| 957 | } | ||
| 958 | } | ||
| 959 | |||
| 960 | =head2 sub f1num | ||
| 961 | |||
| 962 | subs f1num and first_time_tick_num | ||
| 963 | |||
| 964 | first number at the first tick | ||
| 965 | |||
| 966 | Kenny Lau | ||
| 967 | 16 Sept 2018 | ||
| 968 | Changes the first number at the first tick | ||
| 969 | |||
| 970 | =cut | ||
| 971 | |||
| 972 | sub f1num { | ||
| 973 | |||
| 974 | my ( $self, $f1num ) = @_; | ||
| 975 | if ( $f1num ne $empty_string ) { | ||
| 976 | |||
| 977 | $supswigb->{_f1num} = $f1num; | ||
| 978 | $supswigb->{_note} = | ||
| 979 | $supswigb->{_note} . ' f1num=' . $supswigb->{_f1num}; | ||
| 980 | $supswigb->{_Step} = | ||
| 981 | $supswigb->{_Step} . ' f1num=' . $supswigb->{_f1num}; | ||
| 982 | |||
| 983 | } | ||
| 984 | else { | ||
| 985 | print("supswigb,missing f1num,\n"); | ||
| 986 | } | ||
| 987 | } | ||
| 988 | |||
| 989 | =head2 sub f2 | ||
| 990 | |||
| 991 | |||
| 992 | subs f2 and first_distance_sample_value first_x | ||
| 993 | |||
| 994 | value of the first sample tihat is used | ||
| 995 | |||
| 996 | first value in the second dimension (X) | ||
| 997 | |||
| 998 | G. Bonot 091718 | ||
| 999 | Shifts first sample data to right by amount input | ||
| 1000 | i.e., f2=5 makes data befin at 5 on the x axis. | ||
| 1001 | |||
| 1002 | =cut | ||
| 1003 | |||
| 1004 | sub f2 { | ||
| 1005 | |||
| 1006 | my ( $self, $f2 ) = @_; | ||
| 1007 | if ( $f2 ne $empty_string ) { | ||
| 1008 | |||
| 1009 | $supswigb->{_f2} = $f2; | ||
| 1010 | $supswigb->{_note} = $supswigb->{_note} . ' f2=' . $supswigb->{_f2}; | ||
| 1011 | $supswigb->{_Step} = $supswigb->{_Step} . ' f2=' . $supswigb->{_f2}; | ||
| 1012 | |||
| 1013 | } | ||
| 1014 | else { | ||
| 1015 | print("supswigb, f2, missing f2,\n"); | ||
| 1016 | } | ||
| 1017 | } | ||
| 1018 | |||
| 1019 | =head2 sub f2num | ||
| 1020 | subs f2num and first_distance_tick_num | ||
| 1021 | |||
| 1022 | first number at the first tick | ||
| 1023 | |||
| 1024 | GTL18 | ||
| 1025 | First number of x axis. Not incremental; only represents the | ||
| 1026 | single first vale. X- axis increments ( d2num not equal to 0) | ||
| 1027 | must be created to use this feature; strictly for visual representation | ||
| 1028 | |||
| 1029 | =cut | ||
| 1030 | |||
| 1031 | sub f2num { | ||
| 1032 | |||
| 1033 | my ( $self, $f2num ) = @_; | ||
| 1034 | if ( $f2num ne $empty_string ) { | ||
| 1035 | |||
| 1036 | $supswigb->{_f2num} = $f2num; | ||
| 1037 | $supswigb->{_note} = | ||
| 1038 | $supswigb->{_note} . ' f2num=' . $supswigb->{_f2num}; | ||
| 1039 | $supswigb->{_Step} = | ||
| 1040 | $supswigb->{_Step} . ' f2num=' . $supswigb->{_f2num}; | ||
| 1041 | |||
| 1042 | } | ||
| 1043 | else { | ||
| 1044 | print("xwigb,missing f2num,\n"); | ||
| 1045 | } | ||
| 1046 | } | ||
| 1047 | |||
| 1048 | =head2 subs f2 and first_distance_sample_value first_x | ||
| 1049 | |||
| 1050 | value of the first sample tihat is used | ||
| 1051 | |||
| 1052 | first value in the second dimension (X) | ||
| 1053 | |||
| 1054 | =cut | ||
| 1055 | |||
| 1056 | sub first_distance_sample_value { | ||
| 1057 | |||
| 1058 | my ( $self, $f2 ) = @_; | ||
| 1059 | if ( $f2 ne $empty_string ) { | ||
| 1060 | |||
| 1061 | $supswigb->{_f2} = $f2; | ||
| 1062 | $supswigb->{_note} = $supswigb->{_note} . ' f2=' . $supswigb->{_f2}; | ||
| 1063 | $supswigb->{_Step} = $supswigb->{_Step} . ' f2=' . $supswigb->{_f2}; | ||
| 1064 | |||
| 1065 | } | ||
| 1066 | else { | ||
| 1067 | print("supswigb, first_distance_sample_value, missing f2,\n"); | ||
| 1068 | } | ||
| 1069 | } | ||
| 1070 | |||
| 1071 | =head2 sub first_distance_tick_num | ||
| 1072 | subs f2num and first_distance_tick_num | ||
| 1073 | |||
| 1074 | first number at the first tick | ||
| 1075 | |||
| 1076 | GTL18 | ||
| 1077 | First number of x axis. Not incremental; only represents the | ||
| 1078 | single first vale. X- axis increments ( d2num not equal to 0) | ||
| 1079 | must be created to use this feature; strictly for visual representation | ||
| 1080 | |||
| 1081 | =cut | ||
| 1082 | |||
| 1083 | sub first_distance_tick_num { | ||
| 1084 | |||
| 1085 | my ( $self, $f2num ) = @_; | ||
| 1086 | if ( $f2num ne $empty_string ) { | ||
| 1087 | |||
| 1088 | $supswigb->{_f2num} = $f2num; | ||
| 1089 | $supswigb->{_note} = | ||
| 1090 | $supswigb->{_note} . ' f2num=' . $supswigb->{_f2num}; | ||
| 1091 | $supswigb->{_Step} = | ||
| 1092 | $supswigb->{_Step} . ' f2num=' . $supswigb->{_f2num}; | ||
| 1093 | |||
| 1094 | } | ||
| 1095 | else { | ||
| 1096 | print("supswigb,missing first_distance_tick_num,\n"); | ||
| 1097 | } | ||
| 1098 | } | ||
| 1099 | |||
| 1100 | =head2 subs f1, first_time_sample_value and first_y | ||
| 1101 | |||
| 1102 | value of the first sample tihat is used | ||
| 1103 | |||
| 1104 | =cut | ||
| 1105 | |||
| 1106 | sub first_time_sample_value { | ||
| 1107 | |||
| 1108 | my ( $self, $f1 ) = @_; | ||
| 1109 | if ( $f1 ne $empty_string ) { | ||
| 1110 | |||
| 1111 | $supswigb->{_f1} = $f1; | ||
| 1112 | $supswigb->{_note} = $supswigb->{_note} . ' f1=' . $supswigb->{_f1}; | ||
| 1113 | $supswigb->{_Step} = $supswigb->{_Step} . ' f1=' . $supswigb->{_f1}; | ||
| 1114 | |||
| 1115 | } | ||
| 1116 | else { | ||
| 1117 | print("supswigb, first_time_sample_value, missing f1,\n"); | ||
| 1118 | } | ||
| 1119 | } | ||
| 1120 | |||
| 1121 | =head2 sub first_time_tick_num | ||
| 1122 | |||
| 1123 | subs f1num and first_time_tick_num | ||
| 1124 | |||
| 1125 | first number at the first tick | ||
| 1126 | |||
| 1127 | Kenny Lau | ||
| 1128 | 16 Sept 2018 | ||
| 1129 | Changes the first number at the first tick | ||
| 1130 | |||
| 1131 | =cut | ||
| 1132 | |||
| 1133 | sub first_time_tick_num { | ||
| 1134 | |||
| 1135 | my ( $self, $f1num ) = @_; | ||
| 1136 | if ( $f1num ne $empty_string ) { | ||
| 1137 | |||
| 1138 | $supswigb->{_f1num} = $f1num; | ||
| 1139 | $supswigb->{_note} = | ||
| 1140 | $supswigb->{_note} . ' f1num=' . $supswigb->{_f1num}; | ||
| 1141 | $supswigb->{_Step} = | ||
| 1142 | $supswigb->{_Step} . ' f1num=' . $supswigb->{_f1num}; | ||
| 1143 | |||
| 1144 | } | ||
| 1145 | else { | ||
| 1146 | print("supswigb, first_time_tick_num, missing first_time_tick_num\n"); | ||
| 1147 | } | ||
| 1148 | } | ||
| 1149 | |||
| 1150 | =head2 subs f2 and first_distance_sample_value first_x | ||
| 1151 | |||
| 1152 | value of the first sample tihat is used | ||
| 1153 | |||
| 1154 | first value in the second dimension (X) | ||
| 1155 | |||
| 1156 | =cut | ||
| 1157 | |||
| 1158 | sub first_x { | ||
| 1159 | |||
| 1160 | my ( $self, $f2 ) = @_; | ||
| 1161 | if ( $f2 ne $empty_string ) { | ||
| 1162 | |||
| 1163 | $supswigb->{_f2} = $f2; | ||
| 1164 | $supswigb->{_note} = $supswigb->{_note} . ' f2=' . $supswigb->{_f2}; | ||
| 1165 | $supswigb->{_Step} = $supswigb->{_Step} . ' f2=' . $supswigb->{_f2}; | ||
| 1166 | |||
| 1167 | } | ||
| 1168 | else { | ||
| 1169 | print("supswigb, first_x, missing f2,\n"); | ||
| 1170 | } | ||
| 1171 | } | ||
| 1172 | |||
| 1173 | =head2 subs f1, first_time_sample_value and first_y | ||
| 1174 | |||
| 1175 | value of the first sample tihat is used | ||
| 1176 | |||
| 1177 | =cut | ||
| 1178 | |||
| 1179 | sub first_y { | ||
| 1180 | |||
| 1181 | my ( $self, $f1 ) = @_; | ||
| 1182 | if ( $f1 ne $empty_string ) { | ||
| 1183 | |||
| 1184 | $supswigb->{_f1} = $f1; | ||
| 1185 | $supswigb->{_note} = $supswigb->{_note} . ' f1=' . $supswigb->{_f1}; | ||
| 1186 | $supswigb->{_Step} = $supswigb->{_Step} . ' f1=' . $supswigb->{_f1}; | ||
| 1187 | |||
| 1188 | } | ||
| 1189 | else { | ||
| 1190 | print("supswigb, first_y, missing f1,\n"); | ||
| 1191 | } | ||
| 1192 | } | ||
| 1193 | |||
| 1194 | =head2 sub ftr | ||
| 1195 | |||
| 1196 | |||
| 1197 | =cut | ||
| 1198 | |||
| 1199 | sub ftr { | ||
| 1200 | |||
| 1201 | my ( $self, $ftr ) = @_; | ||
| 1202 | if ( $ftr ne $empty_string ) { | ||
| 1203 | |||
| 1204 | $supswigb->{_f1} = $ftr; | ||
| 1205 | $supswigb->{_note} = $supswigb->{_note} . 'supswigb' . $supswigb->{_ftr}; | ||
| 1206 | $supswigb->{_Step} = $supswigb->{_Step} . 'supswigb' . $supswigb->{_ftr}; | ||
| 1207 | |||
| 1208 | } | ||
| 1209 | else { | ||
| 1210 | print("supswigb, first_y, missing f1,\n"); | ||
| 1211 | } | ||
| 1212 | } | ||
| 1213 | |||
| 1214 | =head2 sub grid1 | ||
| 1215 | |||
| 1216 | Kenny Lau | ||
| 1217 | 16 Sept 2018 | ||
| 1218 | Changes the type of line on the first axis | ||
| 1219 | |||
| 1220 | |||
| 1221 | =cut | ||
| 1222 | |||
| 1223 | sub grid1 { | ||
| 1224 | |||
| 1225 | my ( $self, $grid1 ) = @_; | ||
| 1226 | if ( $grid1 ne $empty_string ) { | ||
| 1227 | |||
| 1228 | $supswigb->{_grid1} = $grid1; | ||
| 1229 | $supswigb->{_note} = | ||
| 1230 | $supswigb->{_note} . ' grid1=' . $supswigb->{_grid1}; | ||
| 1231 | $supswigb->{_Step} = | ||
| 1232 | $supswigb->{_Step} . ' grid1=' . $supswigb->{_grid1}; | ||
| 1233 | |||
| 1234 | } | ||
| 1235 | else { | ||
| 1236 | print("supswigb,missing grid1,\n"); | ||
| 1237 | } | ||
| 1238 | } | ||
| 1239 | |||
| 1240 | =head2 sub grid2 | ||
| 1241 | |||
| 1242 | A. Sivil 091718 | ||
| 1243 | Adds grid lines above x axis as either a dot, dash or a solid line | ||
| 1244 | |||
| 1245 | =cut | ||
| 1246 | |||
| 1247 | sub grid2 { | ||
| 1248 | |||
| 1249 | my ( $self, $grid2 ) = @_; | ||
| 1250 | if ( $grid2 ne $empty_string ) { | ||
| 1251 | |||
| 1252 | $supswigb->{_grid2} = $grid2; | ||
| 1253 | $supswigb->{_note} = | ||
| 1254 | $supswigb->{_note} . ' grid2=' . $supswigb->{_grid2}; | ||
| 1255 | $supswigb->{_Step} = | ||
| 1256 | $supswigb->{_Step} . ' grid2=' . $supswigb->{_grid2}; | ||
| 1257 | |||
| 1258 | } | ||
| 1259 | else { | ||
| 1260 | print("supswigb,missing grid2,\n"); | ||
| 1261 | } | ||
| 1262 | } | ||
| 1263 | |||
| 1264 | =head2 sub gridcolor | ||
| 1265 | |||
| 1266 | |||
| 1267 | =cut | ||
| 1268 | |||
| 1269 | sub gridcolor { | ||
| 1270 | |||
| 1271 | my ( $self, $gridcolor ) = @_; | ||
| 1272 | if ( $gridcolor ne $empty_string ) { | ||
| 1273 | |||
| 1274 | $supswigb->{_gridcolor} = $gridcolor; | ||
| 1275 | $supswigb->{_note} = | ||
| 1276 | $supswigb->{_note} . ' gridcolor=' . $supswigb->{_gridcolor}; | ||
| 1277 | $supswigb->{_Step} = | ||
| 1278 | $supswigb->{_Step} . ' gridcolor=' . $supswigb->{_gridcolor}; | ||
| 1279 | |||
| 1280 | } | ||
| 1281 | else { | ||
| 1282 | print("supswigb,missing gridcolor,\n"); | ||
| 1283 | } | ||
| 1284 | } | ||
| 1285 | |||
| 1286 | =head2 sub hbox | ||
| 1287 | |||
| 1288 | |||
| 1289 | =cut | ||
| 1290 | |||
| 1291 | sub hbox { | ||
| 1292 | |||
| 1293 | my ( $self, $hbox ) = @_; | ||
| 1294 | if ( $hbox ne $empty_string ) { | ||
| 1295 | |||
| 1296 | $supswigb->{_hbox} = $hbox; | ||
| 1297 | $supswigb->{_note} = $supswigb->{_note} . ' hbox=' . $supswigb->{_hbox}; | ||
| 1298 | $supswigb->{_Step} = $supswigb->{_Step} . ' hbox=' . $supswigb->{_hbox}; | ||
| 1299 | |||
| 1300 | } | ||
| 1301 | else { | ||
| 1302 | print("supswigb,missing hbox,\n"); | ||
| 1303 | } | ||
| 1304 | } | ||
| 1305 | |||
| 1306 | =head2 sub headerword | ||
| 1307 | |||
| 1308 | |||
| 1309 | =cut | ||
| 1310 | |||
| 1311 | sub headerword { | ||
| 1312 | |||
| 1313 | my ( $self, $key ) = @_; | ||
| 1314 | if ( $key ne $empty_string ) { | ||
| 1315 | |||
| 1316 | $supswigb->{_key} = $key; | ||
| 1317 | $supswigb->{_note} = $supswigb->{_note} . ' key=' . $supswigb->{_key}; | ||
| 1318 | $supswigb->{_Step} = $supswigb->{_Step} . ' key=' . $supswigb->{_key}; | ||
| 1319 | |||
| 1320 | } | ||
| 1321 | else { | ||
| 1322 | print("supswigb, headerword, missing key,\n"); | ||
| 1323 | } | ||
| 1324 | } | ||
| 1325 | |||
| 1326 | =head2 sub header_word | ||
| 1327 | |||
| 1328 | |||
| 1329 | =cut | ||
| 1330 | |||
| 1331 | sub header_word { | ||
| 1332 | |||
| 1333 | my ( $self, $key ) = @_; | ||
| 1334 | if ( $key ne $empty_string ) { | ||
| 1335 | |||
| 1336 | $supswigb->{_key} = $key; | ||
| 1337 | $supswigb->{_note} = $supswigb->{_note} . ' key=' . $supswigb->{_key}; | ||
| 1338 | $supswigb->{_Step} = $supswigb->{_Step} . ' key=' . $supswigb->{_key}; | ||
| 1339 | |||
| 1340 | } | ||
| 1341 | else { | ||
| 1342 | print("supswigb, header_word, missing key,\n"); | ||
| 1343 | } | ||
| 1344 | } | ||
| 1345 | |||
| 1346 | =head2 sub hiclip | ||
| 1347 | |||
| 1348 | |||
| 1349 | =cut | ||
| 1350 | |||
| 1351 | sub hiclip { | ||
| 1352 | |||
| 1353 | my ( $self, $key ) = @_; | ||
| 1354 | if ( $key ne $empty_string ) { | ||
| 1355 | |||
| 1356 | $supswigb->{_key} = $key; | ||
| 1357 | $supswigb->{_note} = $supswigb->{_note} . ' bclip=' . $supswigb->{_key}; | ||
| 1358 | $supswigb->{_Step} = $supswigb->{_Step} . ' bclip=' . $supswigb->{_key}; | ||
| 1359 | |||
| 1360 | } | ||
| 1361 | else { | ||
| 1362 | print("supswigb, hiclip, missing key,\n"); | ||
| 1363 | } | ||
| 1364 | } | ||
| 1365 | |||
| 1366 | =head2 sub hi_clip | ||
| 1367 | |||
| 1368 | |||
| 1369 | =cut | ||
| 1370 | |||
| 1371 | sub hi_clip { | ||
| 1372 | |||
| 1373 | my ( $self, $key ) = @_; | ||
| 1374 | if ( $key ne $empty_string ) { | ||
| 1375 | |||
| 1376 | $supswigb->{_key} = $key; | ||
| 1377 | $supswigb->{_note} = $supswigb->{_note} . ' bclip=' . $supswigb->{_key}; | ||
| 1378 | $supswigb->{_Step} = $supswigb->{_Step} . ' bclip=' . $supswigb->{_key}; | ||
| 1379 | |||
| 1380 | } | ||
| 1381 | else { | ||
| 1382 | print("supswigb, hi_clip, missing key,\n"); | ||
| 1383 | } | ||
| 1384 | } | ||
| 1385 | |||
| 1386 | =head2 sub interp | ||
| 1387 | |||
| 1388 | |||
| 1389 | =cut | ||
| 1390 | |||
| 1391 | sub interp { | ||
| 1392 | |||
| 1393 | my ( $self, $interp ) = @_; | ||
| 1394 | if ( $interp ne $empty_string ) { | ||
| 1395 | |||
| 1396 | $supswigb->{_interp} = $interp; | ||
| 1397 | $supswigb->{_note} = | ||
| 1398 | $supswigb->{_note} . ' interp=' . $supswigb->{_interp}; | ||
| 1399 | $supswigb->{_Step} = | ||
| 1400 | $supswigb->{_Step} . ' interp=' . $supswigb->{_interp}; | ||
| 1401 | |||
| 1402 | } | ||
| 1403 | else { | ||
| 1404 | print("supswigb,missing interp,\n"); | ||
| 1405 | } | ||
| 1406 | } | ||
| 1407 | |||
| 1408 | =head2 sub key | ||
| 1409 | |||
| 1410 | |||
| 1411 | =cut | ||
| 1412 | |||
| 1413 | sub key { | ||
| 1414 | |||
| 1415 | my ( $self, $key ) = @_; | ||
| 1416 | if ( $key ne $empty_string ) { | ||
| 1417 | |||
| 1418 | $supswigb->{_key} = $key; | ||
| 1419 | $supswigb->{_note} = $supswigb->{_note} . ' key=' . $supswigb->{_key}; | ||
| 1420 | $supswigb->{_Step} = $supswigb->{_Step} . ' key=' . $supswigb->{_key}; | ||
| 1421 | |||
| 1422 | } | ||
| 1423 | else { | ||
| 1424 | print("supswigb, key, missing key,\n"); | ||
| 1425 | } | ||
| 1426 | } | ||
| 1427 | |||
| 1428 | =head2 sub label1 | ||
| 1429 | |||
| 1430 | =cut | ||
| 1431 | |||
| 1432 | sub label1 { | ||
| 1433 | |||
| 1434 | my ( $self, $label1 ) = @_; | ||
| 1435 | if ( $label1 ne $empty_string ) { | ||
| 1436 | |||
| 1437 | $supswigb->{_label1} = $label1; | ||
| 1438 | $supswigb->{_note} = | ||
| 1439 | $supswigb->{_note} . ' label1=' . $supswigb->{_label1}; | ||
| 1440 | $supswigb->{_Step} = | ||
| 1441 | $supswigb->{_Step} . ' label1=' . $supswigb->{_label1}; | ||
| 1442 | |||
| 1443 | } | ||
| 1444 | else { | ||
| 1445 | print("supswigb,missing label1,\n"); | ||
| 1446 | } | ||
| 1447 | } | ||
| 1448 | |||
| 1449 | =head2 sub label2 | ||
| 1450 | |||
| 1451 | A. Sivil 091718 | ||
| 1452 | Adds label above x axis in top-right corner | ||
| 1453 | |||
| 1454 | =cut | ||
| 1455 | |||
| 1456 | sub label2 { | ||
| 1457 | |||
| 1458 | my ( $self, $label2 ) = @_; | ||
| 1459 | if ( $label2 ne $empty_string ) { | ||
| 1460 | |||
| 1461 | $supswigb->{_label2} = $label2; | ||
| 1462 | $supswigb->{_note} = | ||
| 1463 | $supswigb->{_note} . ' label2=' . $supswigb->{_label2}; | ||
| 1464 | $supswigb->{_Step} = | ||
| 1465 | $supswigb->{_Step} . ' label2=' . $supswigb->{_label2}; | ||
| 1466 | |||
| 1467 | } | ||
| 1468 | else { | ||
| 1469 | print("supswigb,missing label2,\n"); | ||
| 1470 | } | ||
| 1471 | } | ||
| 1472 | |||
| 1473 | =head2 sub labelcolor | ||
| 1474 | |||
| 1475 | |||
| 1476 | =cut | ||
| 1477 | |||
| 1478 | sub labelcolor { | ||
| 1479 | |||
| 1480 | my ( $self, $labelcolor ) = @_; | ||
| 1481 | if ( $labelcolor ne $empty_string ) { | ||
| 1482 | |||
| 1483 | $supswigb->{_labelcolor} = $labelcolor; | ||
| 1484 | $supswigb->{_note} = | ||
| 1485 | $supswigb->{_note} . ' labelcolor=' . $supswigb->{_labelcolor}; | ||
| 1486 | $supswigb->{_Step} = | ||
| 1487 | $supswigb->{_Step} . ' labelcolor=' . $supswigb->{_labelcolor}; | ||
| 1488 | |||
| 1489 | } | ||
| 1490 | else { | ||
| 1491 | print("supswigb,missing labelcolor,\n"); | ||
| 1492 | } | ||
| 1493 | } | ||
| 1494 | |||
| 1495 | =head2 sub labelfont | ||
| 1496 | |||
| 1497 | A. Sivil 091718 | ||
| 1498 | Changes font for label | ||
| 1499 | |||
| 1500 | =cut | ||
| 1501 | |||
| 1502 | sub labelfont { | ||
| 1503 | |||
| 1504 | my ( $self, $labelfont ) = @_; | ||
| 1505 | if ( $labelfont ne $empty_string ) { | ||
| 1506 | |||
| 1507 | $supswigb->{_labelfont} = $labelfont; | ||
| 1508 | $supswigb->{_note} = | ||
| 1509 | $supswigb->{_note} . ' labelfont=' . $supswigb->{_labelfont}; | ||
| 1510 | $supswigb->{_Step} = | ||
| 1511 | $supswigb->{_Step} . ' labelfont=' . $supswigb->{_labelfont}; | ||
| 1512 | |||
| 1513 | } | ||
| 1514 | else { | ||
| 1515 | print("supswigb,missing labelfont,\n"); | ||
| 1516 | } | ||
| 1517 | } | ||
| 1518 | |||
| 1519 | =head2 sub lo_clip | ||
| 1520 | |||
| 1521 | |||
| 1522 | =cut | ||
| 1523 | |||
| 1524 | sub lo_clip { | ||
| 1525 | |||
| 1526 | my ( $self, $key ) = @_; | ||
| 1527 | if ( $key ne $empty_string ) { | ||
| 1528 | |||
| 1529 | $supswigb->{_key} = $key; | ||
| 1530 | $supswigb->{_note} = $supswigb->{_note} . ' wclip=' . $supswigb->{_key}; | ||
| 1531 | $supswigb->{_Step} = $supswigb->{_Step} . ' wclip=' . $supswigb->{_key}; | ||
| 1532 | |||
| 1533 | } | ||
| 1534 | else { | ||
| 1535 | print("supswigb, lo_clip, missing key,\n"); | ||
| 1536 | } | ||
| 1537 | } | ||
| 1538 | |||
| 1539 | =head2 sub loclip | ||
| 1540 | |||
| 1541 | |||
| 1542 | =cut | ||
| 1543 | |||
| 1544 | sub loclip { | ||
| 1545 | |||
| 1546 | my ( $self, $key ) = @_; | ||
| 1547 | if ( $key ne $empty_string ) { | ||
| 1548 | |||
| 1549 | $supswigb->{_key} = $key; | ||
| 1550 | $supswigb->{_note} = $supswigb->{_note} . ' wclip=' . $supswigb->{_key}; | ||
| 1551 | $supswigb->{_Step} = $supswigb->{_Step} . ' wclip=' . $supswigb->{_key}; | ||
| 1552 | |||
| 1553 | } | ||
| 1554 | else { | ||
| 1555 | print("supswigb, loclip, missing key,\n"); | ||
| 1556 | } | ||
| 1557 | } | ||
| 1558 | |||
| 1559 | =head2 sub mpicks | ||
| 1560 | |||
| 1561 | G. Bonot 091718 | ||
| 1562 | Input a file name to which your mouse clicks are to be saved. No visible change observed in xwigb | ||
| 1563 | |||
| 1564 | =cut | ||
| 1565 | |||
| 1566 | sub mpicks { | ||
| 1567 | |||
| 1568 | my ( $self, $mpicks ) = @_; | ||
| 1569 | if ( $mpicks ne $empty_string ) { | ||
| 1570 | |||
| 1571 | $supswigb->{_mpicks} = $mpicks; | ||
| 1572 | $supswigb->{_note} = | ||
| 1573 | $supswigb->{_note} . ' mpicks=' . $supswigb->{_mpicks}; | ||
| 1574 | $supswigb->{_Step} = | ||
| 1575 | $supswigb->{_Step} . ' mpicks=' . $supswigb->{_mpicks}; | ||
| 1576 | |||
| 1577 | } | ||
| 1578 | else { | ||
| 1579 | print("supswigb,missing mpicks,\n"); | ||
| 1580 | } | ||
| 1581 | } | ||
| 1582 | |||
| 1583 | =head2 sub n1 | ||
| 1584 | |||
| 1585 | =cut | ||
| 1586 | |||
| 1587 | sub n1 { | ||
| 1588 | |||
| 1589 | my ( $self, $n1 ) = @_; | ||
| 1590 | if ( $n1 ne $empty_string ) { | ||
| 1591 | |||
| 1592 | $supswigb->{_n1} = $n1; | ||
| 1593 | $supswigb->{_note} = $supswigb->{_note} . ' n1=' . $supswigb->{_n1}; | ||
| 1594 | $supswigb->{_Step} = $supswigb->{_Step} . ' n1=' . $supswigb->{_n1}; | ||
| 1595 | |||
| 1596 | } | ||
| 1597 | else { | ||
| 1598 | print("supswigb,missing n1,\n"); | ||
| 1599 | } | ||
| 1600 | } | ||
| 1601 | |||
| 1602 | =head2 sub n1tic | ||
| 1603 | |||
| 1604 | subs n1tic and num_minor_ticks_betw_time_ticks | ||
| 1605 | |||
| 1606 | n1tic=1 number of minor ticks shwon between each | ||
| 1607 | of the numbered ticks on axis 1 (usually time and pointing down) | ||
| 1608 | |||
| 1609 | Kenny Lau | ||
| 1610 | 16 Sept 2018 | ||
| 1611 | Breaks down one tick into X number of minor ticks | ||
| 1612 | |||
| 1613 | =cut | ||
| 1614 | |||
| 1615 | sub n1tic { | ||
| 1616 | |||
| 1617 | my ( $self, $n1tic ) = @_; | ||
| 1618 | if ( $n1tic ne $empty_string ) { | ||
| 1619 | |||
| 1620 | $supswigb->{_n1tic} = $n1tic; | ||
| 1621 | $supswigb->{_note} = | ||
| 1622 | $supswigb->{_note} . ' n1tic=' . $supswigb->{_n1tic}; | ||
| 1623 | $supswigb->{_Step} = | ||
| 1624 | $supswigb->{_Step} . ' n1tic=' . $supswigb->{_n1tic}; | ||
| 1625 | |||
| 1626 | } | ||
| 1627 | else { | ||
| 1628 | print("supswigb,missing n1tic,\n"); | ||
| 1629 | } | ||
| 1630 | } | ||
| 1631 | |||
| 1632 | =head2 sub n2 | ||
| 1633 | |||
| 1634 | |||
| 1635 | =cut | ||
| 1636 | |||
| 1637 | sub n2 { | ||
| 1638 | |||
| 1639 | my ( $self, $n2 ) = @_; | ||
| 1640 | if ( $n2 ne $empty_string ) { | ||
| 1641 | |||
| 1642 | $supswigb->{_n2} = $n2; | ||
| 1643 | $supswigb->{_note} = $supswigb->{_note} . ' n2=' . $supswigb->{_n2}; | ||
| 1644 | $supswigb->{_Step} = $supswigb->{_Step} . ' n2=' . $supswigb->{_n2}; | ||
| 1645 | |||
| 1646 | } | ||
| 1647 | else { | ||
| 1648 | print("supswigb, n2, missing n2,\n"); | ||
| 1649 | } | ||
| 1650 | } | ||
| 1651 | |||
| 1652 | =head2 ssubs n2tic and num_minor_ticks_betw_distance_ticks | ||
| 1653 | |||
| 1654 | n2tic=1 number of minor ticks shwon between each | ||
| 1655 | of the numbered ticks on axis 1 (usually time and pointing down) | ||
| 1656 | |||
| 1657 | A. Sivil 091718 | ||
| 1658 | Adds minor ticks between each numbered tick on axis 1 | ||
| 1659 | |||
| 1660 | =cut | ||
| 1661 | |||
| 1662 | sub n2tic { | ||
| 1663 | |||
| 1664 | my ( $self, $n2tic ) = @_; | ||
| 1665 | if ( $n2tic ne $empty_string ) { | ||
| 1666 | |||
| 1667 | $supswigb->{_n2tic} = $n2tic; | ||
| 1668 | $supswigb->{_note} = | ||
| 1669 | $supswigb->{_note} . ' n2tic=' . $supswigb->{_n2tic}; | ||
| 1670 | $supswigb->{_Step} = | ||
| 1671 | $supswigb->{_Step} . ' n2tic=' . $supswigb->{_n2tic}; | ||
| 1672 | |||
| 1673 | } | ||
| 1674 | else { | ||
| 1675 | print("supswigb,missing n2tic,\n"); | ||
| 1676 | } | ||
| 1677 | } | ||
| 1678 | |||
| 1679 | =head2 sub nbpi | ||
| 1680 | |||
| 1681 | =cut | ||
| 1682 | |||
| 1683 | sub nbpi { | ||
| 1684 | |||
| 1685 | my ( $self, $nbpi) = @_; | ||
| 1686 | |||
| 1687 | if ( $nbpi eq $empty_string ) { | ||
| 1688 | |||
| 1689 | $supswigb->{_nbpi} = $nbpi; | ||
| 1690 | $supswigb->{_note} = | ||
| 1691 | $supswigb->{_note} . ' nbpi=' . $supswigb->{_nbpi}; | ||
| 1692 | $supswigb->{_Step} = | ||
| 1693 | $supswigb->{_Step} . ' nbpi=' . $supswigb->{_nbpi}; | ||
| 1694 | |||
| 1695 | } | ||
| 1696 | else { | ||
| 1697 | print("supswigb,missing nbpi,\n"); | ||
| 1698 | } | ||
| 1699 | } | ||
| 1700 | |||
| 1701 | =head2 sub npair | ||
| 1702 | |||
| 1703 | |||
| 1704 | =cut | ||
| 1705 | |||
| 1706 | sub npair { | ||
| 1707 | |||
| 1708 | my ( $self, $npair ) = @_; | ||
| 1709 | if ( $npair ne $empty_string ) { | ||
| 1710 | |||
| 1711 | $supswigb->{_npair} = $npair; | ||
| 1712 | $supswigb->{_note} = | ||
| 1713 | $supswigb->{_note} . ' npair=' . $supswigb->{_npair}; | ||
| 1714 | $supswigb->{_Step} = | ||
| 1715 | $supswigb->{_Step} . ' npair=' . $supswigb->{_npair}; | ||
| 1716 | |||
| 1717 | } | ||
| 1718 | else { | ||
| 1719 | print("supswigb,missing npair,\n"); | ||
| 1720 | } | ||
| 1721 | } | ||
| 1722 | |||
| 1723 | =head2 ssubs n2tic and num_minor_ticks_betw_distance_ticks | ||
| 1724 | |||
| 1725 | n2tic=1 number of minor ticks shwon between each | ||
| 1726 | of the numbered ticks on axis 1 (usually time and pointing down) | ||
| 1727 | |||
| 1728 | A. Sivil 091718 | ||
| 1729 | Adds minor ticks between each numbered tick on axis 1 | ||
| 1730 | |||
| 1731 | =cut | ||
| 1732 | |||
| 1733 | sub num_minor_ticks_betw_distance_ticks { | ||
| 1734 | |||
| 1735 | my ( $self, $n2tic ) = @_; | ||
| 1736 | if ( $n2tic ne $empty_string ) { | ||
| 1737 | |||
| 1738 | $supswigb->{_n2tic} = $n2tic; | ||
| 1739 | $supswigb->{_note} = | ||
| 1740 | $supswigb->{_note} . ' n2tic=' . $supswigb->{_n2tic}; | ||
| 1741 | $supswigb->{_Step} = | ||
| 1742 | $supswigb->{_Step} . ' n2tic=' . $supswigb->{_n2tic}; | ||
| 1743 | |||
| 1744 | } | ||
| 1745 | else { | ||
| 1746 | print("supswigb,num_minor_ticks_betw_distance_ticks, missing n2tic,\n"); | ||
| 1747 | } | ||
| 1748 | } | ||
| 1749 | |||
| 1750 | =head2 sub num_minor_ticks_betw_time_ticks | ||
| 1751 | |||
| 1752 | subs n1tic and num_minor_ticks_betw_time_ticks | ||
| 1753 | |||
| 1754 | n1tic=1 number of minor ticks shwon between each | ||
| 1755 | of the numbered ticks on axis 1 (usually time and pointing down) | ||
| 1756 | |||
| 1757 | Kenny Lau | ||
| 1758 | 16 Sept 2018 | ||
| 1759 | Breaks down one tick into X number of minor ticks | ||
| 1760 | |||
| 1761 | =cut | ||
| 1762 | |||
| 1763 | sub num_minor_ticks_betw_time_ticks { | ||
| 1764 | |||
| 1765 | my ( $self, $n1tic ) = @_; | ||
| 1766 | if ( $n1tic ne $empty_string ) { | ||
| 1767 | |||
| 1768 | $supswigb->{_n1tic} = $n1tic; | ||
| 1769 | $supswigb->{_note} = | ||
| 1770 | $supswigb->{_note} . ' n1tic=' . $supswigb->{_n1tic}; | ||
| 1771 | $supswigb->{_Step} = | ||
| 1772 | $supswigb->{_Step} . ' n1tic=' . $supswigb->{_n1tic}; | ||
| 1773 | |||
| 1774 | } | ||
| 1775 | else { | ||
| 1776 | print("supswigb, num_minor_ticks_betw_time_ticks, missing n1tic,\n"); | ||
| 1777 | } | ||
| 1778 | } | ||
| 1779 | |||
| 1780 | =head2 sub orientation | ||
| 1781 | |||
| 1782 | seismic style of plotting (time axis pointing down) | ||
| 1783 | versus mathematical ( y axis up) | ||
| 1784 | |||
| 1785 | =cut | ||
| 1786 | |||
| 1787 | sub orientation { | ||
| 1788 | |||
| 1789 | my ( $self, $style ) = @_; | ||
| 1790 | if ( $style ne $empty_string ) { | ||
| 1791 | |||
| 1792 | $supswigb->{_style} = $style; | ||
| 1793 | $supswigb->{_note} = | ||
| 1794 | $supswigb->{_note} . ' style=' . $supswigb->{_style}; | ||
| 1795 | $supswigb->{_Step} = | ||
| 1796 | $supswigb->{_Step} . ' style=' . $supswigb->{_style}; | ||
| 1797 | |||
| 1798 | } | ||
| 1799 | else { | ||
| 1800 | print("supswigb, orientation, missing style,\n"); | ||
| 1801 | } | ||
| 1802 | } | ||
| 1803 | |||
| 1804 | =head2 sub perc | ||
| 1805 | |||
| 1806 | |||
| 1807 | =cut | ||
| 1808 | |||
| 1809 | sub perc { | ||
| 1810 | |||
| 1811 | my ( $self, $perc ) = @_; | ||
| 1812 | if ( $perc ne $empty_string ) { | ||
| 1813 | |||
| 1814 | $supswigb->{_perc} = $perc; | ||
| 1815 | $supswigb->{_note} = $supswigb->{_note} . ' perc=' . $supswigb->{_perc}; | ||
| 1816 | $supswigb->{_Step} = $supswigb->{_Step} . ' perc=' . $supswigb->{_perc}; | ||
| 1817 | |||
| 1818 | } | ||
| 1819 | else { | ||
| 1820 | print("supswigb,missing perc,\n"); | ||
| 1821 | } | ||
| 1822 | } | ||
| 1823 | |||
| 1824 | =head2 sub percent | ||
| 1825 | |||
| 1826 | |||
| 1827 | =cut | ||
| 1828 | |||
| 1829 | sub percent { | ||
| 1830 | |||
| 1831 | my ( $self, $perc ) = @_; | ||
| 1832 | if ( $perc ne $empty_string ) { | ||
| 1833 | |||
| 1834 | $supswigb->{_perc} = $perc; | ||
| 1835 | $supswigb->{_note} = $supswigb->{_note} . ' perc=' . $supswigb->{_perc}; | ||
| 1836 | $supswigb->{_Step} = $supswigb->{_Step} . ' perc=' . $supswigb->{_perc}; | ||
| 1837 | |||
| 1838 | } | ||
| 1839 | else { | ||
| 1840 | print("supswigb,percent, missing perc,\n"); | ||
| 1841 | } | ||
| 1842 | } | ||
| 1843 | |||
| 1844 | =head2 sub picks | ||
| 1845 | |||
| 1846 | automatically generates a pick file | ||
| 1847 | |||
| 1848 | =cut | ||
| 1849 | |||
| 1850 | sub picks { | ||
| 1851 | |||
| 1852 | my ( $self, $mpicks ) = @_; | ||
| 1853 | if ( $mpicks ne $empty_string ) { | ||
| 1854 | |||
| 1855 | # print("supswigb, picks, file_name is: $mpicks\n"); | ||
| 1856 | |||
| 1857 | $supswigb->{_mpicks} = $mpicks; | ||
| 1858 | $supswigb->{_note} = | ||
| 1859 | $supswigb->{_note} . ' mpicks=' . $supswigb->{_mpicks}; | ||
| 1860 | $supswigb->{_Step} = | ||
| 1861 | $supswigb->{_Step} . ' mpicks=' . $supswigb->{_mpicks}; | ||
| 1862 | |||
| 1863 | } | ||
| 1864 | else { | ||
| 1865 | print("supswigb,picks, missing mpicks,\n"); | ||
| 1866 | } | ||
| 1867 | } | ||
| 1868 | |||
| 1869 | =head2 sub plotfile | ||
| 1870 | |||
| 1871 | |||
| 1872 | =cut | ||
| 1873 | |||
| 1874 | sub plotfile { | ||
| 1875 | |||
| 1876 | my ( $self, $plotfile ) = @_; | ||
| 1877 | if ( $plotfile ne $empty_string ) { | ||
| 1878 | |||
| 1879 | $supswigb->{_plotfile} = $plotfile; | ||
| 1880 | $supswigb->{_note} = | ||
| 1881 | $supswigb->{_note} . ' plotfile=' . $supswigb->{_plotfile}; | ||
| 1882 | $supswigb->{_Step} = | ||
| 1883 | $supswigb->{_Step} . ' plotfile=' . $supswigb->{_plotfile}; | ||
| 1884 | |||
| 1885 | } | ||
| 1886 | else { | ||
| 1887 | print("supswigb,missing plotfile,\n"); | ||
| 1888 | } | ||
| 1889 | } | ||
| 1890 | |||
| 1891 | =head2 sub shading | ||
| 1892 | plot data using a variable area scheme | ||
| 1893 | also sub shading | ||
| 1894 | Rachel Gnieski 091718 | ||
| 1895 | Plot data using a variable area scheme: Should change the shading of the plot | ||
| 1896 | background by inputting a value between 2 and 5 but could not get it to function | ||
| 1897 | |||
| 1898 | =cut | ||
| 1899 | |||
| 1900 | sub shading { | ||
| 1901 | |||
| 1902 | my ( $self, $va ) = @_; | ||
| 1903 | if ( $va ne $empty_string ) { | ||
| 1904 | |||
| 1905 | $supswigb->{_va} = $va; | ||
| 1906 | $supswigb->{_note} = $supswigb->{_note} . ' va=' . $supswigb->{_va}; | ||
| 1907 | $supswigb->{_Step} = $supswigb->{_Step} . ' va=' . $supswigb->{_va}; | ||
| 1908 | |||
| 1909 | } | ||
| 1910 | else { | ||
| 1911 | print("supswigb,shading, missing va\n"); | ||
| 1912 | } | ||
| 1913 | } | ||
| 1914 | |||
| 1915 | =head2 sub style | ||
| 1916 | |||
| 1917 | seismic style of plotting (time axis pointing down) | ||
| 1918 | versus mathematical ( y axis up) | ||
| 1919 | |||
| 1920 | =cut | ||
| 1921 | |||
| 1922 | sub style { | ||
| 1923 | |||
| 1924 | my ( $self, $style ) = @_; | ||
| 1925 | if ( $style ne $empty_string ) { | ||
| 1926 | |||
| 1927 | $supswigb->{_style} = $style; | ||
| 1928 | $supswigb->{_note} = | ||
| 1929 | $supswigb->{_note} . ' style=' . $supswigb->{_style}; | ||
| 1930 | $supswigb->{_Step} = | ||
| 1931 | $supswigb->{_Step} . ' style=' . $supswigb->{_style}; | ||
| 1932 | |||
| 1933 | } | ||
| 1934 | else { | ||
| 1935 | print("supswigb, style, missing style,\n"); | ||
| 1936 | } | ||
| 1937 | } | ||
| 1938 | |||
| 1939 | =head2 sub title | ||
| 1940 | |||
| 1941 | allows for a default graph title ($on) or | ||
| 1942 | a user-defined title | ||
| 1943 | |||
| 1944 | =cut | ||
| 1945 | |||
| 1946 | sub title { | ||
| 1947 | |||
| 1948 | my ( $self, $title ) = @_; | ||
| 1949 | if ( $title ne $empty_string ) { | ||
| 1950 | |||
| 1951 | $supswigb->{_title} = $title; | ||
| 1952 | $supswigb->{_note} = | ||
| 1953 | $supswigb->{_note} . ' title=' . $supswigb->{_title}; | ||
| 1954 | $supswigb->{_Step} = | ||
| 1955 | $supswigb->{_Step} . ' title=' . $supswigb->{_title}; | ||
| 1956 | |||
| 1957 | } | ||
| 1958 | else { | ||
| 1959 | print("supswigb,missing title,\n"); | ||
| 1960 | } | ||
| 1961 | } | ||
| 1962 | |||
| 1963 | =head2 sub titlecolor | ||
| 1964 | |||
| 1965 | allows for a default graph title ($on) or | ||
| 1966 | a user-defined title | ||
| 1967 | |||
| 1968 | =cut | ||
| 1969 | |||
| 1970 | sub titlecolor { | ||
| 1971 | |||
| 1972 | my ( $self, $titlecolor ) = @_; | ||
| 1973 | if ( $titlecolor ne $empty_string ) { | ||
| 1974 | |||
| 1975 | $supswigb->{_titlecolor} = $titlecolor; | ||
| 1976 | $supswigb->{_note} = | ||
| 1977 | $supswigb->{_note} . ' titlecolor=' . $supswigb->{_titlecolor}; | ||
| 1978 | $supswigb->{_Step} = | ||
| 1979 | $supswigb->{_Step} . ' titlecolor=' . $supswigb->{_titlecolor}; | ||
| 1980 | |||
| 1981 | } | ||
| 1982 | else { | ||
| 1983 | print("supswigb,missing titlecolor,\n"); | ||
| 1984 | } | ||
| 1985 | } | ||
| 1986 | |||
| 1987 | =head2 sub titlefont | ||
| 1988 | |||
| 1989 | |||
| 1990 | =cut | ||
| 1991 | |||
| 1992 | sub titlefont { | ||
| 1993 | |||
| 1994 | my ( $self, $titlefont ) = @_; | ||
| 1995 | if ( $titlefont ne $empty_string ) { | ||
| 1996 | |||
| 1997 | $supswigb->{_titlefont} = $titlefont; | ||
| 1998 | $supswigb->{_note} = | ||
| 1999 | $supswigb->{_note} . ' titlefont=' . $supswigb->{_titlefont}; | ||
| 2000 | $supswigb->{_Step} = | ||
| 2001 | $supswigb->{_Step} . ' titlefont=' . $supswigb->{_titlefont}; | ||
| 2002 | |||
| 2003 | } | ||
| 2004 | else { | ||
| 2005 | print("supswigb,missing titlefont,\n"); | ||
| 2006 | } | ||
| 2007 | } | ||
| 2008 | |||
| 2009 | =head2 sub titlesize | ||
| 2010 | |||
| 2011 | |||
| 2012 | =cut | ||
| 2013 | |||
| 2014 | sub titlesize { | ||
| 2015 | |||
| 2016 | my ( $self, $titlesize ) = @_; | ||
| 2017 | if ( $titlesize ne $empty_string ) { | ||
| 2018 | |||
| 2019 | $supswigb->{_titlesize} = $titlesize; | ||
| 2020 | $supswigb->{_note} = | ||
| 2021 | $supswigb->{_note} . ' titlesize=' . $supswigb->{_titlesize}; | ||
| 2022 | $supswigb->{_Step} = | ||
| 2023 | $supswigb->{_Step} . ' titlesize=' . $supswigb->{_titlesize}; | ||
| 2024 | |||
| 2025 | } | ||
| 2026 | else { | ||
| 2027 | print("supswigb,missing titlesize,\n"); | ||
| 2028 | } | ||
| 2029 | } | ||
| 2030 | |||
| 2031 | =head2 sub tmpdir | ||
| 2032 | |||
| 2033 | |||
| 2034 | =cut | ||
| 2035 | |||
| 2036 | sub tmpdir { | ||
| 2037 | |||
| 2038 | my ( $self, $tmpdir ) = @_; | ||
| 2039 | if ( $tmpdir ne $empty_string ) { | ||
| 2040 | |||
| 2041 | $supswigb->{_tmpdir} = $tmpdir; | ||
| 2042 | $supswigb->{_note} = | ||
| 2043 | $supswigb->{_note} . ' tmpdir=' . $supswigb->{_tmpdir}; | ||
| 2044 | $supswigb->{_Step} = | ||
| 2045 | $supswigb->{_Step} . ' tmpdir=' . $supswigb->{_tmpdir}; | ||
| 2046 | |||
| 2047 | } | ||
| 2048 | else { | ||
| 2049 | print("supswigb, tmpdir, missing tmpdir,\n"); | ||
| 2050 | } | ||
| 2051 | } | ||
| 2052 | |||
| 2053 | =head2 subs trace_inc trace_inc_m, dx and d2 | ||
| 2054 | |||
| 2055 | increment in fast dimension | ||
| 2056 | usually time and equal to dt | ||
| 2057 | |||
| 2058 | only the first trace is read in | ||
| 2059 | if an increment is not 1 between traces | ||
| 2060 | you should indicate here | ||
| 2061 | |||
| 2062 | distance increment between traces | ||
| 2063 | |||
| 2064 | =cut | ||
| 2065 | |||
| 2066 | sub trace_inc { | ||
| 2067 | |||
| 2068 | my ( $self, $d2 ) = @_; | ||
| 2069 | if ( $d2 ne $empty_string ) { | ||
| 2070 | |||
| 2071 | $supswigb->{_d2} = $d2; | ||
| 2072 | $supswigb->{_note} = $supswigb->{_note} . ' d2=' . $supswigb->{_d2}; | ||
| 2073 | $supswigb->{_Step} = $supswigb->{_Step} . ' d2=' . $supswigb->{_d2}; | ||
| 2074 | |||
| 2075 | } | ||
| 2076 | else { | ||
| 2077 | print("supswigb, trace_inc, missing d2,\n"); | ||
| 2078 | } | ||
| 2079 | } | ||
| 2080 | |||
| 2081 | =head2 subs trace_inc trace_inc_m, dx and d2 | ||
| 2082 | |||
| 2083 | increment in fast dimension | ||
| 2084 | usually time and equal to dt | ||
| 2085 | |||
| 2086 | only the first trace is read in | ||
| 2087 | if an increment is not 1 between traces | ||
| 2088 | you should indicate here | ||
| 2089 | |||
| 2090 | distance increment between traces | ||
| 2091 | |||
| 2092 | =cut | ||
| 2093 | |||
| 2094 | sub trace_inc_m { | ||
| 2095 | |||
| 2096 | my ( $self, $d2 ) = @_; | ||
| 2097 | if ( $d2 ne $empty_string ) { | ||
| 2098 | |||
| 2099 | $supswigb->{_d2} = $d2; | ||
| 2100 | $supswigb->{_note} = $supswigb->{_note} . ' d2=' . $supswigb->{_d2}; | ||
| 2101 | $supswigb->{_Step} = $supswigb->{_Step} . ' d2=' . $supswigb->{_d2}; | ||
| 2102 | |||
| 2103 | } | ||
| 2104 | else { | ||
| 2105 | print("supswigb, trace_inc_m, missing d2,\n"); | ||
| 2106 | } | ||
| 2107 | } | ||
| 2108 | |||
| 2109 | =head2 sub tend_s | ||
| 2110 | |||
| 2111 | minimum value of yaxis (time usually) in seconds | ||
| 2112 | |||
| 2113 | =cut | ||
| 2114 | |||
| 2115 | sub tend_s { | ||
| 2116 | |||
| 2117 | my ( $self, $x1end ) = @_; | ||
| 2118 | if ( $x1end ne $empty_string ) { | ||
| 2119 | |||
| 2120 | $supswigb->{_x1end} = $x1end; | ||
| 2121 | $supswigb->{_note} = | ||
| 2122 | $supswigb->{_note} . ' x1end=' . $supswigb->{_x1end}; | ||
| 2123 | $supswigb->{_Step} = | ||
| 2124 | $supswigb->{_Step} . ' x1end=' . $supswigb->{_x1end}; | ||
| 2125 | |||
| 2126 | } | ||
| 2127 | else { | ||
| 2128 | print("supswigb,tend_s, missing x1end,\n"); | ||
| 2129 | } | ||
| 2130 | } | ||
| 2131 | |||
| 2132 | =head2 sub tstart_s | ||
| 2133 | |||
| 2134 | minimum value of yaxis (time usually) in seconds | ||
| 2135 | |||
| 2136 | =cut | ||
| 2137 | |||
| 2138 | sub tstart_s { | ||
| 2139 | |||
| 2140 | my ( $self, $x1beg ) = @_; | ||
| 2141 | if ( $x1beg ne $empty_string ) { | ||
| 2142 | |||
| 2143 | $supswigb->{_x1beg} = $x1beg; | ||
| 2144 | $supswigb->{_note} = | ||
| 2145 | $supswigb->{_note} . ' x1beg=' . $supswigb->{_x1beg}; | ||
| 2146 | $supswigb->{_Step} = | ||
| 2147 | $supswigb->{_Step} . ' x1beg=' . $supswigb->{_x1beg}; | ||
| 2148 | |||
| 2149 | } | ||
| 2150 | else { | ||
| 2151 | print("supswigb,tstart_s, missing x1beg,\n"); | ||
| 2152 | } | ||
| 2153 | } | ||
| 2154 | |||
| 2155 | =head2 sub va | ||
| 2156 | |||
| 2157 | plot data using a variable area scheme | ||
| 2158 | also sub shading | ||
| 2159 | Rachel Gnieski 091718 | ||
| 2160 | Plot data using a variable area scheme: Should change the shading of the plot | ||
| 2161 | background by inputting a value between 2 and 5 but could not get it to function | ||
| 2162 | |||
| 2163 | =cut | ||
| 2164 | |||
| 2165 | sub va { | ||
| 2166 | |||
| 2167 | my ( $self, $va ) = @_; | ||
| 2168 | if ( $va ne $empty_string ) { | ||
| 2169 | |||
| 2170 | $supswigb->{_va} = $va; | ||
| 2171 | $supswigb->{_note} = $supswigb->{_note} . ' va=' . $supswigb->{_va}; | ||
| 2172 | $supswigb->{_Step} = $supswigb->{_Step} . ' va=' . $supswigb->{_va}; | ||
| 2173 | |||
| 2174 | } | ||
| 2175 | else { | ||
| 2176 | print("supswigb,missing va,\n"); | ||
| 2177 | } | ||
| 2178 | } | ||
| 2179 | |||
| 2180 | =head2 sub verbose | ||
| 2181 | |||
| 2182 | |||
| 2183 | =cut | ||
| 2184 | |||
| 2185 | sub verbose { | ||
| 2186 | |||
| 2187 | my ( $self, $verbose ) = @_; | ||
| 2188 | if ( $verbose ne $empty_string ) { | ||
| 2189 | |||
| 2190 | $supswigb->{_verbose} = $verbose; | ||
| 2191 | $supswigb->{_note} = | ||
| 2192 | $supswigb->{_note} . ' verbose=' . $supswigb->{_verbose}; | ||
| 2193 | $supswigb->{_Step} = | ||
| 2194 | $supswigb->{_Step} . ' verbose=' . $supswigb->{_verbose}; | ||
| 2195 | |||
| 2196 | } | ||
| 2197 | else { | ||
| 2198 | print("supswigb, verbose, missing verbose,\n"); | ||
| 2199 | } | ||
| 2200 | } | ||
| 2201 | |||
| 2202 | =head2 sub wbox | ||
| 2203 | |||
| 2204 | |||
| 2205 | =cut | ||
| 2206 | |||
| 2207 | sub wbox { | ||
| 2208 | |||
| 2209 | my ( $self, $wbox ) = @_; | ||
| 2210 | if ( $wbox ne $empty_string ) { | ||
| 2211 | |||
| 2212 | $supswigb->{_wbox} = $wbox; | ||
| 2213 | $supswigb->{_note} = $supswigb->{_note} . ' wbox=' . $supswigb->{_wbox}; | ||
| 2214 | $supswigb->{_Step} = $supswigb->{_Step} . ' wbox=' . $supswigb->{_wbox}; | ||
| 2215 | |||
| 2216 | } | ||
| 2217 | else { | ||
| 2218 | print("supswigb,missing wbox,\n"); | ||
| 2219 | } | ||
| 2220 | } | ||
| 2221 | |||
| 2222 | =head2 sub wclip | ||
| 2223 | |||
| 2224 | |||
| 2225 | =cut | ||
| 2226 | |||
| 2227 | sub wclip { | ||
| 2228 | |||
| 2229 | my ( $self, $wclip ) = @_; | ||
| 2230 | if ( $wclip ne $empty_string ) { | ||
| 2231 | |||
| 2232 | $supswigb->{_wclip} = $wclip; | ||
| 2233 | $supswigb->{_note} = | ||
| 2234 | $supswigb->{_note} . ' wclip=' . $supswigb->{_wclip}; | ||
| 2235 | $supswigb->{_Step} = | ||
| 2236 | $supswigb->{_Step} . ' wclip=' . $supswigb->{_wclip}; | ||
| 2237 | |||
| 2238 | } | ||
| 2239 | else { | ||
| 2240 | print("supswigb, wclip, missing wclip,\n"); | ||
| 2241 | } | ||
| 2242 | } | ||
| 2243 | |||
| 2244 | =head2 sub wigclip | ||
| 2245 | |||
| 2246 | |||
| 2247 | =cut | ||
| 2248 | |||
| 2249 | sub wigclip { | ||
| 2250 | |||
| 2251 | my ( $self, $wigclip ) = @_; | ||
| 2252 | if ( $wigclip ne $empty_string ) { | ||
| 2253 | |||
| 2254 | $supswigb->{_wigclip} = $wigclip; | ||
| 2255 | $supswigb->{_note} = | ||
| 2256 | $supswigb->{_note} . ' wigclip=' . $supswigb->{_wigclip}; | ||
| 2257 | $supswigb->{_Step} = | ||
| 2258 | $supswigb->{_Step} . ' wigclip=' . $supswigb->{_wigclip}; | ||
| 2259 | |||
| 2260 | } | ||
| 2261 | else { | ||
| 2262 | print("supswigb,missing wigclip,\n"); | ||
| 2263 | } | ||
| 2264 | } | ||
| 2265 | |||
| 2266 | =head2 sub windowtitle | ||
| 2267 | |||
| 2268 | |||
| 2269 | =cut | ||
| 2270 | |||
| 2271 | sub windowtitle { | ||
| 2272 | |||
| 2273 | my ( $self, $windowtitle ) = @_; | ||
| 2274 | if ( $windowtitle ne $empty_string ) { | ||
| 2275 | |||
| 2276 | $supswigb->{_windowtitle} = $windowtitle; | ||
| 2277 | $supswigb->{_note} = | ||
| 2278 | $supswigb->{_note} . ' windowtitle=' . $supswigb->{_windowtitle}; | ||
| 2279 | $supswigb->{_Step} = | ||
| 2280 | $supswigb->{_Step} . ' windowtitle=' . $supswigb->{_windowtitle}; | ||
| 2281 | |||
| 2282 | } | ||
| 2283 | else { | ||
| 2284 | print("supswigb,missing windowtitle,\n"); | ||
| 2285 | } | ||
| 2286 | } | ||
| 2287 | |||
| 2288 | =head2 sub wt | ||
| 2289 | |||
| 2290 | |||
| 2291 | =cut | ||
| 2292 | |||
| 2293 | sub wt { | ||
| 2294 | |||
| 2295 | my ( $self, $wt ) = @_; | ||
| 2296 | if ( $wt ne $empty_string ) { | ||
| 2297 | |||
| 2298 | $supswigb->{_wt} = $wt; | ||
| 2299 | $supswigb->{_note} = $supswigb->{_note} . ' wt=' . $supswigb->{_wt}; | ||
| 2300 | $supswigb->{_Step} = $supswigb->{_Step} . ' wt=' . $supswigb->{_wt}; | ||
| 2301 | |||
| 2302 | } | ||
| 2303 | else { | ||
| 2304 | print("supswigb,missing wt,\n"); | ||
| 2305 | } | ||
| 2306 | } | ||
| 2307 | |||
| 2308 | =head2 sub x1beg | ||
| 2309 | |||
| 2310 | minimum value of yaxis (time usually) in seconds | ||
| 2311 | |||
| 2312 | =cut | ||
| 2313 | |||
| 2314 | sub x1beg { | ||
| 2315 | |||
| 2316 | my ( $self, $x1beg ) = @_; | ||
| 2317 | if ( $x1beg ne $empty_string ) { | ||
| 2318 | |||
| 2319 | $supswigb->{_x1beg} = $x1beg; | ||
| 2320 | $supswigb->{_note} = | ||
| 2321 | $supswigb->{_note} . ' x1beg=' . $supswigb->{_x1beg}; | ||
| 2322 | $supswigb->{_Step} = | ||
| 2323 | $supswigb->{_Step} . ' x1beg=' . $supswigb->{_x1beg}; | ||
| 2324 | |||
| 2325 | } | ||
| 2326 | else { | ||
| 2327 | print("supswigb,missing x1beg,\n"); | ||
| 2328 | } | ||
| 2329 | } | ||
| 2330 | |||
| 2331 | =head2 sub x1end | ||
| 2332 | |||
| 2333 | minimum value of yaxis (time usually) in seconds | ||
| 2334 | |||
| 2335 | =cut | ||
| 2336 | |||
| 2337 | sub x1end { | ||
| 2338 | |||
| 2339 | my ( $self, $x1end ) = @_; | ||
| 2340 | if ( $x1end ne $empty_string ) { | ||
| 2341 | |||
| 2342 | $supswigb->{_x1end} = $x1end; | ||
| 2343 | $supswigb->{_note} = | ||
| 2344 | $supswigb->{_note} . ' x1end=' . $supswigb->{_x1end}; | ||
| 2345 | $supswigb->{_Step} = | ||
| 2346 | $supswigb->{_Step} . ' x1end=' . $supswigb->{_x1end}; | ||
| 2347 | |||
| 2348 | } | ||
| 2349 | else { | ||
| 2350 | print("supswigb,missing x1end,\n"); | ||
| 2351 | } | ||
| 2352 | } | ||
| 2353 | |||
| 2354 | =head2 sub x2 | ||
| 2355 | |||
| 2356 | G. Bonot 091718 | ||
| 2357 | Lists array of values in the second dimension; displays one isolated sample value | ||
| 2358 | in different of the input value | ||
| 2359 | |||
| 2360 | |||
| 2361 | =cut | ||
| 2362 | |||
| 2363 | sub x2 { | ||
| 2364 | |||
| 2365 | my ( $self, $x2 ) = @_; | ||
| 2366 | if ( $x2 ne $empty_string ) { | ||
| 2367 | |||
| 2368 | $supswigb->{_x2} = $x2; | ||
| 2369 | $supswigb->{_note} = $supswigb->{_note} . ' x2=' . $supswigb->{_x2}; | ||
| 2370 | $supswigb->{_Step} = $supswigb->{_Step} . ' x2=' . $supswigb->{_x2}; | ||
| 2371 | |||
| 2372 | } | ||
| 2373 | else { | ||
| 2374 | print("supswigb,missing x2,\n"); | ||
| 2375 | } | ||
| 2376 | } | ||
| 2377 | |||
| 2378 | =head2 sub x2beg | ||
| 2379 | |||
| 2380 | minimum value of x axis (time usually) in seconds | ||
| 2381 | First value shown on x axis GTL18 | ||
| 2382 | |||
| 2383 | |||
| 2384 | =cut | ||
| 2385 | |||
| 2386 | sub x2beg { | ||
| 2387 | |||
| 2388 | my ( $self, $x2beg ) = @_; | ||
| 2389 | if ( $x2beg ne $empty_string ) { | ||
| 2390 | |||
| 2391 | $supswigb->{_x2beg} = $x2beg; | ||
| 2392 | $supswigb->{_note} = | ||
| 2393 | $supswigb->{_note} . ' x2beg=' . $supswigb->{_x2beg}; | ||
| 2394 | $supswigb->{_Step} = | ||
| 2395 | $supswigb->{_Step} . ' x2beg=' . $supswigb->{_x2beg}; | ||
| 2396 | |||
| 2397 | } | ||
| 2398 | else { | ||
| 2399 | print("supswigb,missing x2beg,\n"); | ||
| 2400 | } | ||
| 2401 | } | ||
| 2402 | |||
| 2403 | =head2 sub x2end | ||
| 2404 | |||
| 2405 | max value of xaxis (distance or traces, usually) in seconds | ||
| 2406 | Last value for data shown on x axis GTL18 | ||
| 2407 | |||
| 2408 | =cut | ||
| 2409 | |||
| 2410 | sub x2end { | ||
| 2411 | |||
| 2412 | my ( $self, $x2end ) = @_; | ||
| 2413 | if ( $x2end ne $empty_string ) { | ||
| 2414 | |||
| 2415 | $supswigb->{_x2end} = $x2end; | ||
| 2416 | $supswigb->{_note} = | ||
| 2417 | $supswigb->{_note} . ' x2end=' . $supswigb->{_x2end}; | ||
| 2418 | $supswigb->{_Step} = | ||
| 2419 | $supswigb->{_Step} . ' x2end=' . $supswigb->{_x2end}; | ||
| 2420 | |||
| 2421 | } | ||
| 2422 | else { | ||
| 2423 | print("supswigb,missing x2end,\n"); | ||
| 2424 | } | ||
| 2425 | } | ||
| 2426 | |||
| 2427 | =head2 sub xbox | ||
| 2428 | |||
| 2429 | Rachel Gnieski 091718 | ||
| 2430 | x pixels fo the upper corner of the window: Changing this value determines where the | ||
| 2431 | graph will open up on the screen based on the horizontal row of pixels | ||
| 2432 | |||
| 2433 | =cut | ||
| 2434 | |||
| 2435 | sub xbox { | ||
| 2436 | |||
| 2437 | my ( $self, $xbox ) = @_; | ||
| 2438 | if ( $xbox ne $empty_string ) { | ||
| 2439 | |||
| 2440 | $supswigb->{_xbox} = $xbox; | ||
| 2441 | $supswigb->{_note} = $supswigb->{_note} . ' xbox=' . $supswigb->{_xbox}; | ||
| 2442 | $supswigb->{_Step} = $supswigb->{_Step} . ' xbox=' . $supswigb->{_xbox}; | ||
| 2443 | |||
| 2444 | } | ||
| 2445 | else { | ||
| 2446 | print("supswigb,missing xbox,\n"); | ||
| 2447 | } | ||
| 2448 | } | ||
| 2449 | |||
| 2450 | =head2 sub xcur | ||
| 2451 | |||
| 2452 | how many adjacent wiggles can be overploted | ||
| 2453 | |||
| 2454 | =cut | ||
| 2455 | |||
| 2456 | sub xcur { | ||
| 2457 | |||
| 2458 | my ( $self, $xcur ) = @_; | ||
| 2459 | if ( $xcur ne $empty_string ) { | ||
| 2460 | |||
| 2461 | $supswigb->{_xcur} = $xcur; | ||
| 2462 | $supswigb->{_note} = $supswigb->{_note} . ' xcur=' . $supswigb->{_xcur}; | ||
| 2463 | $supswigb->{_Step} = $supswigb->{_Step} . ' xcur=' . $supswigb->{_xcur}; | ||
| 2464 | |||
| 2465 | } | ||
| 2466 | else { | ||
| 2467 | print("supswigb,missing xcur,\n"); | ||
| 2468 | } | ||
| 2469 | } | ||
| 2470 | |||
| 2471 | =head2 sub xend_m | ||
| 2472 | |||
| 2473 | |||
| 2474 | =cut | ||
| 2475 | |||
| 2476 | sub xend_m { | ||
| 2477 | |||
| 2478 | my ( $self, $x2end ) = @_; | ||
| 2479 | if ( $x2end ne $empty_string ) { | ||
| 2480 | |||
| 2481 | $supswigb->{_x2end} = $x2end; | ||
| 2482 | $supswigb->{_note} = | ||
| 2483 | $supswigb->{_note} . ' x2end=' . $supswigb->{_x2end}; | ||
| 2484 | $supswigb->{_Step} = | ||
| 2485 | $supswigb->{_Step} . ' x2end=' . $supswigb->{_x2end}; | ||
| 2486 | |||
| 2487 | } | ||
| 2488 | else { | ||
| 2489 | print("supswigb,xend_m, missing x2end,\n"); | ||
| 2490 | } | ||
| 2491 | } | ||
| 2492 | |||
| 2493 | =head2 subs xlabel or label2 ylabel or label1 | ||
| 2494 | |||
| 2495 | |||
| 2496 | =cut | ||
| 2497 | |||
| 2498 | sub xlabel { | ||
| 2499 | |||
| 2500 | my ( $self, $label2 ) = @_; | ||
| 2501 | if ( $label2 ne $empty_string ) { | ||
| 2502 | |||
| 2503 | $supswigb->{_label2} = $label2; | ||
| 2504 | $supswigb->{_note} = | ||
| 2505 | $supswigb->{_note} . ' label2=' . $supswigb->{_label2}; | ||
| 2506 | $supswigb->{_Step} = | ||
| 2507 | $supswigb->{_Step} . ' label2=' . $supswigb->{_label2}; | ||
| 2508 | |||
| 2509 | } | ||
| 2510 | else { | ||
| 2511 | print("supswigb, xlabelmissing label2,\n"); | ||
| 2512 | } | ||
| 2513 | } | ||
| 2514 | |||
| 2515 | =head2 sub xstart_m | ||
| 2516 | |||
| 2517 | |||
| 2518 | =cut | ||
| 2519 | |||
| 2520 | sub xstart_m { | ||
| 2521 | |||
| 2522 | my ( $self, $x2beg ) = @_; | ||
| 2523 | if ( $x2beg ne $empty_string ) { | ||
| 2524 | |||
| 2525 | $supswigb->{_x2beg} = $x2beg; | ||
| 2526 | $supswigb->{_note} = | ||
| 2527 | $supswigb->{_note} . ' x2beg=' . $supswigb->{_x2beg}; | ||
| 2528 | $supswigb->{_Step} = | ||
| 2529 | $supswigb->{_Step} . ' x2beg=' . $supswigb->{_x2beg}; | ||
| 2530 | |||
| 2531 | } | ||
| 2532 | else { | ||
| 2533 | print("supswigb,xstart_m, missing x2beg,\n"); | ||
| 2534 | } | ||
| 2535 | } | ||
| 2536 | |||
| 2537 | =head2 subs d2num dx_major_divisions and x_tick_increment | ||
| 2538 | |||
| 2539 | numbered tick increments along x axis | ||
| 2540 | usually in m and only for display | ||
| 2541 | |||
| 2542 | =cut | ||
| 2543 | |||
| 2544 | sub x_tick_increment { | ||
| 2545 | |||
| 2546 | my ( $self, $d2num ) = @_; | ||
| 2547 | if ( $d2num ne $empty_string ) { | ||
| 2548 | |||
| 2549 | $supswigb->{_d2num} = $d2num; | ||
| 2550 | $supswigb->{_note} = | ||
| 2551 | $supswigb->{_note} . ' d2num=' . $supswigb->{_d2num}; | ||
| 2552 | $supswigb->{_Step} = | ||
| 2553 | $supswigb->{_Step} . ' d2num=' . $supswigb->{_d2num}; | ||
| 2554 | |||
| 2555 | } | ||
| 2556 | else { | ||
| 2557 | print("supswigb,d2num, missing d2num,\n"); | ||
| 2558 | } | ||
| 2559 | } | ||
| 2560 | |||
| 2561 | =head2 sub ybox | ||
| 2562 | |||
| 2563 | Rachel Gnieski 091718 | ||
| 2564 | y pixels for the upper left corner of the window. Changing this value determines | ||
| 2565 | where the graph will open up on the screen based on the vertical column of pixes. | ||
| 2566 | |||
| 2567 | =cut | ||
| 2568 | |||
| 2569 | sub ybox { | ||
| 2570 | |||
| 2571 | my ( $self, $ybox ) = @_; | ||
| 2572 | if ( $ybox ne $empty_string ) { | ||
| 2573 | |||
| 2574 | $supswigb->{_ybox} = $ybox; | ||
| 2575 | $supswigb->{_note} = $supswigb->{_note} . ' ybox=' . $supswigb->{_ybox}; | ||
| 2576 | $supswigb->{_Step} = $supswigb->{_Step} . ' ybox=' . $supswigb->{_ybox}; | ||
| 2577 | |||
| 2578 | } | ||
| 2579 | else { | ||
| 2580 | print("supswigb,missing ybox,\n"); | ||
| 2581 | } | ||
| 2582 | } | ||
| 2583 | |||
| 2584 | =head2 subs ylabel or label1 | ||
| 2585 | |||
| 2586 | |||
| 2587 | =cut | ||
| 2588 | |||
| 2589 | sub ylabel { | ||
| 2590 | |||
| 2591 | my ( $self, $label1 ) = @_; | ||
| 2592 | if ( $label1 ne $empty_string ) { | ||
| 2593 | |||
| 2594 | $supswigb->{_label1} = $label1; | ||
| 2595 | $supswigb->{_note} = | ||
| 2596 | $supswigb->{_note} . ' label1=' . $supswigb->{_label1}; | ||
| 2597 | $supswigb->{_Step} = | ||
| 2598 | $supswigb->{_Step} . ' label1=' . $supswigb->{_label1}; | ||
| 2599 | |||
| 2600 | } | ||
| 2601 | else { | ||
| 2602 | print("supswigb, ylabel, missing label1,\n"); | ||
| 2603 | } | ||
| 2604 | } | ||
| 2605 | |||
| 2606 | =head2 sub y_tick_increment | ||
| 2607 | |||
| 2608 | subs d1num, y_tick_increment dy_major_divisions dt_major_divisions | ||
| 2609 | |||
| 2610 | numbered tick increments along x axis | ||
| 2611 | usually in m and only for display | ||
| 2612 | |||
| 2613 | Kenny Lau | ||
| 2614 | 16 Sept 2018 | ||
| 2615 | Changes the interval between ticks | ||
| 2616 | |||
| 2617 | =cut | ||
| 2618 | |||
| 2619 | sub y_tick_increment { | ||
| 2620 | |||
| 2621 | my ( $self, $d1num ) = @_; | ||
| 2622 | if ( $d1num ne $empty_string ) { | ||
| 2623 | |||
| 2624 | $supswigb->{_d1num} = $d1num; | ||
| 2625 | $supswigb->{_note} = | ||
| 2626 | $supswigb->{_note} . ' d1num=' . $supswigb->{_d1num}; | ||
| 2627 | $supswigb->{_Step} = | ||
| 2628 | $supswigb->{_Step} . ' d1num=' . $supswigb->{_d1num}; | ||
| 2629 | |||
| 2630 | } | ||
| 2631 | else { | ||
| 2632 | print("supswigb,y_tick_increment,missing d1num,\n"); | ||
| 2633 | } | ||
| 2634 | } | ||
| 2635 | |||
| 2636 | |||
| 2637 | =head2 sub axescolor | ||
| 2638 | |||
| 2639 | |||
| 2640 | =cut | ||
| 2641 | |||
| 2642 | sub axescolor { | ||
| 2643 | |||
| 2644 | my ( $self,$axescolor ) = @_; | ||
| 2645 | if ( $axescolor ne $empty_string ) { | ||
| 2646 | |||
| 2647 | $supswigb->{_axescolor} = $axescolor; | ||
| 2648 | $supswigb->{_note} = $supswigb->{_note}.' axescolor='.$supswigb->{_axescolor}; | ||
| 2649 | $supswigb->{_Step} = $supswigb->{_Step}.' axescolor='.$supswigb->{_axescolor}; | ||
| 2650 | |||
| 2651 | } else { | ||
| 2652 | print("pswigb, axescolor, missing axescolor,\n"); | ||
| 2653 | } | ||
| 2654 | } | ||
| 2655 | |||
| 2656 | |||
| 2657 | =head2 sub axeswidth | ||
| 2658 | |||
| 2659 | |||
| 2660 | =cut | ||
| 2661 | |||
| 2662 | sub axeswidth { | ||
| 2663 | |||
| 2664 | my ( $self,$axeswidth ) = @_; | ||
| 2665 | if ( $axeswidth ne $empty_string ) { | ||
| 2666 | |||
| 2667 | $supswigb->{_axeswidth} = $axeswidth; | ||
| 2668 | $supswigb->{_note} = $supswigb->{_note}.' axeswidth='.$supswigb->{_axeswidth}; | ||
| 2669 | $supswigb->{_Step} = $supswigb->{_Step}.' axeswidth='.$supswigb->{_axeswidth}; | ||
| 2670 | |||
| 2671 | } else { | ||
| 2672 | print("pswigb, axeswidth, missing axeswidth,\n"); | ||
| 2673 | } | ||
| 2674 | } | ||
| 2675 | |||
| 2676 | |||
| 2677 | |||
| 2678 | |||
| 2679 | |||
| 2680 | =head2 sub curvedash | ||
| 2681 | |||
| 2682 | |||
| 2683 | =cut | ||
| 2684 | |||
| 2685 | sub curvedash { | ||
| 2686 | |||
| 2687 | my ( $self,$curvedash ) = @_; | ||
| 2688 | if ( $curvedash ne $empty_string ) { | ||
| 2689 | |||
| 2690 | $supswigb->{_curvedash} = $curvedash; | ||
| 2691 | $supswigb->{_note} = $supswigb->{_note}.' curvedash='.$supswigb->{_curvedash}; | ||
| 2692 | $supswigb->{_Step} = $supswigb->{_Step}.' curvedash='.$supswigb->{_curvedash}; | ||
| 2693 | |||
| 2694 | } else { | ||
| 2695 | print("pswigb, curvedash, missing curvedash,\n"); | ||
| 2696 | } | ||
| 2697 | } | ||
| 2698 | |||
| 2699 | |||
| 2700 | |||
| 2701 | |||
| 2702 | |||
| 2703 | =head2 sub curvewidth | ||
| 2704 | |||
| 2705 | |||
| 2706 | =cut | ||
| 2707 | |||
| 2708 | sub curvewidth { | ||
| 2709 | |||
| 2710 | my ( $self,$curvewidth ) = @_; | ||
| 2711 | if ( $curvewidth ne $empty_string ) { | ||
| 2712 | |||
| 2713 | $supswigb->{_curvewidth} = $curvewidth; | ||
| 2714 | $supswigb->{_note} = $supswigb->{_note}.' curvewidth='.$supswigb->{_curvewidth}; | ||
| 2715 | $supswigb->{_Step} = $supswigb->{_Step}.' curvewidth='.$supswigb->{_curvewidth}; | ||
| 2716 | |||
| 2717 | } else { | ||
| 2718 | print("pswigb, curvewidth, missing curvewidth,\n"); | ||
| 2719 | } | ||
| 2720 | } | ||
| 2721 | |||
| 2722 | |||
| 2723 | # | ||
| 2724 | |||
| 2725 | |||
| 2726 | =head2 sub gridwidth | ||
| 2727 | |||
| 2728 | |||
| 2729 | =cut | ||
| 2730 | |||
| 2731 | sub gridwidth { | ||
| 2732 | |||
| 2733 | my ( $self,$gridwidth ) = @_; | ||
| 2734 | if ( $gridwidth ne $empty_string ) { | ||
| 2735 | |||
| 2736 | $supswigb->{_gridwidth} = $gridwidth; | ||
| 2737 | $supswigb->{_note} = $supswigb->{_note}.' gridwidth='.$supswigb->{_gridwidth}; | ||
| 2738 | $supswigb->{_Step} = $supswigb->{_Step}.' gridwidth='.$supswigb->{_gridwidth}; | ||
| 2739 | |||
| 2740 | } else { | ||
| 2741 | print("pswigb, gridwidth, missing gridwidth,\n"); | ||
| 2742 | } | ||
| 2743 | } | ||
| 2744 | |||
| 2745 | |||
| 2746 | |||
| 2747 | |||
| 2748 | |||
| 2749 | =head2 sub labelsize | ||
| 2750 | |||
| 2751 | |||
| 2752 | =cut | ||
| 2753 | |||
| 2754 | sub labelsize { | ||
| 2755 | |||
| 2756 | my ( $self,$labelsize ) = @_; | ||
| 2757 | if ( $labelsize ne $empty_string ) { | ||
| 2758 | |||
| 2759 | $supswigb->{_labelsize} = $labelsize; | ||
| 2760 | $supswigb->{_note} = $supswigb->{_note}.' labelsize='.$supswigb->{_labelsize}; | ||
| 2761 | $supswigb->{_Step} = $supswigb->{_Step}.' labelsize='.$supswigb->{_labelsize}; | ||
| 2762 | |||
| 2763 | } else { | ||
| 2764 | print("pswigb, labelsize, missing labelsize,\n"); | ||
| 2765 | } | ||
| 2766 | } | ||
| 2767 | |||
| 2768 | |||
| 2769 | |||
| 2770 | |||
| 2771 | |||
| 2772 | =head2 sub ticwidth | ||
| 2773 | |||
| 2774 | |||
| 2775 | =cut | ||
| 2776 | |||
| 2777 | sub ticwidth { | ||
| 2778 | |||
| 2779 | my ( $self,$ticwidth ) = @_; | ||
| 2780 | if ( $ticwidth ne $empty_string ) { | ||
| 2781 | |||
| 2782 | $supswigb->{_ticwidth} = $ticwidth; | ||
| 2783 | $supswigb->{_note} = $supswigb->{_note}.' ticwidth='.$supswigb->{_ticwidth}; | ||
| 2784 | $supswigb->{_Step} = $supswigb->{_Step}.' ticwidth='.$supswigb->{_ticwidth}; | ||
| 2785 | |||
| 2786 | } else { | ||
| 2787 | print("pswigb, ticwidth, missing ticwidth,\n"); | ||
| 2788 | } | ||
| 2789 | } | ||
| 2790 | |||
| 2791 | |||
| 2792 | |||
| 2793 | =head2 sub get_max_index | ||
| 2794 | |||
| 2795 | max index = number of input variables -1 | ||
| 2796 | |||
| 2797 | =cut | ||
| 2798 | |||
| 2799 | sub get_max_index { | ||
| 2800 | my ($self) = @_; | ||
| 2801 | my $max_index = 60; | ||
| 2802 | |||
| 2803 | return ($max_index); | ||
| 2804 | } | ||
| 2805 | |||
| 2806 | 1; |