PDL::Graphics::PGPLOT::Window

PDL::Graphics::PGPLOT::Window is a OO interface to PGPLOT windows.
Download

PDL::Graphics::PGPLOT::Window Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Karl Glazebrook
  • Publisher web site:
  • http://pdl.perl.org/

PDL::Graphics::PGPLOT::Window Tags


PDL::Graphics::PGPLOT::Window Description

PDL::Graphics::PGPLOT::Window is a OO interface to PGPLOT windows. PDL::Graphics::PGPLOT::Window is a OO interface to PGPLOT windows.SYNOPSIS perldl> use PDL::Graphics::PGPLOT::Window perldl> $win = PDL::Graphics::PGPLOT::Window->new(Device => '/xs'); perldl> $a = pdl perldl> $b = sqrt($a) perldl> $win->line($b) perldl> $win->hold() perldl> $c = sin($a/10)*2 + 4 perldl> $win->line($c)In the following documentation the commands are not shown in their OO versions. This is for historical reasons and should not cause too much trouble.This package offers a OO interface to the PGPLOT plotting package. This is intended to replace the traditional interface in PDL::Graphics::PGPLOT and contains interfaces to a large number of PGPLOT routines. Below the usage examples for each function tend to be given in the non-OO version for historical reasons. This will slowly be changed, but in the meantime refer to the section on OO-interface below to see how to convert the usage information below to OO usage (it is totally trivial).PDL::Graphics::PGPLOT::Window is an interface to the PGPLOT graphical libraries.The list of currently availably methods: imag - Display an image (uses pgimag()/pggray() as appropriate) ctab - Load an image colour table ctab_info - Get information about currently loaded colour table line - Plot vector as connected points points - Plot vector as points errb - Plot error bars cont - Display image as contour map bin - Plot vector as histogram (e.g. bin(hist($data)) ) hi2d - Plot image as 2d histogram (not very good IMHO...) poly - Draw a polygon vect - Display 2 images as a vector field text - Write text in the plot area label_axes - Print axis titles legend - Create a legend with different texts, linestyles etc. cursor - Interactively read cursor positions. circle - Draw a circle ellipse - Draw an ellipse.Device manipulation commands: new - Constructor for a new PGPLOT output device close - Close a PGPLOT output device focus - Set focus to the given device. This should normally be done behind the scenes. hold - Hold current plot window range - allows overlays etc. release - Release back to autoscaling of new plot window for each command held - Returns true if the graphics is held on the current device. env - Define a plot window, put on 'hold' panel - Move to a specified plot panel when several panels are defined. erase - Erase the current window (or panel) options - Get the options set for the present output device id - The ID for the device device - The device type name - The window nameNotes: $transform for image/cont etc. is used in the same way as the TR() array in the underlying PGPLOT FORTRAN routine but is, fortunately, zero-offset. The transform() routine can be used to create this piddle.For completeness: The transformation array connect the pixel index to a world coordinate such that: X = tr + tr*i + tr*j Y = tr + tr*i + tr*jRequirements:· Perl Requirements: · Perl


PDL::Graphics::PGPLOT::Window Related Software