|
|
@ -117,7 +117,6 @@ class BaseGraph(object): |
|
|
|
else: |
|
|
|
else: |
|
|
|
self.margin.left += w + self.legend_box_size |
|
|
|
self.margin.left += w + self.legend_box_size |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self.title: |
|
|
|
if self.title: |
|
|
|
h, _ = get_text_box(self.title[0], self.title_font_size) |
|
|
|
h, _ = get_text_box(self.title[0], self.title_font_size) |
|
|
|
self.margin.top += len(self.title) * (10 + h) |
|
|
|
self.margin.top += len(self.title) * (10 + h) |
|
|
@ -138,8 +137,7 @@ class BaseGraph(object): |
|
|
|
h, w = get_texts_box( |
|
|
|
h, w = get_texts_box( |
|
|
|
cut(self._y_labels), self.label_font_size) |
|
|
|
cut(self._y_labels), self.label_font_size) |
|
|
|
self.margin.left += 10 + max( |
|
|
|
self.margin.left += 10 + max( |
|
|
|
w * cos(rad(self.y_label_rotation)), w) |
|
|
|
w * cos(rad(self.y_label_rotation)), h) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@cached_property |
|
|
|
@cached_property |
|
|
|
def _legends(self): |
|
|
|
def _legends(self): |
|
|
|