Skip to content

Commit e44580e

Browse files
ax_meta
1 parent d5c9fbf commit e44580e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

theforce/calculator/active.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,8 @@ def log_to_figure(file, figsize=(15, 10)):
422422
q = np.array(q)
423423
axes[0].plot(x, y)
424424
if len(meta) > 0:
425-
axes[0].plot(*zip(*meta), color='lime')
425+
ax_meta = axes[0].twinx()
426+
ax_meta.plot(*zip(*meta), color='lime')
426427
axes[0].scatter(r, s, color='r')
427428
axes[1].plot(*zip(*tem))
428429
axes[2].errorbar(p, q[:, 0], yerr=q[:, 1])

0 commit comments

Comments
 (0)