plot-gtk-ui-0.3.0.2: A quick way to use Mathematica like Manipulation abilities

Copyright(c) Sumit Sahrawat
LicenseGPL-2
Maintainersumit.sahrawat.apm13@iitbhu.ac.in
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.Plot.Gtk.UI

Contents

Description

Quick plotting for functions + dynamic plotting of functions

plotStatic can be used to plot functions of the form f(x)=...

plotDynamic can be used to plot functions of the form /f(x, a, b) = ... where a and b/ are additional parameters. Sliders are provided for manipulating the values of a and b, and the plot is animated in real-time.

Synopsis

The Plotting Functions

plotStatic Source #

Arguments

:: (Double -> Double)

Function to plot

-> (Double, Double)

Range for abscissa (horizontal axis)

-> IO () 

Plot functions that don't depend on extra parameters

plotDynamic :: (Vector u a, Vector v (a, a), a ~ Double, Dim u ~ Dim v, Dim v ~ S n, Arity n) => (u Double -> Double) -> v (Double, Double) -> IO () Source #

Plot functions that depend on extra parameters

plotWithArity Source #

Arguments

:: Int

Arity of function to plot

-> ([Double] -> Double)

Function to plot

-> [(Double, Double)]

Ranges for all args

-> Maybe (IO ()) 

Possibly returns an IO action that creates a plot assuming that it's executing in a GTK environment (after initGUI). Returns Nothing if no. of arguments does not match.