Skip to content

Commit

Permalink
Update plotter.py
Browse files Browse the repository at this point in the history
* minor update for 1d plots
  • Loading branch information
dario-coscia authored and ndem0 committed Nov 17, 2023
1 parent 9bf057e commit 48b2e33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pina/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def plot(self,
truth_solution = getattr(solver.problem, 'truth_solution', None)

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)
elif len(v) == 2:
self._2d_plot(pts, predicted_output, v, res, method, truth_solution,
Expand All @@ -208,7 +208,6 @@ def plot(self,
plt.savefig(filename)
else:
plt.show()
plt.close()

def plot_loss(self,
trainer,
Expand Down

0 comments on commit 48b2e33

Please sign in to comment.