Skip to content

Commit

Permalink
Update factory.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmvdbekerom committed Nov 2, 2023
1 parent 41945ac commit cefd9a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions radis/lbl/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ def eq_spectrum_gpu(
return s

def eq_spectrum_gpu_interactive(
self, var="transmittance", slit_function=0.0, plotkwargs={}, *vargs, **kwargs
self, var="transmittance", slit_function=0.0, mpl_backend='', plotkwargs={}, *vargs, **kwargs
) -> Spectrum:
"""
Expand Down Expand Up @@ -1344,7 +1344,8 @@ def eq_spectrum_gpu_interactive(
"""
from matplotlib import use

use("TkAgg")
if mpl_backend:
use(mpl_backend)

import matplotlib.pyplot as plt
from matplotlib.widgets import Slider
Expand Down

0 comments on commit cefd9a2

Please sign in to comment.