Graphics.Rendering.Chart.Plot.Vectors

Chart-1.9.5: A library for generating 2D Charts and Plots

Copyright | (c) Anton Vorontsov <anton@enomsg.org> 2014
License | BSD-style (see chart/COPYRIGHT)
Safe Haskell | None
Language | Haskell98

Graphics.Rendering.Chart.Plot.Vectors

Description

Vector plots

# Documentation

data PlotVectors x y #

Constructors

PlotVectors |
Fields _plot_vectors_title :: String _plot_vectors_style :: VectorStyle _plot_vectors_scale :: Double Set to 1 (default) to normalize the length of vectors to a space between them (so that the vectors never overlap on the graph). Set to 0 to disable any scaling. Values in between 0 and 1 are also permitted to adjust scaling. _plot_vectors_grid :: [(x, y)] Provide a square-tiled regular grid. _plot_vectors_mapf :: (x, y) -> (x, y) Provide a vector field (R^2 -> R^2) function. _plot_vectors_values :: [((x, y), (x, y))] Provide a prepared list of (start,vector) pairs.

#### Instances

Instances details

Default (PlotVectors x y) # |
Instance details Defined in Graphics.Rendering.Chart.Plot.Vectors Methods def :: PlotVectors x y #

data VectorStyle #

Constructors

VectorStyle |
Fields _vector_line_style :: LineStyle _vector_head_style :: PointStyle

#### Instances

Instances details

Default VectorStyle # |
Instance details Defined in Graphics.Rendering.Chart.Plot.Vectors Methods def :: VectorStyle #

plotVectorField :: (PlotValue x, PlotValue y) => PlotVectors x y -> Plot x y #

plot_vectors_mapf :: forall x y f. Functor f => (((x, y) -> (x, y)) -> f ((x, y) -> (x, y))) -> PlotVectors x y -> f (PlotVectors x y) #

plot_vectors_grid :: forall x y f. Functor f => ([(x, y)] -> f [(x, y)]) -> PlotVectors x y -> f (PlotVectors x y) #

plot_vectors_title :: forall x y f. Functor f => (String -> f String) -> PlotVectors x y -> f (PlotVectors x y) #

plot_vectors_style :: forall x y f. Functor f => (VectorStyle -> f VectorStyle) -> PlotVectors x y -> f (PlotVectors x y) #

plot_vectors_scale :: forall x y f. Functor f => (Double -> f Double) -> PlotVectors x y -> f (PlotVectors x y) #

plot_vectors_values :: forall x y f. Functor f => ([((x, y), (x, y))] -> f [((x, y), (x, y))]) -> PlotVectors x y -> f (PlotVectors x y) #

vector_line_style :: Lens' VectorStyle LineStyle #

vector_head_style :: Lens' VectorStyle PointStyle #