blib/lib/CXC/Gnuplot/V0/Key.pm

filter: Statementstmt 45.9% 56 / 122 Branchbran 0.0% 0 / 136 Conditioncond 0.0% 0 / 48 MC/DCmcdc 0.0% 0 / 29 Subroutinesub 60.0% 9 / 15 Podpod 100% 4 / 4 totaltotal 19.4% 69 / 354 CC 85 SCAR 67.9
CC
85
Cov
18%
opts
1482.0
to_hash
756.0
__ANON__
506.0
CRAP 887.6
↑ Summary blib/lib/CXC/Gnuplot/V0/AxisTics.pm »
1 package CXC::Gnuplot::V0::Key;
2  
3 1 ▶use v5.38;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use experimental 'builtin', 'declared_refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Feature::Compat::Class;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = 'v0.29.3';
8  
9 class CXC::Gnuplot::V0::Key;
10  
11 use CXC::Gnuplot::V0::Util
12 1 -lexical => 'assert_coerce_object',
13 1 ▶ 'clone_object', 'pvalidate', 'to_hash_r', 'render_opts', 'render_set';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 use CXC::Gnuplot::V0::Types -lexical => qw(
16 ArrayRef
17 CoordPosition2D
18 Enum
19 NonEmptyStr
20 Num
21 PositiveInt
22 PositiveNum
23 PositiveOrZeroNum
24 SetFormats
25 Str
26 Tuple
27 is_NonEmptyStr
28 is_PositiveInt
29 is_PositiveNum
30  
31 signature_for
32 1 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
33  
34 1 ▶use builtin 'true', 'is_bool';
Subroutine BEGIN: called CC=1 SCAR=0.0
35  
36 1 ▶no namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
37  
38 1 ▶use Ref::Util 'is_plain_arrayref';
Subroutine BEGIN: called CC=1 SCAR=0.0
39  
40 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42 my sub croak {
43 0 ▶ require Carp;
Subroutine croak: not called CC=1 SCAR=6.9
44 0 goto \&Carp::croak;
45 }
46  
47 #<<< no tidy
48 1 field $on :param :reader = undef;
49 1 field $default :param :reader = true;
50 1 field $font :param :reader = undef;
51 1 field $enhanced :param :reader = undef;
52 1 field $title :param :reader = undef;
53 1 field $autotitle :param :reader = undef;
54 1 field $box :param :reader = undef;
55 1 field $opaque :param :reader = undef;
56 1 field $width :param :reader = undef;
57 1 field $height :param :reader = undef;
58  
59 1 field $region :param :reader = undef;
60 1 field $margin :param :reader = undef;
61 1 field $horiz :param :reader = undef;
62 1 field $vert :param :reader = undef;
63 1 field $at :param :reader = undef;
64 1 field $offset :param :reader = undef;
65  
66 1 field $layout :param :reader = undef;
67 1 field $maxcols :param :reader = undef;
68 1 field $maxrows :param :reader = undef;
69 1 field $columns :param :reader = undef;
70 1 field $keywidth :param :reader = undef;
71 1 field $justifyentrytext :param :reader = undef;
72  
73 1 field $reverse :param :reader = undef;
74 1 field $invert :param :reader = undef;
75 1 field $samplen :param :reader = undef;
76 1 field $spacing :param :reader = undef;
77 1 field $textcolor :param :reader = undef;
78 #>>>
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
120  
121  
122  
123  
124  
125  
126  
127  
128  
129  
130  
131  
132  
133  
134  
135  
136  
137  
138  
139  
140  
141  
142 ADJUST {
143  
144 0 ▶ my $e;
Subroutine __ANON__: not called CC=22 SCAR=62.3
145  
146 # this is equivalent to 'set/unset key'
147 # {on|off}
148 # $on => Bool
149 0 ▶ defined $on
Branch: 1 branch
BranchTrueFalseTotal
defined $on and not builtin::is_bool($on) and croak "invalid value for \"on\" parameter: must be bool" 0 0 0
Condition0%0/3
defined $on and not builtin::is_bool($on)
!ll&&!rl&&r
000
MC/DC0%0/2
defined $on and not builtin::is_bool($on)
defined $on not builtin::is_bool($on)
Truth table0%0/3
A and not(B)
A= defined $onB= not builtin::is_bool($on)
ABresult
0X0
100
111
150 and !is_bool( $on )
151 and croak q{invalid value for "on" parameter: must be bool};
152  
153 # {default}
154 # $default => Bool
155 0 ▶ defined $default
Branch: 1 branch
BranchTrueFalseTotal
defined $default and not builtin::is_bool($default) and croak "invalid value for \"default\" parameter: must be bool" 0 0 0
Condition0%0/3
defined $default and not builtin::is_bool($default)
!ll&&!rl&&r
000
MC/DC0%0/2
defined $default and not builtin::is_bool($default)
defined $default not builtin::is_bool($default)
Truth table0%0/3
A and not(B)
A= defined $defaultB= not builtin::is_bool($default)
ABresult
0X0
100
111
156 and !is_bool( $default )
157 and croak q{invalid value for "default" parameter: must be bool};
158  
159 #------------------------------------------------------
160 # general font parameters, which affect all of the entries
161 # in the key.
162  
163 # {font "<face>,<size>"}
164 # $font => Font|ArrayRef
165 0 pvalidate( font => Font => \$font );
166  
167 # {{no}enhanced}
168 # $enhanced => Bool
169 0 ▶ defined $enhanced
Branch: 1 branch
BranchTrueFalseTotal
defined $enhanced and not builtin::is_bool($enhanced) and croak "invalid value for \"enhanced\" parameter; must be bool" 0 0 0
Condition0%0/3
defined $enhanced and not builtin::is_bool($enhanced)
!ll&&!rl&&r
000
MC/DC0%0/2
defined $enhanced and not builtin::is_bool($enhanced)
defined $enhanced not builtin::is_bool($enhanced)
Truth table0%0/3
A and not(B)
A= defined $enhancedB= not builtin::is_bool($enhanced)
ABresult
0X0
100
111
170 and !is_bool( $enhanced )
171 and croak( q{invalid value for "enhanced" parameter; must be bool} );
172  
173 0 pvalidate( title => 'Key::Title' => \$title );
174  
175 # we can accept traditional bools here, as the only possible
176 # values are boolean or 'columnheader'
177 # {{no}autotitle {columnheader}}
178 0 ▶ defined $autotitle
Branch: 1 branch
BranchTrueFalseTotal
defined $autotitle and not builtin::is_bool($autotitle) and $autotitle ne "columnheader" and croak "invalid value for \"autotitle\" parameter" 0 0 0
Condition0%0/6
defined $autotitle and not builtin::is_bool($autotitle) and $autotitle ne "columnheader"
!ll&&!rl&&r
000
defined $autotitle and not builtin::is_bool($autotitle)
!ll&&!rl&&r
000
MC/DC0%0/3
defined $autotitle and not builtin::is_bool($autotitle) and $autotitle ne "columnheader"
defined $autotitle not builtin::is_bool($autotitle) $autotitle ne "columnheader"
Truth table0%0/4
A and not(B) and C
A= defined $autotitleB= not builtin::is_bool($autotitle)C= $autotitle ne "columnheader"
ABCresult
0XX0
10X0
1100
1111
179 and !is_bool( $autotitle )
180 and $autotitle ne 'columnheader'
181 and croak( q{invalid value for "autotitle" parameter} );
182  
183 # this doesn't validate the line properties
184 # {{no}box {<line properties>}}
185 # box => Bool | ArrayRef[Str]
186 0 ▶ defined $box
Branch: 1 branch
BranchTrueFalseTotal
defined $box and not builtin::is_bool($box) and defined($e = ArrayRef()->of(Str)->validate($box)) and croak "invalid value for \"box\" parameter: must be bool or ArrayRef" 0 0 0
Condition0%0/6
defined $box and not builtin::is_bool($box) and defined($e = ArrayRef()->of(Str)->validate($box))
!ll&&!rl&&r
000
defined $box and not builtin::is_bool($box)
!ll&&!rl&&r
000
MC/DC0%0/3
defined $box and not builtin::is_bool($box) and defined($e = ArrayRef()->of(Str)->validate($box))
defined $box not builtin::is_bool($box) defined($e = ArrayRef()->of(Str)->validate($box))
Truth table0%0/4
A and not(B) and C
A= defined $boxB= not builtin::is_bool($box)C= defined($e = ArrayRef()->of(Str)->validate($box))
ABCresult
0XX0
10X0
1100
1111
187 and !is_bool( $box )
188 and defined( $e = ArrayRef->of( Str )->validate( $box ) )
189 and croak( q{invalid value for "box" parameter: must be bool or ArrayRef} );
190  
191 # {{no}opaque {fc <colorspec>}}
192 # * not future proof; this hardwires 'fc'
193 # * doesn't validate that 'fc' is always follwed by a colorspec.
194 0 ▶ defined $opaque
Branch: 1 branch
BranchTrueFalseTotal
defined $opaque and not builtin::is_bool($opaque) and defined($e = Tuple()->of(Enum()->of("fc"), ArrayRef()->of(NonEmptyStr))->validate($opaque)) and croak "invalid value for \"opaque\" parameter: must be bool or [ fc => <colorspec]" 0 0 0
Condition0%0/6
defined $opaque and not builtin::is_bool($opaque) and defined($e = Tuple()->of(Enum()->of("fc"), ArrayRef()->of(NonEmptyStr))->validate($opaque))
!ll&&!rl&&r
000
defined $opaque and not builtin::is_bool($opaque)
!ll&&!rl&&r
000
MC/DC0%0/3
defined $opaque and not builtin::is_bool($opaque) and defined($e = Tuple()->of(Enum()->of("fc"), ArrayRef()->of(NonEmptyStr))->validate($opaque))
defined $opaque not builtin::is_bool($opaque) defined($e = Tuple()->of(Enum()->of("fc"), ArrayRef()->of(NonEmptyStr))->validate($opaque))
Truth table0%0/4
A and not(B) and C
A= defined $opaqueB= not builtin::is_bool($opaque)C= defined($e = Tuple()->of(Enum()->of("fc"), ArrayRef()->of(NonEmptyStr))->validate($opaque))
ABCresult
0XX0
10X0
1100
1111
195 and !is_bool( $opaque )
196 and
197 defined( $e = Tuple->of( Enum->of( 'fc' ), ArrayRef->of( NonEmptyStr ) )->validate( $opaque ) )
198 and croak( q{invalid value for "opaque" parameter: must be bool or [ fc => <colorspec]} );
199  
200 # {width <width_increment>}
201 0 ▶ defined $width
Branch: 1 branch
BranchTrueFalseTotal
defined $width and defined($e = Num->validate($width)) and croak qq[invalid value for "width" parameter: $e] 0 0 0
Condition0%0/3
defined $width and defined($e = Num->validate($width))
!ll&&!rl&&r
000
MC/DC0%0/2
defined $width and defined($e = Num->validate($width))
defined $width defined($e = Num->validate($width))
Truth table0%0/3
A and B
A= defined $widthB= defined($e = Num->validate($width))
ABresult
0X0
100
111
202 and defined( $e = Num->validate( $width ) )
203 and croak( qq{invalid value for "width" parameter: $e} );
204  
205 # {height <height_increment>}
206 0 pvalidate( height => Num, \$height );
207  
208 0 pvalidate( region => Enum->of( 'inside', 'outside', 'fixed' ), \$region );
209  
210 0 pvalidate( margin => Enum->of( 'left', 'right', 'top', 'bottom' ), \$margin );
211  
212 0 pvalidate( horiz => Enum->of( 'left', 'right', 'center' ), \$horiz );
213  
214 0 pvalidate( vert => Enum->of( 'top', 'bottom', 'center' ), \$vert );
215  
216 0 pvalidate( at => CoordPosition2D, \$at );
217  
218 0 pvalidate( offset => CoordOffset2D => \$offset );
219  
220 0 pvalidate( layout => Enum [ 'vertical', 'horizontal' ], \$layout );
221  
222 0 pvalidate( maxcols => PositiveInt | Enum ['auto'], \$maxcols );
223  
224 0 pvalidate( maxrows => PositiveInt | Enum ['auto'], \$maxrows );
225  
226 0 pvalidate( columns => PositiveInt, \$columns );
227  
228 0 pvalidate(
229 keywidth => Tuple->of( Enum [ 'screen', 'graph' ], PositiveNum ) | PositiveNum,
230 \$keywidth,
231 );
232  
233 0 pvalidate( justifyentrytext => Enum->of( 'left', 'right' ), \$justifyentrytext );
234  
235 0 ▶ defined $reverse
Branch: 1 branch
BranchTrueFalseTotal
defined $reverse and not builtin::is_bool($reverse) and croak "invalid value for \"reverse\" parameter" 0 0 0
Condition0%0/3
defined $reverse and not builtin::is_bool($reverse)
!ll&&!rl&&r
000
MC/DC0%0/2
defined $reverse and not builtin::is_bool($reverse)
defined $reverse not builtin::is_bool($reverse)
Truth table0%0/3
A and not(B)
A= defined $reverseB= not builtin::is_bool($reverse)
ABresult
0X0
100
111
236 and !is_bool( $reverse )
237 and croak q{invalid value for "reverse" parameter};
238  
239 0 ▶ defined $invert
Branch: 1 branch
BranchTrueFalseTotal
defined $invert and not builtin::is_bool($invert) and croak "invalid value for \"invert\" parameter" 0 0 0
Condition0%0/3
defined $invert and not builtin::is_bool($invert)
!ll&&!rl&&r
000
MC/DC0%0/2
defined $invert and not builtin::is_bool($invert)
defined $invert not builtin::is_bool($invert)
Truth table0%0/3
A and not(B)
A= defined $invertB= not builtin::is_bool($invert)
ABresult
0X0
100
111
240 and !is_bool( $invert )
241 and croak q{invalid value for "invert" parameter};
242  
243 0 pvalidate( samplen => PositiveOrZeroNum, \$samplen );
244  
245 0 pvalidate( spacing => PositiveNum, \$spacing );
246  
247 0 pvalidate( textcolor => ColorSpec => \$textcolor );
248 }
249  
250  
251  
252  
253  
254  
255 method to_hash {
256  
257 0 ▶ my %hash = (
Subroutine to_hash: not called CC=27 SCAR=66.3
Pod documented
Branch: 26 branches
BranchTrueFalseTotal
defined $default ? : 0 0 0
defined $font ? : 0 0 0
defined $enhanced ? : 0 0 0
defined $title ? : 0 0 0
defined $autotitle ? : 0 0 0
defined $box ? : 0 0 0
defined $opaque ? : 0 0 0
defined $width ? : 0 0 0
defined $height ? : 0 0 0
defined $region ? : 0 0 0
defined $margin ? : 0 0 0
defined $horiz ? : 0 0 0
defined $vert ? : 0 0 0
defined $at ? : 0 0 0
defined $offset ? : 0 0 0
defined $layout ? : 0 0 0
defined $maxcols ? : 0 0 0
defined $maxrows ? : 0 0 0
defined $columns ? : 0 0 0
defined $keywidth ? : 0 0 0
defined $justifyentrytext ? : 0 0 0
defined $reverse ? : 0 0 0
defined $invert ? : 0 0 0
defined $samplen ? : 0 0 0
defined $spacing ? : 0 0 0
defined $textcolor ? : 0 0 0
258 ( defined $default ? ( default => $default ) : () ),
259 ( defined $font ? ( font => $font ) : () ),
260 ( defined $enhanced ? ( enhanced => $enhanced ) : () ),
261 ( defined $title ? ( title => $title ) : () ),
262 ( defined $autotitle ? ( autotitle => $autotitle ) : () ),
263 ( defined $box ? ( box => $box ) : () ),
264 ( defined $opaque ? ( opaque => $opaque ) : () ),
265 ( defined $width ? ( width => $width ) : () ),
266 ( defined $height ? ( height => $height ) : () ),
267 ( defined $region ? ( region => $region ) : () ),
268 ( defined $margin ? ( margin => $margin ) : () ),
269 ( defined $horiz ? ( horiz => $horiz ) : () ),
270 ( defined $vert ? ( vert => $vert ) : () ),
271 ( defined $at ? ( at => $at ) : () ),
272 ( defined $offset ? ( offset => $offset ) : () ),
273 ( defined $layout ? ( layout => $layout ) : () ),
274 ( defined $maxcols ? ( maxcols => $maxcols ) : () ),
275 ( defined $maxrows ? ( maxrows => $maxrows ) : () ),
276 ( defined $columns ? ( columns => $columns ) : () ),
277 ( defined $keywidth ? ( keywidth => $keywidth ) : () ),
278 ( defined $justifyentrytext ? ( justifyentrytext => $justifyentrytext ) : () ),
279 ( defined $reverse ? ( reverse => $reverse ) : () ),
280 ( defined $invert ? ( invert => $invert ) : () ),
281 ( defined $samplen ? ( samplen => $samplen ) : () ),
282 ( defined $spacing ? ( spacing => $spacing ) : () ),
283 ( defined $textcolor ? ( textcolor => $textcolor ) : () ),
284 );
285  
286 0 return to_hash_r( \%hash );
287 }
288  
289  
290  
291  
292  
293 ▶sub assert_coerce( $class, $args ) {
Subroutine assert_coerce: not called CC=1 SCAR=6.9
Pod documented
294 0 assert_coerce_object( $class, $args );
295 }
296  
297  
298  
299  
300  
301 ▶method clone ( %args ) {
Subroutine clone: not called CC=1 SCAR=6.9
Pod documented
302 0 clone_object( $self, \%args );
303 }
304  
305  
306  
307  
308  
309  
310 method opts {
311  
312 0 ▶ state %MapMargin = (
Subroutine opts: not called CC=38 SCAR=73.0
Pod documented
313 left => 'lmargin',
314 right => 'rmargin',
315 top => 'tmargin',
316 bottom => 'bmargin',
317 );
318  
319 0 state %MapEntryJustify = (
320 left => 'Left',
321 right => 'Right',
322 );
323  
324 0 ▶ defined $on
Branch: 1 branch
BranchTrueFalseTotal
defined $on and not $on and return "off" 0 0 0
Condition0%0/3
defined $on and not $on
!ll&&!rl&&r
000
MC/DC0%0/2
defined $on and not $on
defined $on not $on
Truth table0%0/3
A and not(B)
A= defined $onB= not $on
ABresult
0X0
100
111
325 and !$on
326 and return 'off';
327  
328 0 my @opts;
329  
330 0 ▶ defined $on
Branch: 1 branch
BranchTrueFalseTotal
defined $on and $on and push @opts, "on" 0 0 0
Condition0%0/3
defined $on and $on
!ll&&!rl&&r
000
MC/DC0%0/2
defined $on and $on
defined $on $on
Truth table0%0/3
A and B
A= defined $onB= $on
ABresult
0X0
100
111
331 and $on
332 and push @opts, 'on';
333  
334 0 ▶ defined $default
Branch: 1 branch
BranchTrueFalseTotal
defined $default and $default and push @opts, "default" 0 0 0
Condition0%0/3
defined $default and $default
!ll&&!rl&&r
000
MC/DC0%0/2
defined $default and $default
defined $default $default
Truth table0%0/3
A and B
A= defined $defaultB= $default
ABresult
0X0
100
111
335 and $default
336 and push @opts, 'default';
337  
338 0 push @opts, render_opts( font => $font );
339  
340 0 ▶ defined $enhanced
Branch: 2 branches
BranchTrueFalseTotal
defined $enhanced and push @opts, $enhanced ? "enhanced" : "noenhaced" 0 0 0
$enhanced ? : 0 0 0
341 and push @opts, $enhanced ? 'enhanced' : 'noenhaced';
342  
343 0 ▶ defined $title
Branch: 2 branches
BranchTrueFalseTotal
defined $title and push @opts, builtin::is_bool($title) && !$title ? "notitle" : render_opts("title", $title) 0 0 0
builtin::is_bool($title) && !$title ? : 0 0 0
Condition0%0/3
builtin::is_bool($title) and not $title
!ll&&!rl&&r
000
MC/DC0%0/2
builtin::is_bool($title) and not $title
builtin::is_bool($title) not $title
Truth table0%0/3
A and not(B)
A= builtin::is_bool($title)B= not $title
ABresult
0X0
100
111
344 and push @opts, is_bool( $title ) && !$title
345 ? 'notitle'
346 : render_opts( title => $title );
347  
348 0 push @opts, render_opts( textcolor => $textcolor );
349  
350 0 ▶ push @opts,
Branch: 3 branches
BranchTrueFalseTotal
if defined $autotitle 0 0 0
$autotitle eq 'columnheader' ? : 0 0 0
$autotitle ? : 0 0 0
351 $autotitle eq 'columnheader' ? [ autotitle => 'columnheader' ]
352 : $autotitle ? 'autotitle'
353 : 'noautotitle'
354 if defined $autotitle;
355  
356 0 ▶ push @opts,
Branch: 3 branches
BranchTrueFalseTotal
if defined $box 0 0 0
!$box ? : 0 0 0
Ref::Util::XS::is_plain_arrayref($box) ? : 0 0 0
357 !$box ? 'nobox'
358 : is_plain_arrayref( $box ) ? [ box => $box->@* ]
359 : 'box'
360 if defined $box;
361  
362 0 ▶ push @opts, !$opaque
Branch: 2 branches
BranchTrueFalseTotal
if defined $opaque 0 0 0
!$opaque ? : 0 0 0
363 ? 'noopaque'
364 : [ opaque => $opaque ]
365 if defined $opaque;
366  
367 0 ▶ push @opts, [ width => $width ]
Branch: 1 branch
BranchTrueFalseTotal
if defined $width 0 0 0
368 if defined $width;
369  
370 0 ▶ push @opts, [ height => $height ]
Branch: 1 branch
BranchTrueFalseTotal
if defined $height 0 0 0
371 if defined $height;
372  
373 0 ▶ push @opts, $region
Branch: 1 branch
BranchTrueFalseTotal
if defined $region 0 0 0
374 if defined $region;
375  
376 0 ▶ push @opts, $MapMargin{$margin}
Branch: 1 branch
BranchTrueFalseTotal
if defined $margin 0 0 0
377 if defined $margin;
378  
379 0 ▶ push @opts, $horiz
Branch: 1 branch
BranchTrueFalseTotal
if defined $horiz 0 0 0
380 if defined $horiz;
381  
382 0 ▶ push @opts, $vert
Branch: 1 branch
BranchTrueFalseTotal
if defined $vert 0 0 0
383 if defined $vert;
384  
385 0 push @opts, render_opts( at => $at );
386 0 push @opts, render_opts( offset => $offset );
387  
388 0 ▶ push @opts, $layout
Branch: 1 branch
BranchTrueFalseTotal
if defined $layout 0 0 0
389 if defined $layout;
390  
391 0 ▶ push @opts, [ maxcols => $maxcols ]
Branch: 1 branch
BranchTrueFalseTotal
if defined $maxcols 0 0 0
392 if defined $maxcols;
393  
394 0 ▶ push @opts, [ maxrows => $maxrows ]
Branch: 1 branch
BranchTrueFalseTotal
if defined $maxrows 0 0 0
395 if defined $maxrows;
396  
397 0 ▶ push @opts, [ columns => $columns ]
Branch: 1 branch
BranchTrueFalseTotal
if defined $columns 0 0 0
398 if defined $columns;
399  
400 0 ▶ push @opts, [ keywidth => $keywidth ]
Branch: 1 branch
BranchTrueFalseTotal
if defined $keywidth 0 0 0
401 if defined $keywidth;
402  
403 0 ▶ push @opts, $MapEntryJustify{$justifyentrytext}
Branch: 1 branch
BranchTrueFalseTotal
if defined $justifyentrytext 0 0 0
404 if defined $justifyentrytext;
405  
406 0 ▶ push @opts, $reverse ? 'reverse' : 'noreverse'
Branch: 2 branches
BranchTrueFalseTotal
if defined $reverse 0 0 0
$reverse ? : 0 0 0
407 if defined $reverse;
408  
409 0 ▶ push @opts, $invert ? 'invert' : 'noinvert'
Branch: 2 branches
BranchTrueFalseTotal
if defined $invert 0 0 0
$invert ? : 0 0 0
410 if defined $invert;
411  
412 0 ▶ push @opts, [ samplen => $samplen ]
Branch: 1 branch
BranchTrueFalseTotal
if defined $samplen 0 0 0
413 if defined $samplen;
414  
415 0 ▶ push @opts, [ spacing => $spacing ]
Branch: 1 branch
BranchTrueFalseTotal
if defined $spacing 0 0 0
416 if defined $spacing;
417  
418 0 return @opts;
419 }
420  
421  
422  
423  
424  
425 1 signature_for set => (
426 method => 1,
427 named => [
428 as => SetFormats,
429 { default => 'string' },
430 ],
431 );
432  
433 method set ( $opt ) {
434 return render_set( [ render_opts( [ set => 'key' ], $self ) ], $opt->as );
435 }
436  
437  
438 1 1;
439  
440 #
441 # This file is part of CXC-Gnuplot
442 #
443 # This software is Copyright (c) 2024 by Smithsonian Astrophysical Observatory.
444 #
445 # This is free software, licensed under:
446 #
447 # The GNU General Public License, Version 3, June 2007
448 #
449  
450 __END__
↑ Summary blib/lib/CXC/Gnuplot/V0/AxisTics.pm »