<h3 dir="auto">Bug summary</h3>
<p dir="auto">test_figure.py::test_subfigure_ss[png] FAILED on power and same test passed on x86 machine</p>
<h3 dir="auto">Code for reproduction</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pytest lib/matplotlib/tests/test_figure.py -v"><pre class="notranslate"><span class="pl-s1">pytest</span> <span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">tests</span><span class="pl-c1">/</span><span class="pl-s1">test_figure</span>.<span class="pl-s1">py</span> <span class="pl-c1">-</span><span class="pl-s1">v</span></pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto">bash-4.4# pytest lib/matplotlib/tests/test_figure.py -v<br>
========================================================= test session starts =========================================================<br>
platform linux -- Python 3.8.12, pytest-7.1.2, pluggy-1.0.0 -- /usr/bin/python3.8<br>
cachedir: .pytest_cache<br>
rootdir: /matplotlib, configfile: pytest.ini<br>
collected 87 items</p>
<p dir="auto">lib/matplotlib/tests/test_figure.py::test_align_labels[png] PASSED                                                              [  1%]<br>
lib/matplotlib/tests/test_figure.py::test_align_labels[svg] SKIPPED (Cannot compare svg files on this system)                   [  2%]<br>
lib/matplotlib/tests/test_figure.py::test_figure_label PASSED                                                                   [  3%]<br>
lib/matplotlib/tests/test_figure.py::test_fignum_exists PASSED                                                                  [  4%]<br>
lib/matplotlib/tests/test_figure.py::test_clf_keyword PASSED                                                                    [  5%]<br>
lib/matplotlib/tests/test_figure.py::test_figure[png] PASSED                                                                    [  6%]<br>
lib/matplotlib/tests/test_figure.py::test_figure[pdf] SKIPPED (Cannot compare pdf files on this system)                         [  8%]<br>
lib/matplotlib/tests/test_figure.py::test_figure[svg] SKIPPED (Cannot compare svg files on this system)                         [  9%]<br>
lib/matplotlib/tests/test_figure.py::test_figure_legend[png] PASSED                                                             [ 10%]<br>
lib/matplotlib/tests/test_figure.py::test_figure_legend[pdf] SKIPPED (Cannot compare pdf files on this system)                  [ 11%]<br>
lib/matplotlib/tests/test_figure.py::test_figure_legend[svg] SKIPPED (Cannot compare svg files on this system)                  [ 12%]<br>
lib/matplotlib/tests/test_figure.py::test_gca PASSED                                                                            [ 13%]<br>
lib/matplotlib/tests/test_figure.py::test_add_subplot_subclass PASSED                                                           [ 14%]<br>
lib/matplotlib/tests/test_figure.py::test_add_subplot_invalid PASSED                                                            [ 16%]<br>
lib/matplotlib/tests/test_figure.py::test_suptitle[png] PASSED                                                                  [ 17%]<br>
lib/matplotlib/tests/test_figure.py::test_suptitle[pdf] SKIPPED (Cannot compare pdf files on this system)                       [ 18%]<br>
lib/matplotlib/tests/test_figure.py::test_suptitle[svg] SKIPPED (Cannot compare svg files on this system)                       [ 19%]<br>
lib/matplotlib/tests/test_figure.py::test_suptitle_fontproperties PASSED                                                        [ 20%]<br>
lib/matplotlib/tests/test_figure.py::test_alpha[png] PASSED                                                                     [ 21%]<br>
lib/matplotlib/tests/test_figure.py::test_alpha[svg] SKIPPED (Cannot compare svg files on this system)                          [ 22%]<br>
lib/matplotlib/tests/test_figure.py::test_too_many_figures PASSED                                                               [ 24%]<br>
lib/matplotlib/tests/test_figure.py::test_iterability_axes_argument PASSED                                                      [ 25%]<br>
lib/matplotlib/tests/test_figure.py::test_set_fig_size PASSED                                                                   [ 26%]<br>
lib/matplotlib/tests/test_figure.py::test_axes_remove PASSED                                                                    [ 27%]<br>
lib/matplotlib/tests/test_figure.py::test_figaspect PASSED                                                                      [ 28%]<br>
lib/matplotlib/tests/test_figure.py::test_autofmt_xdate[None] PASSED                                                            [ 29%]<br>
lib/matplotlib/tests/test_figure.py::test_autofmt_xdate[both] PASSED                                                            [ 31%]<br>
lib/matplotlib/tests/test_figure.py::test_autofmt_xdate[major] PASSED                                                           [ 32%]<br>
lib/matplotlib/tests/test_figure.py::test_autofmt_xdate[minor] PASSED                                                           [ 33%]<br>
lib/matplotlib/tests/test_figure.py::test_change_dpi PASSED                                                                     [ 34%]<br>
lib/matplotlib/tests/test_figure.py::test_invalid_figure_size[1-nan] PASSED                                                     [ 35%]<br>
lib/matplotlib/tests/test_figure.py::test_invalid_figure_size[-1-1] PASSED                                                      [ 36%]<br>
lib/matplotlib/tests/test_figure.py::test_invalid_figure_size[inf-1] PASSED                                                     [ 37%]<br>
lib/matplotlib/tests/test_figure.py::test_invalid_figure_add_axes PASSED                                                        [ 39%]<br>
lib/matplotlib/tests/test_figure.py::test_subplots_shareax_loglabels PASSED                                                     [ 40%]<br>
lib/matplotlib/tests/test_figure.py::test_savefig PASSED                                                                        [ 41%]<br>
lib/matplotlib/tests/test_figure.py::test_savefig_warns PASSED                                                                  [ 42%]<br>
lib/matplotlib/tests/test_figure.py::test_savefig_backend PASSED                                                                [ 43%]<br>
lib/matplotlib/tests/test_figure.py::test_figure_repr PASSED                                                                    [ 44%]<br>
lib/matplotlib/tests/test_figure.py::test_warn_cl_plus_tl PASSED                                                                [ 45%]<br>
lib/matplotlib/tests/test_figure.py::test_add_artist[png] PASSED                                                                [ 47%]<br>
lib/matplotlib/tests/test_figure.py::test_add_artist[pdf] SKIPPED (Don't know how to convert .pdf files to png)                 [ 48%]<br>
lib/matplotlib/tests/test_figure.py::test_fspath[png] PASSED                                                                    [ 49%]<br>
lib/matplotlib/tests/test_figure.py::test_fspath[pdf] PASSED                                                                    [ 50%]<br>
lib/matplotlib/tests/test_figure.py::test_fspath[ps] PASSED                                                                     [ 51%]<br>
lib/matplotlib/tests/test_figure.py::test_fspath[eps] PASSED                                                                    [ 52%]<br>
lib/matplotlib/tests/test_figure.py::test_fspath[svg] PASSED                                                                    [ 54%]<br>
lib/matplotlib/tests/test_figure.py::test_tightbbox PASSED                                                                      [ 55%]<br>
lib/matplotlib/tests/test_figure.py::test_axes_removal PASSED                                                                   [ 56%]<br>
lib/matplotlib/tests/test_figure.py::test_removed_axis PASSED                                                                   [ 57%]<br>
lib/matplotlib/tests/test_figure.py::test_picking_does_not_stale PASSED                                                         [ 58%]<br>
lib/matplotlib/tests/test_figure.py::test_add_subplot_twotuple PASSED                                                           [ 59%]<br>
lib/matplotlib/tests/test_figure.py::test_tightbbox_box_aspect[svg] SKIPPED (Cannot compare svg files on this system)           [ 60%]<br>
lib/matplotlib/tests/test_figure.py::test_animated_with_canvas_change[svg] SKIPPED (Don't know how to convert .svg files to...) [ 62%]<br>
lib/matplotlib/tests/test_figure.py::test_animated_with_canvas_change[pdf] SKIPPED (Don't know how to convert .pdf files to...) [ 63%]<br>
lib/matplotlib/tests/test_figure.py::test_animated_with_canvas_change[eps] SKIPPED (Don't know how to convert .eps files to...) [ 64%]<br>
lib/matplotlib/tests/test_figure.py::test_animated_with_canvas_change[png] PASSED                                               [ 65%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_basic[x0-png] PASSED                                               [ 66%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_basic[x1-png] PASSED                                               [ 67%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_all_nested[png] PASSED                                             [ 68%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_nested[png] PASSED                                                 [ 70%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_nested_tuple[png] PASSED                                           [ 71%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_empty[x0-None-png] PASSED                                          [ 72%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_empty[x1-SKIP-png] PASSED                                          [ 73%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_empty[x2-0-png] PASSED                                             [ 74%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_empty[x3-None-png] PASSED                                          [ 75%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_empty[x4-SKIP-png] PASSED                                          [ 77%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_empty[x5-0-png] PASSED                                             [ 78%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_fail_list_of_str PASSED                                            [ 79%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_subplot_kw[subplot_kw0-png] PASSED                                 [ 80%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_subplot_kw[subplot_kw1-png] PASSED                                 [ 81%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_subplot_kw[None-png] PASSED                                        [ 82%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_string_parser PASSED                                               [ 83%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_single_str_input[AAA\nBBB-png] PASSED                              [ 85%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_single_str_input[\nAAA\nBBB\n-png] PASSED                          [ 86%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_single_str_input[ABC\nDEF-png] PASSED                              [ 87%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_fail[x0-(?m)we found that the label .A. specifies a non-rectangular or non-contiguous area.] PASSED [ 88%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_fail[x1-There are duplicate keys .* between the outer layout] PASSED [ 89%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_fail[AAA\nc\nBBB-All of the rows must be the same length] PASSED   [ 90%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_fail[x3-All of the rows must be the same length] PASSED            [ 91%]<br>
lib/matplotlib/tests/test_figure.py::TestSubplotMosaic::test_hashable_keys[png] PASSED                                          [ 93%]<br>
lib/matplotlib/tests/test_figure.py::test_reused_gridspec PASSED                                                                [ 94%]<br>
lib/matplotlib/tests/test_figure.py::test_subfigure[png] PASSED                                                                 [ 95%]<br>
lib/matplotlib/tests/test_figure.py::test_subfigure_ss[png] FAILED                                                              [ 96%]<br>
lib/matplotlib/tests/test_figure.py::test_subfigure_double[png] PASSED                                                          [ 97%]<br>
lib/matplotlib/tests/test_figure.py::test_add_subplot_kwargs PASSED                                                             [ 98%]<br>
lib/matplotlib/tests/test_figure.py::test_add_axes_kwargs PASSED                                                                [100%]</p>
<p dir="auto">============================================================== FAILURES ===============================================================<br>
_______________________________________________________ test_subfigure_ss[png] ________________________________________________________</p>
<p dir="auto">expected = '/matplotlib/result_images/test_figure/test_subfigure_ss-expected.png'<br>
actual = PosixPath('/matplotlib/result_images/test_figure/test_subfigure_ss.png'), tol = 0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def _raise_on_image_difference(expected, actual, tol):
    __tracebackhide__ = True

    err = compare_images(expected, actual, tol, in_decorator=True)
    if err:
        for key in [&quot;actual&quot;, &quot;expected&quot;, &quot;diff&quot;]:
            err[key] = os.path.relpath(err[key])"><pre class="notranslate"><code class="notranslate">def _raise_on_image_difference(expected, actual, tol):
    __tracebackhide__ = True

    err = compare_images(expected, actual, tol, in_decorator=True)
    if err:
        for key in ["actual", "expected", "diff"]:
            err[key] = os.path.relpath(err[key])
</code></pre></div>
<blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="      raise ImageComparisonFailure("><pre class="notranslate"><code class="notranslate">      raise ImageComparisonFailure(
</code></pre></div>
</blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="            ('images not close (RMS %(rms).3f):'
                '\n\t%(actual)s\n\t%(expected)s\n\t%(diff)s') % err)"><pre class="notranslate"><code class="notranslate">            ('images not close (RMS %(rms).3f):'
                '\n\t%(actual)s\n\t%(expected)s\n\t%(diff)s') % err)
</code></pre></div>
<p dir="auto">E           matplotlib.testing.exceptions.ImageComparisonFailure: images not close (RMS 0.012):<br>
E               result_images/test_figure/test_subfigure_ss.png<br>
E               result_images/test_figure/test_subfigure_ss-expected.png<br>
E               result_images/test_figure/test_subfigure_ss-failed-diff.png</p>
<p dir="auto">lib/matplotlib/testing/decorators.py:139: ImageComparisonFailure<br>
======================================================= short test summary info =======================================================<br>
FAILED lib/matplotlib/tests/test_figure.py::test_subfigure_ss[png] - matplotlib.testing.exceptions.ImageComparisonFailure: images no...<br>
============================================== 1 failed, 73 passed, 13 skipped in 18.09s ==============================================</p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto">All test should pass</p>
<h3 dir="auto">Additional information</h3>
<p dir="auto">All test passed on rhel x86_64 but failed on ppc64le architecture.</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">RHEL</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">v3.4.1</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">agg</p>
<h3 dir="auto">Python version</h3>
<p dir="auto">python 3.8</p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto">NA</p>
<h3 dir="auto">Installation</h3>
<p dir="auto">git checkout</p>
<p dir="auto">table.py has some lingering calls to long deprecated bbox_all().</p>