@@ -1484,7 +1484,8 @@ def run_ancestor_quality(args):
1484
1484
c = "Frequency" ,
1485
1485
cmap = "brg" ,
1486
1486
s = 2 ,
1487
- norm = NormalizeBandWidths (band_widths = freq_bins ),
1487
+ # FIXME #669 pandas no longer (as of 1.3.0) supports passing "norm"
1488
+ # norm=NormalizeBandWidths(band_widths=freq_bins),
1488
1489
)
1489
1490
ax .errorbar (
1490
1491
x = data [x_col ],
@@ -1577,7 +1578,8 @@ def run_ancestor_quality(args):
1577
1578
c = "Inferred time inaccuracy" ,
1578
1579
cmap = "BrBG" ,
1579
1580
s = data .n_mismatches .values ,
1580
- norm = MidpointNormalize (midpoint = 0 ),
1581
+ # FIXME #669 pandas no longer (as of 1.3.0) supports passing "norm"
1582
+ # norm=MidpointNormalize(midpoint=0),
1581
1583
)
1582
1584
ax .set (** ax_params )
1583
1585
ax .legend (handles = legend_elements , title = "# bad sites\n per ancestor" )
@@ -1630,14 +1632,15 @@ def run_ancestor_quality(args):
1630
1632
with warnings .catch_warnings ():
1631
1633
# matplotlib warns for nans in error bars
1632
1634
warnings .simplefilter ("ignore" )
1633
- plt .errorbar (
1634
- g .sem ().index ,
1635
- g .mean ().values ,
1636
- yerr = g .sem ().values ,
1637
- marker = "o" ,
1638
- ls = "none" ,
1639
- ecolor = "0.6" ,
1640
- )
1635
+ # FIXME #669 error in matplotlib here
1636
+ # plt.errorbar(
1637
+ # g.sem().index,
1638
+ # g.mean().values,
1639
+ # yerr=g.sem().values,
1640
+ # marker="o",
1641
+ # ls="none",
1642
+ # ecolor="0.6",
1643
+ # )
1641
1644
plt .ylabel (Inaccuracy_label )
1642
1645
plt .xlabel ("Frequency" )
1643
1646
plt .ylim (None , args .diff_y_lim )
@@ -1650,7 +1653,8 @@ def run_ancestor_quality(args):
1650
1653
c = "Frequency" ,
1651
1654
cmap = "brg" ,
1652
1655
s = 2 ,
1653
- norm = NormalizeBandWidths (band_widths = freq_bins ),
1656
+ # FIXME #669 pandas no longer (as of 1.3.0) supports passing "norm"
1657
+ # norm=NormalizeBandWidths(band_widths=freq_bins),
1654
1658
)
1655
1659
data = data .sort_values (by = "Known time order" )
1656
1660
ax .errorbar (
@@ -1678,7 +1682,8 @@ def run_ancestor_quality(args):
1678
1682
c = "Frequency" ,
1679
1683
cmap = "brg" ,
1680
1684
s = 2 ,
1681
- norm = NormalizeBandWidths (band_widths = freq_bins ),
1685
+ # FIXME #669 pandas no longer (as of 1.3.0) supports passing "norm"
1686
+ # norm=NormalizeBandWidths(band_widths=freq_bins),
1682
1687
)
1683
1688
ax .set (ylabel = Inaccuracy_label , xscale = "log" , ylim = (- 0.01 , 1 ), xlim = (1 ))
1684
1689
save_figure (name_format .format (name ))
0 commit comments