Update plotter.py
* minor update for 1d plots
This commit is contained in:
committed by
Nicola Demo
parent
9bf057e2c6
commit
48b2e339b5
@@ -197,7 +197,7 @@ class Plotter:
|
|||||||
truth_solution = getattr(solver.problem, 'truth_solution', None)
|
truth_solution = getattr(solver.problem, 'truth_solution', None)
|
||||||
|
|
||||||
if len(v) == 1:
|
if len(v) == 1:
|
||||||
self._1d_plot(pts, predicted_output, method, truth_solution,
|
self._1d_plot(pts.extract(v), predicted_output, method, truth_solution,
|
||||||
**kwargs)
|
**kwargs)
|
||||||
elif len(v) == 2:
|
elif len(v) == 2:
|
||||||
self._2d_plot(pts, predicted_output, v, res, method, truth_solution,
|
self._2d_plot(pts, predicted_output, v, res, method, truth_solution,
|
||||||
@@ -208,7 +208,6 @@ class Plotter:
|
|||||||
plt.savefig(filename)
|
plt.savefig(filename)
|
||||||
else:
|
else:
|
||||||
plt.show()
|
plt.show()
|
||||||
plt.close()
|
|
||||||
|
|
||||||
def plot_loss(self,
|
def plot_loss(self,
|
||||||
trainer,
|
trainer,
|
||||||
|
|||||||
Reference in New Issue
Block a user