Unverified Commit e9ea85bd authored by Zhuyi Xue's avatar Zhuyi Xue Committed by GitHub
Browse files

[ci][python] apply isort to python-package/lightgbm/plotting.py #3958 (#3972)

parent cdfe97f5
...@@ -6,7 +6,7 @@ from io import BytesIO ...@@ -6,7 +6,7 @@ from io import BytesIO
import numpy as np import numpy as np
from .basic import Booster, _log_warning from .basic import Booster, _log_warning
from .compat import MATPLOTLIB_INSTALLED, GRAPHVIZ_INSTALLED from .compat import GRAPHVIZ_INSTALLED, MATPLOTLIB_INSTALLED
from .sklearn import LGBMModel from .sklearn import LGBMModel
...@@ -599,8 +599,8 @@ def plot_tree(booster, ax=None, tree_index=0, figsize=None, dpi=None, ...@@ -599,8 +599,8 @@ def plot_tree(booster, ax=None, tree_index=0, figsize=None, dpi=None,
The plot with single tree. The plot with single tree.
""" """
if MATPLOTLIB_INSTALLED: if MATPLOTLIB_INSTALLED:
import matplotlib.pyplot as plt
import matplotlib.image as image import matplotlib.image as image
import matplotlib.pyplot as plt
else: else:
raise ImportError('You must install matplotlib to plot tree.') raise ImportError('You must install matplotlib to plot tree.')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment