plots 0.1.1.2 → 0.1.1.3
raw patch · 7 files changed
+18/−16 lines, 7 filesdep ~hashabledep ~lens
Dependency ranges changed: hashable, lens
Files
- plots.cabal +10/−10
- src/Diagrams/Coordinates/Isomorphic.hs +2/−1
- src/Plots/Axis.hs +2/−1
- src/Plots/Style.hs +1/−1
- src/Plots/Types/HeatMap.hs +1/−1
- src/Plots/Types/Pie.hs +1/−1
- src/Plots/Types/Scatter.hs +1/−1
plots.cabal view
@@ -1,6 +1,6 @@ name: plots-version: 0.1.1.2-synopsis: Diagrams based plotting library.+version: 0.1.1.3+synopsis: Diagrams based plotting library homepage: http://github.com/cchalmers/plots license: BSD3 license-file: LICENSE@@ -10,11 +10,11 @@ stability: Experimental category: Graphics build-type: Simple-cabal-version: >=1.18+cabal-version: 1.18 extra-source-files: README.md diagrams/*.svg extra-doc-files: diagrams/*.svg description: Diagrams based plotting library.-tested-with: GHC==8.0.2, GHC==7.10.3, GHC==7.8.4+tested-with: GHC==9.2.1, GHC==8.8.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4 source-repository head type: git@@ -52,18 +52,18 @@ colour, containers >= 0.3 && < 0.7, data-default >= 0.5 && < 0.8,- diagrams-core >= 1.3 && < 1.5,- diagrams-lib >= 1.3 && < 1.5,+ diagrams-core >= 1.3 && < 1.6,+ diagrams-lib >= 1.3 && < 1.6, directory, distributive, transformers, filepath, fingertree,- hashable >= 1.1 && < 1.3,- lens >= 4.6 && < 5.0,+ hashable >= 1.1 && < 1.4,+ lens >= 4.6 && < 5.2, linear >= 1.2 && < 2.0,- monoid-extras >= 0.3 && < 0.6,- mtl >= 1.0 && < 3.2,+ monoid-extras >= 0.3 && < 0.7,+ mtl >= 1.0 && < 2.3, optparse-applicative, statistics, process,
src/Diagrams/Coordinates/Isomorphic.hs view
@@ -38,6 +38,7 @@ import Control.Lens import Data.Complex+import Data.Kind import Data.Typeable import Diagrams.Prelude@@ -46,7 +47,7 @@ -- | Umbrella class giving everything needed for working in the space. This is -- basically 'V2' or 'V3' from "linear".-type Euclidean (v :: * -> *) = (HasLinearMap v, HasIndexedBasis v, Metric v)+type Euclidean (v :: Type -> Type) = (HasLinearMap v, HasIndexedBasis v, Metric v) -- vector like ---------------------------------------------------------
src/Plots/Axis.hs view
@@ -75,6 +75,7 @@ import Control.Monad.State import Data.Complex import Data.Default+import Data.Kind import Data.Typeable import Diagrams.Coordinates.Polar@@ -174,7 +175,7 @@ -- | This family is used so that we can say (Axis Polar) but use V2 for the -- underlying diagram.-type family BaseSpace (c :: * -> *) :: * -> *+type family BaseSpace (c :: Type -> Type) :: Type -> Type type instance BaseSpace V2 = V2 type instance BaseSpace Complex = V2
src/Plots/Style.hs view
@@ -529,7 +529,7 @@ each = cmap . each instance Ixed ColourMap where- ix = ixColourR+ ix x = ixColourR x -- | 'Nothing' == 'transparent' instance At ColourMap where
src/Plots/Types/HeatMap.hs view
@@ -454,7 +454,7 @@ Nothing -> hMatrix -- XXX make better- defLegendPic sty HeatMap {..} = square 5 # applyAreaStyle sty+ defLegendPic sty HeatMap {} = square 5 # applyAreaStyle sty scaleV :: (Additive v, Fractional n) => v n -> Transformation v n scaleV v = fromLinear f f
src/Plots/Types/Pie.hs view
@@ -102,7 +102,7 @@ | sOffset == 0 = zero | otherwise = sOffset *^ fromDir (rotate (sWidth ^/ 2) sDir) - defLegendPic sty Wedge {..}+ defLegendPic sty Wedge {} = square 5 # applyAreaStyle sty -- | Create a pie wedge with unit radius, starting at direction @d@ with
src/Plots/Types/Scatter.hs view
@@ -129,7 +129,7 @@ | otherwise = fromVertices points # applyLineStyle sty points = map (specPoint s . oPos) oData - defLegendPic sty (ScatterPlot (ScatterOptions {..})) =+ defLegendPic sty (ScatterPlot (ScatterOptions {})) = sty ^. plotMarker & applyMarkerStyle sty