diff --git a/CHANGES b/CHANGES
--- a/CHANGES
+++ b/CHANGES
@@ -3,3 +3,6 @@
 
 0.1.0.1:
 		* bumped gtk3 library dependency
+
+0.1.0.2:
+		* update for hmatrix 0.17
diff --git a/lib/Graphics/Rendering/Plot/Gtk.hs b/lib/Graphics/Rendering/Plot/Gtk.hs
--- a/lib/Graphics/Rendering/Plot/Gtk.hs
+++ b/lib/Graphics/Rendering/Plot/Gtk.hs
@@ -1,7 +1,7 @@
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Graphics.Rendering.Plot.Gtk
--- Copyright   :  (c) A. V. H. McPhail 2014
+-- Copyright   :  (c) A. V. H. McPhail 2014, 2015
 -- License     :  BSD3
 --
 -- Maintainer  :  haskell.vivian.mcphail <at> gmail <dot> com
diff --git a/lib/Graphics/Rendering/Plot/HMatrix.hs b/lib/Graphics/Rendering/Plot/HMatrix.hs
--- a/lib/Graphics/Rendering/Plot/HMatrix.hs
+++ b/lib/Graphics/Rendering/Plot/HMatrix.hs
@@ -32,7 +32,8 @@
 -----------------------------------------------------------------------------
 {- Function signatures copied from hmatrix, (c) A. Ruiz -}
 
-import Numeric.LinearAlgebra
+import Numeric.LinearAlgebra hiding(matrix)
+import Numeric.LinearAlgebra.Data()
 
 {- COMPATABILITY -} 
 import Data.List(intersperse)
@@ -114,7 +115,7 @@
 
 -- | From vectors x and y, it generates a pair of matrices to be used as x and y arguments for matrix functions.
 meshdom :: Vector Double -> Vector Double -> (Matrix Double , Matrix Double)
-meshdom r1 r2 = (outer r1 (constant 1 (dim r2)), outer (constant 1 (dim r1)) r2)
+meshdom r1 r2 = (outer r1 (konst 1 (size r2)), outer (konst 1 (size r1)) r2)
 
 gnuplotX :: String -> IO ()
 gnuplotX command = do { _ <- system cmdstr; return()} where
diff --git a/plot-gtk3.cabal b/plot-gtk3.cabal
--- a/plot-gtk3.cabal
+++ b/plot-gtk3.cabal
@@ -1,5 +1,5 @@
 Name:                plot-gtk3
-Version:             0.1.0.1
+Version:             0.1.0.2
 License:             BSD3
 License-file:        LICENSE
 Copyright:           (c) A.V.H. McPhail 2014, 2015
@@ -29,7 +29,7 @@
                      process,
                      glib >= 0.11 && < 0.14,
                      gtk3 >= 0.13 && < 0.15,
-                     hmatrix >= 0.10,
+                     hmatrix >= 0.17,
                      plot < 0.3
 
   Extensions:        
