Skip to content

Commit

Permalink
small bug fix in plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
squoilin committed Feb 4, 2020
1 parent 5bab489 commit 2c5a323
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dispaset/postprocessing/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,9 @@ def storage_levels(inputs, results):
StorageError = ((inputs['param_df']['StorageProfile'] * sto_units.StorageCapacity).subtract(
results['OutputStorageLevel'], 'columns')).divide((sto_units.StorageCapacity), 'columns') * (-100)
StorageError = StorageError.dropna(1)
ax = StorageError.plot(figsize=(12, 6),
title='Difference between the calculated storage Levels and the (imposed) minimum level')
ax.set_ylabel('%')
if not StorageError.empty:
ax = StorageError.plot(figsize=(12, 6),
title='Difference between the calculated storage Levels and the (imposed) minimum level')
ax.set_ylabel('%')

return True

0 comments on commit 2c5a323

Please sign in to comment.