Skip to content

Commit

Permalink
Merge pull request #1120 from mdboom/issue1120
Browse files Browse the repository at this point in the history
FAIL: matplotlib.tests.test_transforms.test_pre_transform_plotting.test on Python 3.x
  • Loading branch information
mdboom committed Sep 5, 2012
2 parents 74793c9 + 11ffa8a commit b5eb1d0
Show file tree
Hide file tree
Showing 9 changed files with 1,493 additions and 1,493 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/_cm.py
Expand Up @@ -4,7 +4,7 @@
"""

from __future__ import print_function
from __future__ import print_function, division
import numpy as np

_binary_data = {
Expand Down Expand Up @@ -1625,7 +1625,7 @@ def gfunc32(x):
}

# This bipolar color map was generated from CoolWarmFloat33.csv of
# "Diverging Color Maps for Scientific Visualization" by Kenneth Moreland.
# "Diverging Color Maps for Scientific Visualization" by Kenneth Moreland.
# <http://www.cs.unm.edu/~kmorel/documents/ColorMaps/>
_coolwarm_data = {
'red': [
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/cm.py
Expand Up @@ -4,7 +4,7 @@
and a mixin class for adding color mapping functionality.
"""
from __future__ import print_function
from __future__ import print_function, division

import os

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/collections.py
Expand Up @@ -158,7 +158,7 @@ def get_transforms(self):

def get_offset_transform(self):
t = self._transOffset
if (not isinstance(t, transforms.Transform)
if (not isinstance(t, transforms.Transform)
and hasattr(t, '_as_mpl_transform')):
t = t._as_mpl_transform(self.axes)
return t
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/colors.py
Expand Up @@ -48,7 +48,7 @@
Finally, legal html names for colors, like 'red', 'burlywood' and
'chartreuse' are supported.
"""
from __future__ import print_function
from __future__ import print_function, division
import re
import numpy as np
from numpy import ma
Expand Down Expand Up @@ -219,7 +219,7 @@ def is_color_like(c):

def rgb2hex(rgb):
'Given an rgb or rgba sequence of 0-1 floats, return the hex string'
return '#%02x%02x%02x' % tuple([round(val*255) for val in rgb[:3]])
return '#%02x%02x%02x' % tuple([np.round(val*255) for val in rgb[:3]])

hexColorPattern = re.compile("\A#[a-fA-F0-9]{6}\Z")

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/quiver.py
Expand Up @@ -15,7 +15,7 @@
"""


from __future__ import print_function
from __future__ import print_function, division
import numpy as np
from numpy import ma
import matplotlib.collections as collections
Expand Down
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b5eb1d0

Please sign in to comment.