You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@climate.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/23 00:15:44 UTC

[jira] [Commented] (CLIMATE-895) Make plotter compatible with matplotlib 2.0

    [ https://issues.apache.org/jira/browse/CLIMATE-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15879536#comment-15879536 ] 

ASF GitHub Bot commented on CLIMATE-895:
----------------------------------------

GitHub user agoodm opened a pull request:

    https://github.com/apache/climate/pull/426

    [CLIMATE-895] Make plotter compatible with matplotlib 2.0

    The title is a slight misnomer, what's actually being done is making sure that plotting behavior is more consistent between user-installed matplotlib versions.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/agoodm/climate CLIMATE-895

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/climate/pull/426.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #426
    
----
commit bd1b8edef58b73abfaf873d46bebf125b8fbc8c5
Author: Alex Goodman <ag...@users.noreply.github.com>
Date:   2017-02-23T00:11:15Z

    Make automatic contour intervals consistent between matplotlib versions

----


> Make plotter compatible with matplotlib 2.0
> -------------------------------------------
>
>                 Key: CLIMATE-895
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-895
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>          Components: visualization
>    Affects Versions: 1.1.0
>            Reporter: Alex Goodman
>            Assignee: Alex Goodman
>            Priority: Blocker
>             Fix For: 1.2.0
>
>
> Reported on the mailing list:
> {code}
> $ ./test.sh
> ...
> ======================================================================
> FAIL: test_odd_nice_intervals
> (ocw.tests.test_plotter.TestNiceIntervalsFunction)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File
> "/home/toddg/projects/climate/climate/ocw/tests/test_plotter.py", line
> 46, in test_odd_nice_intervals
>      np.testing.assert_array_equal(result, expected_array)
>    File
> "/opt/anaconda3/envs/python27/lib/python2.7/site-packages/numpy/testing/utils.py",
> line 871, in assert_array_equal
>      verbose=verbose, header='Arrays are not equal')
>    File
> "/opt/anaconda3/envs/python27/lib/python2.7/site-packages/numpy/testing/utils.py",
> line 796, in assert_array_compare
>      raise AssertionError(msg)
> AssertionError:
> Arrays are not equal
> (mismatch 80.0%)
>   x: array([-1.6, -0.8,  0. ,  0.8,  1.6])
>   y: array([-2., -1.,  0.,  1.,  2.])
> ----------------------------------------------------------------------
> Ran 206 tests in 126.232s
> FAILED (failures=1)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)