plt.figure(figsize=(10,5)) plt.plot(csmf.PR, csmf.ML, 'o', ms=15, alpha=.5) plt.plot([1e-6,1], [1e-6,1], 'k--') plt.loglog() plt.xlabel('PR CSMF') plt.ylabel('ML CSMF') plt.figure(figsize=(10,5)) mean = .5*(csmf.PR + csmf.ML) diff = csmf.ML - csmf.PR plt.plot(mean, diff, 'o', ms=15, alpha=.5) plt.plot([1e-6,1], [0,0], 'k--') plt.semilogx() plt.xlabel('Mean(ML, PR) CSMF') plt.ylabel('ML - PR CSMF') plt.figure(figsize=(10,5)) mean = .5*(csmf.PR + csmf.ML) diff = csmf.ML - csmf.PR rows = (mean > .001) points, = plt.plot(100*mean[rows], 100*diff[rows], 'o', ms=15, alpha=.5) labels = [tooltip_for(i) for i in mean[rows].index] #rows &= pd.Series(mean.index, index=mean.index).str.contains('neo_') #plt.plot(100*mean[rows], 100*diff[rows], 'o', ms=15, alpha=.5) plt.plot([1e-9,100], [0,0], 'k--') plt.semilogx() plt.axis(xmin=.05, xmax=50) plt.xlabel('Mean CSMF') plt.ylabel('Redist - Raw CSMF') tt = mpld3.plugins.PointHTMLTooltip(points, labels, hoffset=5) mpld3.plugins.connect(plt.gcf(), tt, ) mpld3.display()