Skip to content

Commit

Permalink
Output figure object in visualize_field
Browse files Browse the repository at this point in the history
  • Loading branch information
MassimoCimmino committed Dec 5, 2017
1 parent d4f4be8 commit 2523f67
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pygfunction/boreholes.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,11 @@ def visualize_field(borefield):
borefield : list
List of boreholes in the bore field.
Returns
-------
fig : figure
Figure object (matplotlib).
"""
import matplotlib.pyplot as plt
from matplotlib.ticker import AutoMinorLocator
Expand Down Expand Up @@ -473,6 +478,6 @@ def visualize_field(borefield):
ax1.yaxis.set_minor_locator(AutoMinorLocator())
ax1.zaxis.set_minor_locator(AutoMinorLocator())

plt.tight_layout()
plt.tight_layout(rect=[0, 0.0, 0.95, 1.0])

return borefield
return fig

0 comments on commit 2523f67

Please sign in to comment.