Skip to content

Commit 3fc2643

Browse files
authored
Merge pull request #803 from rasbt/depr-res
Remove depr. res from plot_decision_regions
2 parents d87638c + 402146f commit 3fc2643

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

docs/sources/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The CHANGELOG for the current development version is available at
2222
##### Changes
2323

2424
- Updates unit tests for scikit-learn 0.24.1 compatibility. ([#774](https://github.com/rasbt/mlxtend/pull/774))
25+
- Removes deprecated `res` argument from `plot_decision_regions`. ([#803](https://github.com/rasbt/mlxtend/pull/803))
2526

2627
##### Bug Fixes
2728

mlxtend/plotting/decision_regions.py

-15
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def plot_decision_regions(X, y, clf,
4949
filler_feature_ranges=None,
5050
ax=None,
5151
X_highlight=None,
52-
res=None,
5352
zoom_factor=1.,
5453
legend=1,
5554
hide_spines=True,
@@ -93,13 +92,6 @@ def plot_decision_regions(X, y, clf,
9392
one if ax=None.
9493
X_highlight : array-like, shape = [n_samples, n_features] (default: None)
9594
An array with data points that are used to highlight samples in `X`.
96-
res : float or array-like, shape = (2,) (default: None)
97-
This parameter was used to define the grid width,
98-
but it has been deprecated in favor of
99-
determining the number of points given the figure DPI and size
100-
automatically for optimal results and computational efficiency.
101-
To increase the resolution, it's is recommended to use to provide
102-
a `dpi argument via matplotlib, e.g., `plt.figure(dpi=600)`.
10395
zoom_factor : float (default: 1.0)
10496
Controls the scale of the x- and y-axis of the decision plot.
10597
hide_spines : bool (default: True)
@@ -135,13 +127,6 @@ def plot_decision_regions(X, y, clf,
135127
if ax is None:
136128
ax = plt.gca()
137129

138-
if res is not None:
139-
warnings.warn("The 'res' parameter has been deprecated."
140-
"To increase the resolution, it's is recommended"
141-
"to use to provide a `dpi argument via matplotlib,"
142-
"e.g., `plt.figure(dpi=600)`.",
143-
DeprecationWarning)
144-
145130
plot_testdata = True
146131
if not isinstance(X_highlight, np.ndarray):
147132
if X_highlight is not None:

0 commit comments

Comments
 (0)