Skip to content

Commit a48f56b

Browse files
committed
Fix formatting
1 parent 2c5dc47 commit a48f56b

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

examples/Constraints_Continuous/interpoint.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ def chemical_reaction_model(df: pd.DataFrame) -> pd.DataFrame:
224224

225225
results_df = pd.DataFrame(results_log)
226226

227-
fig, axs = plt.subplots(1, 2, figsize=(10, 4))
227+
# fmt: off
228+
fig, axs = plt.subplots(1, 2, figsize=(10, 4));
229+
# fmt: on
228230

229231
plt.sca(axs[0])
230232
for exp_idx in range(BATCH_SIZE):
@@ -249,7 +251,9 @@ def chemical_reaction_model(df: pd.DataFrame) -> pd.DataFrame:
249251
)
250252
plt.axhline(y=60, color="red", linestyle="--", label="Required")
251253
plt.title("Solvent: Individual + Total")
252-
plt.legend()
254+
# fmt: off
255+
plt.legend();
256+
# fmt: on
253257

254258
plt.sca(axs[1])
255259
for exp_idx in range(BATCH_SIZE):
@@ -274,8 +278,9 @@ def chemical_reaction_model(df: pd.DataFrame) -> pd.DataFrame:
274278
)
275279
plt.axhline(y=30, color="red", linestyle="--", label="Limit")
276280
plt.title("Catalyst: Individual + Total")
277-
plt.legend()
281+
# fmt: off
282+
plt.legend();
283+
# fmt: on
278284

279285
plt.tight_layout()
280-
if not SMOKE_TEST:
281-
plt.savefig("interpoint.svg")
286+
plt.show()

0 commit comments

Comments
 (0)