Skip to content

Commit

Permalink
fix imgui_fig
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Oct 6, 2024
1 parent 1e2166e commit 92d2d44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindings/imgui_bundle/imgui_fig.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""
import matplotlib
matplotlib.use('Agg') # set the renderer to Tk
from matplotlib.figure import Figure # noqa: E402
import numpy # noqa: E402
import cv2 # noqa: E402
import matplotlib # noqa: E402
Expand All @@ -15,7 +16,7 @@


@static(fig_image_cache=dict())
def _fig_to_image(label_id: str, figure: matplotlib.figure.Figure, refresh_image: bool = False) -> numpy.ndarray:
def _fig_to_image(label_id: str, figure: Figure, refresh_image: bool = False) -> numpy.ndarray:
"""
Convert a Matplotlib figure to an RGB image.
Expand Down

0 comments on commit 92d2d44

Please sign in to comment.