We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b4fc6d commit 2597bc9Copy full SHA for 2597bc9
pandas/plotting/_matplotlib/__init__.py
@@ -1,5 +1,3 @@
1
-import matplotlib.pyplot as plt
2
-
3
from pandas._config import get_option
4
5
from pandas.plotting._matplotlib.boxplot import (
@@ -31,6 +29,10 @@
31
29
32
30
33
def plot(data, kind, **kwargs):
+ # Importing pyplot at the top of the file (before the converters are
+ # registered) causes problems in matplotlib 2 (converters seem to not
34
+ # work)
35
+ import matplotlib.pyplot as plt
36
if kwargs.pop('reuse_plot', False):
37
ax = kwargs.get('ax')
38
if ax is None and len(plt.get_fignums()) > 0:
0 commit comments