The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

PDL::Graphics::X::Fits - OO X Windows fits image display

SYNOPSIS

  use PDL;
  use PDL::Graphics::LUT;
  use PDL::Graphics::X::Fits;

  my $fits = rfits("PDL-2.4.1/m51.fits");
  my $win1 = PDL::Graphics::X::Fits->new($fits, {WIN_TITLE => "In Color", CTAB => cat(lut_data("idl5"))});
  my ($x, $y) = $win1->cursor();

DESCRIPTION

A OO X Windows fits image display module built on PDL::Graphics::X. This module draws fits image with appropriately labeled axises & tick marks, similar to those drawn by PGPLOT. Once the image has been displayed, the cursor method will return the location of the next mouse click in image coordinates.

Options recognized

       CTAB - color table to use when displaying the image (greyscale is default)
        MIN - minimum value to display (image minimum is default)
        MAX - maximum value to display (image maximum is default)
        RGB - set to 1 to display a RGB fits (expects the image to be in the form (x, y, RGB))
  WIN_TITLE - a title for the window (default is "X::FITS")

EXPORT

None by default.

SEE ALSO

PDL::Graphics::X

KNOWN ISSUES

Since PDL::Graphics::X doesn't handle rotated text very well, the y-axis label looks pretty ugly.

BUGS

...

AUTHOR

Hazen Babcock, hbabcockos1 at mac.com

COPYRIGHT AND LICENSE

Copyright 2005 by Hazen Babcock

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.