Dear all,

I've just subscribed to this list and am rather new to PLplot, so
please excuse me if I'm asking something which I should know from the
documentation or mailing list archives! I've taken a look, but haven't
found anything dealing with this issue.

I'm using plshades to draw 2d data.  In my case, it's a FITS
image with dimensions 1044x1046 (about 2 megabytes).  When drawing to
the xwin device (or when reading a pdf created using the pdf device), I
find that the image is rendered very slowly.  It takes about a minute
to draw the entire image.  Using the PDL bindings (I've also tried this
in C, with no substantial difference), I have (for example), the
following:

$fits = rfits("foo.fits");
$shades = min($fits) + sequence(50)/50 * (max($fits) - min($fits));
plinit();
plenv(0, $fits->getdim(0), 0, $fits->getdim(1), 0, 0);
plshades($fits, 0, $fits->getdim(0), 0, $fits->getdim(1), $shades, 1,
  1, 0, 0, 0, \&pltr0, 0);

It seems very straightforward, but the result is drawn very slowly.
It draws several layers from left to right (presumably corresponding
to the shades), and each successive later draws faster and faster
(presumably as fewer elements correspond to higher color levels).  Am I
doing something wrong? Is there any way to speed up the rendering?

Regards,
Paul Boley

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to