ContentsIndex
Graphics.Plot.Coord
Description
Implements functions for setting up the Overlay and World coordinate systems.
Synopsis
withOverlayCoords :: IORef DisplayState -> IO () -> IO ()
withWorldCoords :: IORef DisplayState -> IO () -> IO ()
Documentation
withOverlayCoords
:: IORef DisplayStateThe current state.
-> IO ()The action to perform within the overlay coordinate system.
-> IO ()

Perform an action whilst using the overlay co-ordinate system.

  • The origin is at the lower left corner of the window.
  • Each unit in the x-y plane is worth one pixel in the window.
withWorldCoords
:: IORef DisplayStateThe current state.
-> IO ()The action to preform within the world coordinate system.
-> IO ()

Perform an action whilst using the world co-ordinate system.

With the default view:

  • The origin is at the center of the window.
  • Each unit in the x-y plane is worth one pixel in the window.

This view can be modified by the user using the mouse.

Produced by Haddock version 0.7