Uploaded image for project: 'Apache Open Climate Workbench (Retired)'
  1. Apache Open Climate Workbench (Retired)
  2. CLIMATE-895

Make plotter compatible with matplotlib 2.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • visualization
    • None

    Description

      Reported on the mailing list:

      $ ./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)
      

      Attachments

        Issue Links

          Activity

            People

              agoodman Alex Goodman
              agoodman Alex Goodman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: