diff --git a/matplotlib2tikz.py b/matplotlib2tikz.py
index <HASH>..<HASH> 100644
--- a/matplotlib2tikz.py
+++ b/matplotlib2tikz.py
@@ -666,7 +666,7 @@ def _transform_to_data_coordinates(obj, xdata, ydata):
     '''
     try:
         import matplotlib.transforms
-        points = zip(xdata, ydata)
+        points = np.array(zip(xdata, ydata))
         transform = matplotlib.transforms.composite_transform_factory(
             obj.get_transform(),
             obj.get_axes().transData.inverted()
Fix transformation error

In "_transform_to_data_coordinates" the points are passed to
"Transform.transform" which expects a numpy array. Fix this by
converting points to numpy array.