hunk ./lib/Graphics/Rendering/Plot/Figure.hs 54 - , Function(), Series(), MinMaxSeries(), ErrorSeries() + , Function(), VectorFunction(), Series(), MinMaxSeries(), ErrorSeries() hunk ./lib/Graphics/Rendering/Plot/Figure/Plot.hs 287 - let v = cmap f (linspace 100 (-1,1)) + let v = f (linspace 100 (-1,1)) hunk ./lib/Graphics/Rendering/Plot/Figure/Plot.hs 290 - let v = cmap f x + let v = f x hunk ./lib/Graphics/Rendering/Plot/Figure/Plot/Data.hs 531 -instance Ordinate Function where toOrdinate f = OrdFunction Lower f Nothing +instance Ordinate Function where toOrdinate f = OrdFunction Lower (cmap f) Nothing +instance Ordinate VectorFunction where toOrdinate f = OrdFunction Lower f Nothing hunk ./lib/Graphics/Rendering/Plot/Figure/Plot/Data.hs 537 -instance Ordinate (Function,AxisSide) where toOrdinate (f,ax) = OrdFunction ax f Nothing +instance Ordinate (Function,AxisSide) where toOrdinate (f,ax) = OrdFunction ax (cmap f) Nothing +instance Ordinate (VectorFunction,AxisSide) where toOrdinate (f,ax) = OrdFunction ax f Nothing hunk ./lib/Graphics/Rendering/Plot/Figure/Plot/Data.hs 543 -instance Ordinate (Function,SeriesLabel) where toOrdinate (f,la) = OrdFunction Lower f (Just la) +instance Ordinate (Function,SeriesLabel) where toOrdinate (f,la) = OrdFunction Lower (cmap f) (Just la) +instance Ordinate (VectorFunction,SeriesLabel) where toOrdinate (f,la) = OrdFunction Lower f (Just la) hunk ./lib/Graphics/Rendering/Plot/Figure/Plot/Data.hs 549 -instance Ordinate (Function,AxisSide,SeriesLabel) where toOrdinate (f,ax,la) = OrdFunction ax f (Just la) +instance Ordinate (Function,AxisSide,SeriesLabel) where toOrdinate (f,ax,la) = OrdFunction ax (cmap f) (Just la) +instance Ordinate (VectorFunction,AxisSide,SeriesLabel) where toOrdinate (f,ax,la) = OrdFunction ax f (Just la) hunk ./lib/Graphics/Rendering/Plot/Render/Plot/Data.hs 276 - return $ Left $ Left ((True,t),logSeries ysc $ cmap f t) + return $ Left $ Left ((True,t),logSeries ysc $ f t) hunk ./lib/Graphics/Rendering/Plot/Types.hs 288 -type Function = (Double -> Double) +type Function = Double -> Double +type VectorFunction = Vector Double -> Vector Double hunk ./lib/Graphics/Rendering/Plot/Types.hs 317 -data Ordinates = OrdFunction AxisSide Function (Maybe SeriesLabel) +data Ordinates = OrdFunction AxisSide VectorFunction (Maybe SeriesLabel) hunk ./CHANGES 134 - hunk ./CHANGES 135 +0.2.3.7: + * implement vector functions thanks to alang9 on github hunk ./THANKS 8 - + * alang9 - implement vector functions hunk ./plot.cabal 2 -Version: 0.2.3.7 +Version: 0.2.3.6 hunk ./plot.cabal 5 -Copyright: (c) A.V.H. McPhail 2010, 2012, 2013, 2014, 2015, 2016, 2017 +Copyright: (c) A.V.H. McPhail 2010, 2012, 2013, 2014, 2015 hunk ./plot.cabal 2 -Version: 0.2.3.6 +Version: 0.2.3.7 hunk ./plot.cabal 5 -Copyright: (c) A.V.H. McPhail 2010, 2012, 2013, 2014, 2015 +Copyright: (c) A.V.H. McPhail 2010, 2012, 2013, 2014, 2015, 2016, 2017