Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use facecolor instead of axisbg/axis_bgcolor #5501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 23, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add test for deprecation warning
  • Loading branch information
mdboom committed Nov 23, 2015
commit 78403284ef364a841713a3686d46d8acefcea24b
13 changes: 13 additions & 0 deletions 13 lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
from numpy import ma
from numpy import arange

import warnings

import matplotlib
from matplotlib.testing.decorators import image_comparison, cleanup
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -4088,6 +4090,17 @@ def test_violin_point_mass():
"""Violin plot should handle point mass pdf gracefully."""
plt.violinplot(np.array([0, 0]))


@cleanup
def test_axisbg_warning():
fig = plt.figure()
with warnings.catch_warnings(record=True) as w:
ax = matplotlib.axes.Axes(fig, [0, 0, 1, 1], axisbg='r')
assert len(w) == 1
assert (str(w[0].message).startswith(
("The axisbg attribute was deprecated in version 2.0.")))


if __name__ == '__main__':
import nose
import sys
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.