Skip to content

Commit

Permalink
updated plots
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Eggimann committed Dec 18, 2018
1 parent 1d8adc7 commit bfa7f16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions energy_demand/plotting/basic_plot_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"""
import math
import numpy as np
import matplotlib.pyplot as plt
import pylab

from scipy.interpolate import interp1d
from scipy.interpolate import spline

Expand All @@ -13,7 +12,7 @@
def export_legend(legend, filename="legend.png"):
"""Export legend as seperate file
"""
fig = legend.figure
fig = legend.figure
fig.canvas.draw()
bbox = legend.get_window_extent().transformed(fig.dpi_scale_trans.inverted())
fig.savefig(filename, dpi="figure", bbox_inches=bbox)
Expand Down

0 comments on commit bfa7f16

Please sign in to comment.