Thanks Tuomas for your answer.
I have found no way to set stream number from the contructor. I'm using this
my $graph=PDL::Graphics::PLplot->new(DEV => 'png',
FILE => "test",
BACKGROUND => 'BLACK',
FRAMECOLOR => 'WHITE');
[...code here...]
$graph->close;
As I read from PLplot.pm, no options to set stream number is accepted.
Code lines from 1281 to 1300 define the stream number as alway
increasing, it is ok.
sub new {
[...]
# set stream number first
$self->{STREAMNUMBER} = $next_plplot_stream;
$next_plplot_stream++;
plsstrm($self->{STREAMNUMBER});
[..]
But on close(), the stream number shoudl be decreased. Here is the code
sub close {
my $self = shift;
# Set PLplot to right output stream
plsstrm($self->{STREAMNUMBER});
plend1 ();
return;
}
I think something like
$next_plplot_stream--;
is missing. I'll give it a try.
Roberto
__
On 09/03/2010 5.44, Seppälä wrote:
Hi,
I think I encountered this problem once too and "fixed" it. If I
remember correctly, there's a bug in the plstream
constructor/deconstructor. If you don't give a stream number to the
constructor that problem will occur after 100 calls. So just give a
stream number to the constructor and it should work fine.
I hope this helps.
Roberto Casalegno wrote:
Hello everyone,
When, in the same program, I open and close 100 files, PLplot complains:
plsstrm: Illegal stream number 100, must be in [0, 100]
plots are closed every time before open a new one, so I see no reason why it
should reach that limit.
I have found another guy with the same problem here:
http://www.mail-archive.com/[email protected]/msg01576.html
Date of the post is july 2009, I installed the latest version of PLplot on Feb
2010 but no patch has been issued yet.
Any suggestion?
Thank you,
Roberto Casalegno
C&T Computing& Science
------------------------------------------------------------------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
------------------------------------------------------------------------
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general