Condition Coverage

blib/lib/Matplotlib/Simple.pm
Criterion Covered Total %
condition 176 319 55.1


and 3 conditions

line !l l&&!r l&&r condition
353 1 43 0 $ref ne "ARRAY" and $ref ne ""
373 2 75 2 defined $args->{'args'}{'plot.type'} and $args->{'args'}{'plot.type'} eq "pie"
448 4 2 0 $plot_type eq "grouped" and defined $plot->{'width'}
6 0 0 $plot_type eq "grouped" and defined $plot->{'width'} and $plot->{'stacked'} == 0
466 0 0 1 $c eq "color" and $plot_type eq "grouped"
0 1 0 $c eq "color" and $plot_type eq "grouped" and ref $plot->{$c} ne ""
519 4 0 0 defined $plot->{'color'} and ref $plot->{'color'} eq "HASH"
892 0 0 0 $plot->{$opt} ne "log" and $plot->{$opt} ne "linear"
899 0 3 0 defined $plot->{'marginals'} and $plot->{'marginals'} > 0
921 0 3 0 $plot->{'colorbar.on'} and defined $plot->{'shared.colorbar'}
1185 1 4 1 $plot->{'colorbar.on'} and defined $plot->{'shared.colorbar'}
1238 3 1 0 $non_numeric_data and not defined $plot->{'stringmap'}
1303 0 4 0 $plot->{'colorbar.on'} and defined $plot->{'shared.colorbar'}
1308 3 0 1 $non_numeric_data and $plot->{'colorbar.on'}
1411 7 0 6 ref $plot->{'data'} eq "ARRAY" and scalar @{$plot->{'data'};} == 2
7 0 6 ref $plot->{'data'} eq "ARRAY" and scalar @{$plot->{'data'};} == 2 and ref $plot->{'data'}[0] eq "ARRAY"
0 0 6 ref $plot->{'data'} eq "ARRAY" and scalar @{$plot->{'data'};} == 2 and ref $plot->{'data'}[0] eq "ARRAY" and ref $plot->{'data'}[1] eq "ARRAY"
0 4 2 ref $plot->{'data'} eq "ARRAY" and scalar @{$plot->{'data'};} == 2 and ref $plot->{'data'}[0] eq "ARRAY" and ref $plot->{'data'}[1] eq "ARRAY" and ref $plot->{'data'}[0][0] ne "ARRAY"
1496 0 0 4 $so_ref eq "ARRAY" and defined $plot->{'set.options'}[$arr_i]
1527 5 0 2 defined $plot->{'set.options'} and ref $plot->{'set.options'} eq "HASH"
1591 5 3 0 defined $plot->{'set.options'} and ref $plot->{'set.options'} eq ""
1596 5 0 3 ref $plot->{'set.options'} eq "HASH" and defined $plot->{'set.options'}{$set}
1684 0 4 0 $n_keys != 2 and $n_keys != 3
1703 4 0 0 defined $plot->{'set.options'} and ref $plot->{'set.options'} eq ""
1751 4 0 0 $n_keys != 2 and $n_keys != 3
1768 0 4 0 not defined $color_key and $n_keys == 3
2048 0 0 0 $str =~ /,/ and not $str =~ /[\]\[]/
2121 3 0 1 not defined $ncols and $nrows > 0
1 0 2 not defined $nrows and $ncols > 0
2140 49 0 29 scalar @_ == 1 and ref $_[0] eq "HASH"
2217 10 1 58 defined $args->{'plot.type'} and defined $args->{'data'}
2220 11 58 0 $single_plot == 1 and not defined $args->{'plot.type'}
2225 58 10 1 $single_plot == 0 and not defined $args->{'plots'}
2229 58 10 0 $single_plot == 0 and ref $args->{'plots'} ne "ARRAY"
2233 58 10 0 $single_plot == 0 and scalar @{$args->{'plots'};} == 0
2243 58 10 0 $single_plot == 0 and $args->{'nrows'} * $args->{'ncols'} < scalar @{$args->{'plots'};}
2271 10 16 42 $single_plot == 1 and ref $args->{'data'} eq "HASH"
26 42 0 $single_plot == 1 and ref $args->{'data'} eq "HASH" and scalar keys %{$$args{"data"};} == 0
2293 67 1 0 defined $args->{'shared.colorbar'} and $single_plot == 1
2413 20 0 2 defined $args->{'shared.colorbar'} and grep {$_ == $ax;} @{$$args{"shared.colorbar"};}
2564 14 0 0 scalar @_ == 1 and ref $_[0] eq "HASH"
2572 14 0 0 defined $args->{'plot.type'} and $args->{'plot.type'} ne $sub_name

or 2 conditions

line l !l condition
336 79 0 $args->{'ax'} // "ax"
371 0 79 $args->{'args'}{'legend'} // ""
407 7 0 $args->{'ax'} // ""
447 1 5 $plot->{'stacked'} // 0
532 8 0 $plot->{'data'}{$k}[$i] // 0
536 0 2 $plot->{'width'} // "0.8"
537 2 0 $plot->{'stacked'} // 0
613 0 4 $plot->{'orientation'} // "vertical"
628 4 0 $args->{'ax'} // ""
630 0 4 $plot->{'notch'} // "False"
631 0 4 $plot->{'showcaps'} // "True"
632 0 4 $plot->{'showfliers'} // "True"
633 0 4 $plot->{'showmeans'} // "True"
721 0 3 $plot->{'default_undefined'} // 0
722 1 2 $plot->{'mirror'} // 0
756 0 3 $plot->{'cmap'} // "gist_rainbow"
757 0 3 $plot->{'cb_logscale'} // 0
758 3 0 $args->{'ax'} // ""
760 1 2 $plot->{'undef.color'} // "gray"
783 0 3 $plot->{'colorbar.on'} // 1
790 1 2 $plot->{'show.numbers'} // 0
847 0 3 $plot->{'cb_logscale'} // 0
848 0 3 $plot->{'marginals'} // 0
849 0 3 $plot->{'xbins'} // 15
850 0 3 $plot->{'ybins'} // 15
877 0 3 $plot->{'cmap'} // "gist_rainbow"
906 3 0 $args->{'ax'} // ""
920 0 3 $plot->{'colorbar.on'} // 1
976 0 25 $plot->{'alpha'} // "0.5"
1005 0 1 $plot->{'show.legend'} // 1
1007 1 23 $plot->{'show.legend'} // 0
1062 1 6 $plot->{'cb_logscale'} // 0
1063 1 6 $plot->{'show.colorbar'} // 1
1064 0 7 $plot->{'xbins'} // 15
1065 0 7 $plot->{'ybins'} // 15
1090 1 6 $plot->{'cmap'} // "gist_rainbow"
1138 7 0 $args->{'ax'} // ""
1184 2 4 $plot->{'colorbar.on'} // 1
1277 4 0 $args->{'ax'} // ""
1302 0 4 $plot->{'colorbar.on'} // 1
1348 0 2 $plot->{'autopct'} // ""
1363 2 0 $args->{'ax'} // ""
1394 5 8 $plot->{'show.legend'} // 1
1671 0 6 $plot->{'cmap'} // "gist_rainbow"
1822 0 4 $plot->{'orientation'} // "vertical"
1836 4 0 $args->{'ax'} // ""
1837 0 4 $plot->{'medians'} // 1
1838 0 4 $plot->{'whiskers'} // 1
1839 0 4 $plot->{'edgecolor'} // "black"
1963 0 3 $plot->{'show.legend'} // 1
1974 3 0 $args->{'ax'} // ""
1978 2 0 $plot->{'color'}{$group} // "b"
2009 2 0 $plot->{'color'} // "b"
2076 17 0 $current_sub // "plt"
2214 8 61 $args->{'nrows'} // 1
2215 10 59 $args->{'ncols'} // 1
2338 1 9 $args->{'sharex'} // 0
2339 1 9 $args->{'sharey'} // 0
2537 65 0 $args->{'execute'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
462 0 0 6 $plot->{'log'} or $plot->{'logscale'}
754 0 3 0 $plot->{'cb_min'} // $min
755 0 3 0 $plot->{'cb_max'} // $max
853 0 0 3 $plot->{'xbins'} == 0 or $plot->{'ybins'} == 0
875 0 3 0 $plot->{'xlabel'} // $keys[0]
876 0 3 0 $plot->{'ylabel'} // $keys[1]
1066 0 0 7 $plot->{'xbins'} == 0 or $plot->{'ybins'} == 0
1088 0 7 0 $plot->{'xlabel'} // $keys[0]
1089 0 7 0 $plot->{'ylabel'} // $keys[1]
1132 0 7 0 $plot->{'xmin'} // &min(@{$plot->{'data'}{$keys[0]};})
1133 0 7 0 $plot->{'xmax'} // &max(@{$plot->{'data'}{$keys[0]};})
1136 0 7 0 $plot->{'ymin'} // &min(@{$plot->{'data'}{$keys[1]};})
1137 0 7 0 $plot->{'ymax'} // &max(@{$plot->{'data'}{$keys[1]};})
1278 0 4 0 $plot->{'vmax'} // $max_val
1279 0 3 1 $plot->{'vmin'} // $min_val
1726 0 4 0 $plot->{'xlabel'} // $keys[0]
1727 0 4 0 $plot->{'ylabel'} // $keys[1]
1789 2 2 0 $plot->{'xlabel'} // $keys[0]
1790 2 2 0 $plot->{'ylabel'} // $keys[1]
2119 3 0 5 $args->{'ncols'} // $args->{'ncol'}
2120 2 0 6 $args->{'nrows'} // $args->{'nrow'}
2121 3 1 4 defined $ncols || defined $nrows
2191 59 10 0 defined $args->{'plot.type'} or defined $args->{'plots'}
2374 1 0 0 $graph->{'plot.type'} // $args->{'plot.type'}
2432 2 0 0 $graph->{'plot.type'} // $plot->{'plot.type'}