Skip to content

Commit

Permalink
Fixed legend
Browse files Browse the repository at this point in the history
  • Loading branch information
timerke committed Dec 14, 2023
1 parent 5295fb6 commit 0514eb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions report_generator/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ def draw_ivc_for_pin(pin_info: PinInfo, index: int, file_name: str, scaling_type
else:
test_curve.clear_curve()

for curve in viewer.plot.curves:
if curve.curve is None:
curve.detach()
else:
curve.attach(viewer.plot)

viewer.plot.grab().save(file_name, format="PNG")


Expand Down

0 comments on commit 0514eb7

Please sign in to comment.