Skip to content

Commit 8cea0c0

Browse files
authored
[Example]change the order of plt's code (#1052)
1 parent 7235859 commit 8cea0c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/deepcfd/deepcfd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ def predict_and_save_plot(
194194
)
195195
plt.colorbar(orientation="horizontal")
196196
plt.tight_layout()
197-
plt.show()
198197
plt.savefig(os.path.join(plot_dir, f"cfd_{index}.png"), bbox_inches="tight")
198+
plt.show()
199199

200200

201201
def train(cfg: DictConfig):

0 commit comments

Comments
 (0)