Skip to content

Commit

Permalink
[ci][python] apply isort to python-package/lightgbm/plotting.py #3958 (
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxue authored Feb 15, 2021
1 parent cdfe97f commit e9ea85b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-package/lightgbm/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np

from .basic import Booster, _log_warning
from .compat import MATPLOTLIB_INSTALLED, GRAPHVIZ_INSTALLED
from .compat import GRAPHVIZ_INSTALLED, MATPLOTLIB_INSTALLED
from .sklearn import LGBMModel


Expand Down Expand Up @@ -599,8 +599,8 @@ def plot_tree(booster, ax=None, tree_index=0, figsize=None, dpi=None,
The plot with single tree.
"""
if MATPLOTLIB_INSTALLED:
import matplotlib.pyplot as plt
import matplotlib.image as image
import matplotlib.pyplot as plt
else:
raise ImportError('You must install matplotlib to plot tree.')

Expand Down

0 comments on commit e9ea85b

Please sign in to comment.