Copyright | David Johnson (c) 2019-2020 |
---|---|
License | BSD 3 |
Maintainer | David Johnson <djohnson.m@gmail.com> |
Stability | Experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- createWindow :: Int -> Int -> String -> IO Window
- setPosition :: Window -> Int -> Int -> IO ()
- setTitle :: Window -> String -> IO ()
- setSize :: Window -> Int -> Int -> IO ()
- drawImage :: Window -> Array a -> Cell -> IO ()
- drawPlot :: Window -> Array a -> Array a -> Cell -> IO ()
- drawPlot3 :: Window -> Array a -> Cell -> IO ()
- drawPlotNd :: Window -> Array a -> Cell -> IO ()
- drawPlot2d :: Window -> Array a -> Array a -> Cell -> IO ()
- drawPlot3d :: Window -> Array a -> Array a -> Array a -> Cell -> IO ()
- drawScatter :: Window -> Array a -> Array a -> MarkerType -> Cell -> IO ()
- drawScatter3 :: Window -> Array a -> MarkerType -> Cell -> IO ()
- drawScatterNd :: Window -> Array a -> MarkerType -> Cell -> IO ()
- drawScatter2d :: Window -> Array a -> Array a -> MarkerType -> Cell -> IO ()
- drawScatter3d :: Window -> Array a -> Array a -> Array a -> MarkerType -> Cell -> IO ()
- drawHistogram :: Window -> Array a -> Double -> Double -> Cell -> IO ()
- drawSurface :: Window -> Array a -> Array a -> Array a -> Cell -> IO ()
- drawVectorFieldND :: Window -> Array a -> Array a -> Cell -> IO ()
- drawVectorField3d :: Window -> Array a -> Array a -> Array a -> Array a -> Array a -> Array a -> Cell -> IO ()
- drawVectorField2d :: Window -> Array a -> Array a -> Array a -> Array a -> Cell -> IO ()
- grid :: Window -> Int -> Int -> IO ()
- setAxesLimitsCompute :: Window -> Array a -> Array a -> Array a -> Bool -> Cell -> IO ()
- setAxesLimits2d :: Window -> Float -> Float -> Float -> Float -> Bool -> Cell -> IO ()
- setAxesLimits3d :: Window -> Float -> Float -> Float -> Float -> Float -> Float -> Bool -> Cell -> IO ()
- setAxesTitles :: Window -> String -> String -> String -> Cell -> IO ()
- showWindow :: Window -> IO ()
- isWindowClosed :: Window -> IO Bool
- setVisibility :: Window -> Bool -> IO ()
Documentation
Sets Window
position
>>>
window <- createWindow 800 600 "New Chart"
>>>
setPosition window 800 600
Sets Window
title
>>>
window <- createWindow 800 600 "New Chart"
>>>
setTitle window "window title"
Sets Window
size
>>>
window <- createWindow 800 600 "New Chart"
>>>
setSize window 800 600
:: Window |
|
-> Array a | Image |
-> Cell | is structure |
-> IO () |
Draw an image onto a Window
>>>
drawImage window ('constant' \@'Int' 1) ('Cell' 10 10 "test" 'ColorMapSpectrum')
:: Window | is the window handle |
-> Array a | is an |
-> Array a | is an |
-> Cell | is structure |
-> IO () |
Draw a plot onto a Window
>>>
drawPlot window ('constant' \@'Int' 1) ('constant' \@'Int' 1) ('Cell' 10 10 "test" 'ColorMapSpectrum')
- Note* X and Y should be vectors.
:: Window | the window handle |
-> Array a | is an af_array or matrix with the xyz-values of the points |
-> Cell | is structure af_cell that has the properties that are used for the current rendering. |
-> IO () |
Draw a plot onto a Window
- Note* P should be a 3n x 1 vector or one of a 3xn or nx3 matrices.
:: Window | is the window handle |
-> Array a | is an |
-> Cell | is structure |
-> IO () |
Draw a plot onto a Window
- Note* in must be 2d and of the form [n, order], where order is either 2 or 3. If order is 2, then chart is 2D and if order is 3, then chart is 3D.
:: Window | is the window handle |
-> Array a | is an af_array or matrix with the xyz-values of the points |
-> MarkerType | is an af_marker_type enum specifying which marker to use in the scatter plot |
-> Cell | is structure af_cell that has the properties that are used for the current rendering. |
-> IO () |
:: Window | is the window handle |
-> Array a | is an |
-> MarkerType | is an af_marker_type enum specifying which marker to use in the scatter plot |
-> Cell | is structure af_cell that has the properties that are used for the current rendering. |
-> IO () |
Draw a scatter plot onto a Window
- Note* in must be 2d and of the form [n, order], where order is either 2 or 3. If order is 2, then chart is 2D and if order is 3, then chart is 3D.
:: Window | is the window handle |
-> Array a | is an af_array with the x-axis data points |
-> Array a | is an af_array with the y-axis data points |
-> MarkerType | is an af_marker_type enum specifying which marker to use in the scatter plot |
-> Cell | is structure af_cell that has the properties that are used for the current rendering. |
-> IO () |
Draw a scatter plot onto a Window
- Note* in must be 2d and of the form [n, order], where order is either 2 or 3. If order is 2, then chart is 2D and if order is 3, then chart is 3D.
:: Window | is the window handle |
-> Array a | is an af_array with the x-axis data points |
-> Array a | is an af_array with the y-axis data points |
-> Array a | is an af_array with the z-axis data points |
-> MarkerType | is an af_marker_type enum specifying which marker to use in the scatter plot |
-> Cell | is structure af_cell that has the properties that are used for the current rendering. |
-> IO () |
:: Window | is the window handle |
-> Array a | is the data frequency af_array |
-> Double | is the value of the minimum data point of the array whose histogram(X) is going to be rendered. |
-> Double | is the value of the maximum data point of the array whose histogram(X) is going to be rendered. |
-> Cell | is structure |
-> IO () |
:: Window | is the window handle |
-> Array a | is an |
-> Array a | is an |
-> Cell | is structure |
-> IO () |
:: Window | is the window handle |
-> Array a | is an |
-> Array a | is an |
-> Array a | is an |
-> Array a | is an |
-> Array a | is an |
-> Array a | is an |
-> Cell | is structure |
-> IO () |
:: Window | is the window handle |
-> Array a | is an |
-> Array a | is the window handle |
-> Array a | is the window handle |
-> Array a | is the window handle |
-> Cell | is the window handle |
-> IO () |
:: Window | is the window handle |
-> Int | is number of rows you want to show in a window |
-> Int | is number of coloumns you want to show in a window |
-> IO () |
:: Window | is the window handle |
-> Array a | the data to compute the limits for x-axis. |
-> Array a | the data to compute the limits for y-axis. |
-> Array a | the data to compute the limits for z-axis. |
-> Bool | is for using the exact min/max values from x, y and z. If exact is false then the most significant digit is rounded up to next power of 2 and the magnitude remains the same. |
-> Cell | is structure |
-> IO () |
Setting axes limits for a histogramplotsurface/vector field.
- Note* Set to NULL if the chart is 2D.
:: Window | is the window handle |
-> Float | is the minimum on x-axis |
-> Float | is the maximum on x-axis |
-> Float | is the minimum on y-axis |
-> Float | is the maximum on y-axis |
-> Bool | is for using the exact min/max values from x, and y. If exact is false then the most significant digit is rounded up to next power of 2 and the magnitude remains the same. |
-> Cell | is structure af_cell that has the properties that are used for the current rendering. |
-> IO () |
Setting axes limits for a 2D histogramplotsurface/vector field.
:: Window | is the window handle |
-> Float | is the minimum on x-axis |
-> Float | is the maximum on x-axis |
-> Float | is the minimum on y-axis |
-> Float | is the maximum on y-axis |
-> Float | is the minimum on z-axis |
-> Float | is the maximum on z-axis |
-> Bool | is for using the exact min/max values from x, y and z. If exact is false then the most significant digit is rounded up to next power of 2 and the magnitude remains the same. |
-> Cell | is structure |
-> IO () |
Setting axes limits for a 3D histogramplotsurface/vector field.
:: Window | is the window handle |
-> String | is the name of the x-axis |
-> String | is the name of the y-axis |
-> String | is the name of the z-axis |
-> Cell | is structure |
-> IO () |
Setting axes titles