stanley-king 2 vuotta sitten
vanhempi
commit
9e0d06b682
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      plot/refill/ChannelPainter.py

+ 2 - 1
plot/refill/ChannelPainter.py

@@ -76,8 +76,9 @@ class ChannelPainter(PainterBase):
             ax.set_xticklabels(lables)
             fig.autofmt_xdate()
             ax.grid()
-            fig.subplots_adjust(left=0.1, right=0.8, top=0.95, bottom=0.1)
+            # fig.subplots_adjust(left=0.1, right=0.8, top=0.95, bottom=0.1)
             ax.legend(bbox_to_anchor=(1, 1), loc='upper left')
+            fig.tight_layout()
 
             buf = BytesIO()
             fig.savefig(buf, format="png")