plot 0.2.3.1 → 0.2.3.2
raw patch · 4 files changed
+14/−13 lines, 4 filesdep ~cairodep ~pango
Dependency ranges changed: cairo, pango
Files
- CHANGES +3/−0
- examples/Test.hs +6/−5
- lib/Graphics/Rendering/Plot/Render/Plot/Annotation.hs +2/−5
- plot.cabal +3/−3
CHANGES view
@@ -118,3 +118,6 @@ 0.2.3.1: * fix bugs (-y) in rendering annotations. Issue #7++0.2.3.2:+ * allow v0.13 of pango/cairo
examples/Test.hs view
@@ -117,12 +117,13 @@ glyph (4,0.2) (return ()) text (3,0.0) (setText "from the α to the Ω") cairo (\_ _ _ _ -> do- C.newPath- C.moveTo 3 0.75- C.lineTo 4 (-0.5)+ --C.stroke+ --C.newPath+ C.moveTo 1 0.75+ C.lineTo 2 (-0.5) C.stroke- C.rectangle (pi/2) (-1) (pi/2) 1- C.fill+ --C.rectangle (pi/2) (-0.75) (pi/2) 1+ --C.fill ) -- setRange YAxis Lower Log (-1.25) 1.25 -- setLegend True NorthEast Inside
lib/Graphics/Rendering/Plot/Render/Plot/Annotation.hs view
@@ -142,11 +142,8 @@ (BoundingBox x y w h) <- get cairo $ do C.save- --let (x,y) = (x'*xscale,y'*yscale)- --let (w,h) = (w'*xscale,h'*yscale)- --flipVertical- --C.translate x y- --C.scale (xscale) (yscale)+ --C.translate (x) (y)+ C.scale (xscale) (yscale) r x y w h C.restore
plot.cabal view
@@ -1,5 +1,5 @@ Name: plot-Version: 0.2.3.1+Version: 0.2.3.2 License: BSD3 License-file: LICENSE Copyright: (c) A.V.H. McPhail 2010, 2012, 2013, 2014@@ -35,7 +35,7 @@ . Category: Graphics -Tested-with: GHC==7.6.3+Tested-with: GHC==7.8.3 Cabal-version: >= 1.8 Build-type: Simple @@ -51,7 +51,7 @@ Build-Depends: base >= 4 && < 5, mtl > 2, array, MaybeT,- pango >= 0.11.2 && < 0.13, cairo >= 0.11.1 && < 0.13,+ pango >= 0.11.2 && < 0.14, cairo >= 0.11.1 && < 0.14, colour >= 2.2.1 && < 2.4, hmatrix >= 0.10