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