stanley-king 2 rokov pred
rodič
commit
9ad782c18c
1 zmenil súbory, kde vykonal 11 pridanie a 7 odobranie
  1. 11 7
      plot/refill/ChannelCovPainter.py

+ 11 - 7
plot/refill/ChannelCovPainter.py

@@ -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)