1
package PDL::Graphics2D;
6
PDL::Graphics2D - An object oriented interface to PDL graphics
11
$win = PDL::Graphics2D->new(<Interface>, <Options>);
15
This is an umbrella class allowing for a simple interface to all plotting
16
routines in PDL. On its own it does not do any work it merely passes
17
information to the appropriate class. Ideally this should probably offer
18
a uniform interface to a variety of packages.
20
This requires a lot more work before it is useful I feel, but it can be
28
'PGPLOT' => 'PDL::Graphics::PGPLOT::Window'
36
# Translate the interface name to the appropriate class name.
38
$interface=uc($interface);
39
die "Interface $interface is not known!\n" if !exists($lookup{$interface});
40
my $class = $lookup{$interface};
41
eval "require $class;";
42
return $class->new(@_);