Hi,
I am trying to figure how to use graphics and I am not understanding if there is a way to pass the device among different modules.

The minimal inderstanding I have is that the device is accessed in different ways by different modules.
So e.g. the Cartography module use this way:
$w = pgwin('/GW')
$a = earth_coast()->glue(1,graticule(10,1));
$w->lines($a->apply(t_mercator)->clean_lines);

the PGPLOT use this:

the use PDL::Graphics::PGPLOT  use this:

dev('/GW', {Aspect => 1, WindowWidth => 6});

and the PGPLOT  this:
pgbegin(0,"/GW",1,1);
pgenv
(1,10,1,10,0,0);
pglabel('X','Y','My plot');
pgpoint(7,[2..8],[2..8],17);
# etc...

pgend;

So it seems to me that the device cannot be shared and at a first glance, it is always a pgplot device but available only to the specific opener.
Am I wrong? It seems quite limiting.


--

Fabio D'Alfonso
'Enabling Business Through IT'
cell.  +39.348.059.40.22 *
web: www.fabiodalfonso.com
email: [email protected]
linkedin: www.linkedin.com/in/fabiodalfonso
twitter: www.twitter.com/#!/fabio_dalfonso

fax: +39.06.874.599.581
BlackBerry® Wireless Enabled Address.

* Hidden  numbers are automatically rejected by the phone
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to