| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Plots.Types.Points
- data GPointsPlot n
- mkPointsPlot :: [(n, Angle n)] -> GPointsPlot n
- doFill :: HasPoints a n => Lens' a Bool
- pointsPlot :: (v ~ BaseSpace c, v ~ V2, PointLike v n (Polar n), MonadState (Axis b c n) m, Plotable (GPointsPlot n) b) => [(n, Angle n)] -> State (Plot (GPointsPlot n) b) () -> m ()
- pointsPlot' :: (v ~ BaseSpace c, v ~ V2, PointLike v n (Polar n), MonadState (Axis b c n) m, Plotable (GPointsPlot n) b) => [(n, Angle n)] -> m ()
Polar scatter plot
data GPointsPlot n #
Instances
| OrderedField n => Enveloped (GPointsPlot n) # | |
| ((~) (* -> *) v V2, TypeableFloat n, Renderable (Path v n) b) => Plotable (GPointsPlot n) b # | |
| type V (GPointsPlot n) # | |
| type N (GPointsPlot n) # | |
mkPointsPlot :: [(n, Angle n)] -> GPointsPlot n #
Plot a polar scatter plot given a list of radius and angle.
Lenses
Points plot
pointsPlot :: (v ~ BaseSpace c, v ~ V2, PointLike v n (Polar n), MonadState (Axis b c n) m, Plotable (GPointsPlot n) b) => [(n, Angle n)] -> State (Plot (GPointsPlot n) b) () -> m () #
pointsPlot' :: (v ~ BaseSpace c, v ~ V2, PointLike v n (Polar n), MonadState (Axis b c n) m, Plotable (GPointsPlot n) b) => [(n, Angle n)] -> m () #
Make a PointsPlot and take a State on the plot to alter it's
options
myaxis = polarAxis &~ do
pointsPlot' pointData1 $ do
addLegendEntry "data 1"
doFill .= True