Skip to content

Commit fa343d1

Browse files
committed
Matplotlib cleanup
1 parent fcc256b commit fa343d1

File tree

2 files changed

+1
-75
lines changed

2 files changed

+1
-75
lines changed

pandas/plotting/_core.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from pandas.plotting._compat import (_mpl_ge_1_3_1,
3434
_mpl_ge_1_5_0,
3535
_mpl_ge_2_0_0)
36-
from pandas.plotting._style import (mpl_stylesheet, plot_params,
36+
from pandas.plotting._style import (plot_params,
3737
_get_standard_colors)
3838
from pandas.plotting._tools import (_subplots, _flatten, table,
3939
_handle_shared_axes, _get_all_lines,
@@ -179,13 +179,6 @@ def _setup(self):
179179
if not _registered:
180180
from pandas.plotting import _converter
181181
_converter.register()
182-
183-
if _mpl_ge_1_5_0():
184-
# Compat with mp 1.5, which uses cycler.
185-
import cycler
186-
colors = mpl_stylesheet.pop('axes.color_cycle')
187-
mpl_stylesheet['axes.prop_cycle'] = cycler.cycler('color', colors)
188-
189182
_registered = True
190183

191184
def _validate_color_args(self):

pandas/plotting/_style.py

-67
Original file line numberDiff line numberDiff line change
@@ -14,73 +14,6 @@
1414
from pandas.plotting._compat import _mpl_ge_2_0_0
1515

1616

17-
# Extracted from https://gist.github.com/huyng/816622
18-
# this is the rcParams set when setting display.with_mpl_style
19-
# to True.
20-
mpl_stylesheet = {
21-
'axes.axisbelow': True,
22-
'axes.color_cycle': ['#348ABD',
23-
'#7A68A6',
24-
'#A60628',
25-
'#467821',
26-
'#CF4457',
27-
'#188487',
28-
'#E24A33'],
29-
'axes.edgecolor': '#bcbcbc',
30-
'axes.facecolor': '#eeeeee',
31-
'axes.grid': True,
32-
'axes.labelcolor': '#555555',
33-
'axes.labelsize': 'large',
34-
'axes.linewidth': 1.0,
35-
'axes.titlesize': 'x-large',
36-
'figure.edgecolor': 'white',
37-
'figure.facecolor': 'white',
38-
'figure.figsize': (6.0, 4.0),
39-
'figure.subplot.hspace': 0.5,
40-
'font.family': 'monospace',
41-
'font.monospace': ['Andale Mono',
42-
'Nimbus Mono L',
43-
'Courier New',
44-
'Courier',
45-
'Fixed',
46-
'Terminal',
47-
'monospace'],
48-
'font.size': 10,
49-
'interactive': True,
50-
'keymap.all_axes': ['a'],
51-
'keymap.back': ['left', 'c', 'backspace'],
52-
'keymap.forward': ['right', 'v'],
53-
'keymap.fullscreen': ['f'],
54-
'keymap.grid': ['g'],
55-
'keymap.home': ['h', 'r', 'home'],
56-
'keymap.pan': ['p'],
57-
'keymap.save': ['s'],
58-
'keymap.xscale': ['L', 'k'],
59-
'keymap.yscale': ['l'],
60-
'keymap.zoom': ['o'],
61-
'legend.fancybox': True,
62-
'lines.antialiased': True,
63-
'lines.linewidth': 1.0,
64-
'patch.antialiased': True,
65-
'patch.edgecolor': '#EEEEEE',
66-
'patch.facecolor': '#348ABD',
67-
'patch.linewidth': 0.5,
68-
'toolbar': 'toolbar2',
69-
'xtick.color': '#555555',
70-
'xtick.direction': 'in',
71-
'xtick.major.pad': 6.0,
72-
'xtick.major.size': 0.0,
73-
'xtick.minor.pad': 6.0,
74-
'xtick.minor.size': 0.0,
75-
'ytick.color': '#555555',
76-
'ytick.direction': 'in',
77-
'ytick.major.pad': 6.0,
78-
'ytick.major.size': 0.0,
79-
'ytick.minor.pad': 6.0,
80-
'ytick.minor.size': 0.0
81-
}
82-
83-
8417
def _get_standard_colors(num_colors=None, colormap=None, color_type='default',
8518
color=None):
8619
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)