plots-0.1.0.0: Diagrams based plotting library.

Safe HaskellNone
LanguageHaskell2010

Plots.Types.Points

Contents

Synopsis

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 # 

Methods

renderPlotable :: InSpace v n (GPointsPlot n) => AxisSpec v n -> PlotStyle b v n -> GPointsPlot n -> QDiagram b v n Any #

defLegendPic :: InSpace v n (GPointsPlot n) => PlotStyle b v n -> GPointsPlot n -> QDiagram b v n Any #

type V (GPointsPlot n) # 
type V (GPointsPlot n) = V2
type N (GPointsPlot n) # 
type N (GPointsPlot n) = n

mkPointsPlot :: [(n, Angle n)] -> GPointsPlot n #

Plot a polar scatter plot given a list of radius and angle.

Lenses

doFill :: HasPoints a n => Lens' a Bool #

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