1
1
import sys
2
2
3
- from .MatplotlibUtils import plt_show
3
+ from .MatplotlibUtils import plt_show , plt_figure
4
4
from .Parameter import strParameter , OutputParameter
5
5
from .Units import *
6
6
import geophires_x .Model as Model
@@ -211,7 +211,7 @@ def Calculate(self, model: Model):
211
211
212
212
# create plots of imported SUTRA data
213
213
plt .close ('all' )
214
- plt . figure (1 )
214
+ plt_figure (1 )
215
215
year = np .arange (1 , 31 , 1 ) # make an array of days for plot x-axis
216
216
plt .plot (year , abs (self .AnnualHeatStored .value ), label = 'Annual Heat Stored' )
217
217
plt .plot (year , abs (self .AnnualHeatSupplied .value ), label = 'Annual Heat Supplied' )
@@ -222,7 +222,7 @@ def Calculate(self, model: Model):
222
222
plt .title ('SUTRA Heat Balance' )
223
223
plt_show (block = False )
224
224
225
- plt . figure (2 )
225
+ plt_figure (2 )
226
226
plt .plot (self .TimeProfile .value [0 :- 1 :2 ], self .TargetHeat .value [0 :- 1 :2 ], label = 'Target Heat' )
227
227
plt .plot (self .TimeProfile .value [0 :- 1 :2 ], self .SimulatedHeat .value [0 :- 1 :2 ], label = 'Simulated Heat' )
228
228
plt .xlabel ('Hour' )
@@ -232,7 +232,7 @@ def Calculate(self, model: Model):
232
232
plt .title ('SUTRA Target and Simulated Heat' )
233
233
plt_show (block = False )
234
234
235
- plt . figure (3 )
235
+ plt_figure (3 )
236
236
plt .plot (self .TimeProfile .value [0 :- 1 :2 ], self .StorageWellFlowRate .value [0 :- 1 :2 ], label = 'Storage Well Flow Rate' )
237
237
plt .plot (self .TimeProfile .value [0 :- 1 :2 ], self .BalanceWellFlowRate .value [0 :- 1 :2 ], label = 'Balance Well Flow Rate' )
238
238
plt .xlabel ('Hour' )
@@ -242,7 +242,7 @@ def Calculate(self, model: Model):
242
242
plt .title ('SUTRA Well Flow Rates' )
243
243
plt_show (block = False )
244
244
245
- plt . figure (4 )
245
+ plt_figure (4 )
246
246
plt .plot (self .TimeProfile .value [0 :- 1 :2 ], self .StorageWellTemperature .value [0 :- 1 :2 ], label = 'Storage Well Temperature' )
247
247
plt .plot (self .TimeProfile .value [0 :- 1 :2 ], self .BalanceWellTemperature .value [0 :- 1 :2 ], label = 'Balance Well Temperature' )
248
248
plt .xlabel ('Hour' )
0 commit comments