sdr-0.1.0.8: A software defined radio library

Safe HaskellNone
LanguageHaskell2010

SDR.Plot

Contents

Description

Create graphical plots of signals and their spectrums. Uses OpenGL.

Synopsis

Line Graphs

plotLine Source #

Arguments

:: Int

Window width

-> Int

Window height

-> Int

Number of samples in each buffer

-> Int

Number of vertices in graph

-> EitherT String IO (Consumer (Vector GLfloat) IO ()) 

Create a window and plot a dynamic line graph of the incoming data.

plotLineAxes Source #

Arguments

:: Int

Window width

-> Int

Window height

-> Int

Number of samples in each buffer

-> Int

Number of vertices in graph

-> Render ()

Cairo Render object that draws the axes

-> EitherT String IO (Consumer (Vector GLfloat) IO ()) 

Create a window and plot a dynamic line graph of the incoming data. With Axes.

Waterfalls

plotWaterfall Source #

Arguments

:: Int

Window width

-> Int

Window height

-> Int

Number of columns

-> Int

Number of rows

-> [GLfloat]

The color map

-> EitherT String IO (Consumer (Vector GLfloat) IO ()) 

Create a window and plot a waterfall of the incoming data.

Filled In Line Graphs

plotFill Source #

Arguments

:: Int

Window width

-> Int

Window height

-> Int

Number of samples in each buffer

-> [GLfloat]

The color map

-> EitherT String IO (Consumer (Vector GLfloat) IO ()) 

Create a window and plot a dynamic filled in line graph of the incoming data.

plotFillAxes Source #

Arguments

:: Int

Window width

-> Int

Window height

-> Int

Number of samples in each buffer

-> [GLfloat]

The color map

-> Render ()

Cairo Render object that draws the axes

-> EitherT String IO (Consumer (Vector GLfloat) IO ()) 

Create a window and plot a dynamic filled in line graph of the incoming data. With Axes.

Axes

zeroAxes Source #

Arguments

:: Int

Image width

-> Int

Image height

-> Double

X axis span

-> Double

X axis grid interval

-> Render () 

Create a Cairo Render monad that draws a set of axes with 0 at the bottom left.

centeredAxes Source #

Arguments

:: Int

Image width

-> Int

Image height

-> Double

Center X value

-> Double

X axis span

-> Double

X axis grid interval

-> Render () 

Create a Cairo Render monad that draws a set of axes with the X axis centered on a specified value.