|
@@ -23,12 +23,16 @@ class ChannelCovPainter(ChannelPainter):
|
|
|
pass
|
|
|
|
|
|
def _fig_create(self):
|
|
|
- fig = Figure(figsize=(16, 10))
|
|
|
- gs = fig.add_gridspec(nrows=3, height_ratios=(3, 3, 4))
|
|
|
+ fig = Figure(figsize=(12, 12))
|
|
|
+ gs = fig.add_gridspec(nrows=3, height_ratios=(4, 4, 4))
|
|
|
|
|
|
- ax_commit_cdf = fig.add_subplot(gs[1, :])
|
|
|
- ax_succ_cdf = fig.add_subplot(gs[0, :],sharex=ax_commit_cdf)
|
|
|
- ax_ratio = fig.add_subplot(gs[2, :],sharex=ax_commit_cdf)
|
|
|
+ ax_succ_cdf = fig.add_subplot(gs[0, :],)
|
|
|
+ ax_commit_cdf = fig.add_subplot(gs[1, :],sharex=ax_succ_cdf)
|
|
|
+ ax_ratio = fig.add_subplot(gs[2, :],sharex=ax_succ_cdf)
|
|
|
+
|
|
|
+ ax_succ_cdf.set_title('succ orders vs time (cdf)')
|
|
|
+ ax_commit_cdf.set_title('commit orders vs time (cdf)')
|
|
|
+ ax_ratio.set_title('success ratio vs time')
|
|
|
|
|
|
return fig, ax_succ_cdf, ax_commit_cdf, ax_ratio
|
|
|
|
|
@@ -45,8 +49,8 @@ class ChannelCovPainter(ChannelPainter):
|
|
|
ncol = m
|
|
|
else:
|
|
|
ncol = max_col
|
|
|
- leg = ax_ratio.legend(tuple(line_lables),loc='best', ncol=8, mode="expand", shadow=True, fancybox=False)
|
|
|
- leg.get_frame().set_alpha(0.5)
|
|
|
+ leg = ax_ratio.legend(tuple(line_lables),loc='upper left', ncol=8, mode="expand", shadow=True, fancybox=False)
|
|
|
+ leg.get_frame().set_alpha(0.2)
|
|
|
return True
|
|
|
ax_succ_cdf.grid()
|
|
|
ax_commit_cdf.set_xticks(ticks=xticks)
|