8000 Default boxplot style rebase by jenshnielsen · Pull Request #6481 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Default boxplot style rebase #6481

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 13 commits into from
May 30, 2016
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
Next Next commit
DEF: use the --default-- style for bxp/boxplot tests
  • Loading branch information
phobson authored and jenshnielsen committed May 28, 2016
commit 67a7888e7f4c1e4f9ab1c40f290d8914a033d78b
86 changes: 57 additions & 29 deletions lib/matplotlib/tests/test_axes.py
8000
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,8 @@ def bump(a):

@image_comparison(baseline_images=['bxp_baseline'],
extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_baseline():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1426,7 +1427,8 @@ def test_bxp_baseline():

@image_comparison(baseline_images=['bxp_rangewhis'],
extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_rangewhis():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1441,7 +1443,8 @@ def test_bxp_rangewhis():

@image_comparison(baseline_images=['bxp_precentilewhis'],
extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_precentilewhis():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1456,7 +1459,8 @@ def test_bxp_precentilewhis():

@image_comparison(baseline_images=['bxp_with_xlabels'],
extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_with_xlabels():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1472,7 +1476,8 @@ def test_bxp_with_xlabels():

@image_comparison(baseline_images=['bxp_horizontal'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_horizontal():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1486,7 +1491,8 @@ def test_bxp_horizontal():

@image_comparison(baseline_images=['bxp_with_ylabels'],
extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_with_ylabels():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1502,7 +1508,8 @@ def test_bxp_with_ylabels():

@image_comparison(baseline_images=['bxp_patchartist'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_patchartist():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1516,7 +1523,8 @@ def test_bxp_patchartist():

@image_comparison(baseline_images=['bxp_custompatchartist'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_custompatchartist():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1531,7 +1539,8 @@ def test_bxp_custompatchartist():

@image_comparison(baseline_images=['bxp_customoutlier'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_customoutlier():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1546,7 +1555,8 @@ def test_bxp_customoutlier():

@image_comparison(baseline_images=['bxp_withmean_custompoint'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_showcustommean():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1561,7 +1571,8 @@ def test_bxp_showcustommean():

@image_comparison(baseline_images=['bxp_custombox'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_custombox():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1576,7 +1587,8 @@ def test_bxp_custombox():

@image_comparison(baseline_images=['bxp_custommedian'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_custommedian():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1591,7 +1603,8 @@ def test_bxp_custommedian():

@image_comparison(baseline_images=['bxp_customcap'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_customcap():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1606,7 +1619,8 @@ def test_bxp_customcap():

@image_comparison(baseline_images=['bxp_customwhisker'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_customwhisker():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1621,7 +1635,8 @@ def test_bxp_customwhisker():

@image_comparison(baseline_images=['bxp_withnotch'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_shownotches():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1635,7 +1650,8 @@ def test_bxp_shownotches():

@image_comparison(baseline_images=['bxp_nocaps'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_nocaps():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1649,7 +1665,8 @@ def test_bxp_nocaps():

@image_comparison(baseline_images=['bxp_nobox'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_nobox():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1663,7 +1680,8 @@ def test_bxp_nobox():

@image_comparison(baseline_images=['bxp_withmean_point'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_showmean():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1677,7 +1695,8 @@ def test_bxp_showmean():

@image_comparison(baseline_images=['bxp_withmean_line'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_showmeanasline():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1691,7 +1710,8 @@ def test_bxp_showmeanasline():

@image_comparison(baseline_images=['bxp_scalarwidth'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_scalarwidth():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1705,7 +1725,8 @@ def test_bxp_scalarwidth():

@image_comparison(baseline_images=['bxp_customwidths'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_customwidths():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand All @@ -1719,7 +1740,8 @@ def test_bxp_customwidths():

@image_comparison(baseline_images=['bxp_custompositions'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_bxp_custompositions():
np.random.seed(937)
logstats = matplotlib.cbook.boxplot_stats(
Expand Down Expand Up @@ -1755,7 +1777,9 @@ def test_bxp_bad_positions():
assert_raises(ValueError, ax.bxp, logstats, positions=[2, 3])


@image_comparison(baseline_images=['boxplot', 'boxplot'], tol=1)
@image_comparison(baseline_images=['boxplot', 'boxplot'],
tol=1,
style='default')
def test_boxplot():
x = np.linspace(-7, 7, 140)
x = np.hstack([-25, x, 25])
Expand All @@ -1772,7 +1796,8 @@ def test_boxplot():


@image_comparison(baseline_images=['boxplot_sym2'],
remove_text=True, extensions=['png'])
remove_text=True, extensions=['png'],
style='default')
def test_boxplot_sym2():
x = np.linspace(-7, 7, 140)
x = np.hstack([-25, x, 25])
Expand All @@ -1787,7 +1812,8 @@ def test_boxplot_sym2():

@image_comparison(baseline_images=['boxplot_sym'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40},
style='default')
def test_boxplot_sym():
x = np.linspace(-7, 7, 140)
x = np.hstack([-25, x, 25])
Expand All @@ -1801,6 +1827,7 @@ def test_boxplot_sym():
baseline_images=['boxplot_autorange_false_whiskers',
'boxplot_autorange_true_whiskers'],
extensions=['png'],
style='default'
)
def test_boxplot_autorange_whiskers():
x = np.ones(140)
Expand All @@ -1822,7 +1849,8 @@ def _rc_test_bxp_helper(ax, rc_dict):
return ax

@image_comparison(baseline_images=['boxplot_rc_parameters'],
savefig_kwarg={'dpi': 100}, remove_text=True, tol=1)
savefig_kwarg={'dpi': 100}, remove_text=True,
tol=1, style='default')
def test_boxplot_rc_parameters():
fig, ax = plt.subplots(3)

Expand Down Expand Up @@ -1884,7 +1912,7 @@ def test_boxplot_rc_parameters():

@image_comparison(baseline_images=['boxplot_with_CIarray'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40}, style='default')
def test_boxplot_with_CIarray():
x = np.linspace(-7, 7, 140)
x = np.hstack([-25, x, 25])
Expand All @@ -1900,7 +1928,7 @@ def test_boxplot_with_CIarray():

@image_comparison(baseline_images=['boxplot_no_inverted_whisker'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40}, style='default')
def test_boxplot_no_weird_whisker():
x = np.array([3, 9000, 150, 88, 350, 200000, 1400, 960],
dtype=np.float64)
Expand Down Expand Up @@ -1947,7 +1975,7 @@ def test_boxplot_bad_ci_2():

@image_comparison(baseline_images=['boxplot_mod_artists_after_plotting'],
remove_text=True, extensions=['png'],
savefig_kwarg={'dpi': 40})
savefig_kwarg={'dpi': 40}, style='default')
def test_boxplot_mod_artist_after_plotting():
x = [0.15, 0.11, 0.06, 0.06, 0.12, 0.56, -0.56]
fig, ax = plt.subplots()
Expand Down
0