Skip to content

Commit

Permalink
PLplot only need plsstrm once
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Sep 17, 2024
1 parent 337e4c5 commit c282a78
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/PDL/Graphics/Simple/PLplot.pm
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,9 @@ sub plot {
$me->{logaxis} = $ipo->{logaxis};
$me->{multi_cur}++ if $me->{opt}{multi};
plsstrm($me->{obj}{STREAMNUMBER});
pladv($me->{multi_cur} or 1);
if (!$me->{multi_n} or $me->{multi_n}==1 ) {
pladv($me->{multi_cur} || 1);
if (!$me->{multi_n} or $me->{multi_n}==1) {
if ($me->{opt}->{type}=~ m/^i/) {
plsstrm($me->{obj}{STREAMNUMBER});
pleop();
plclear();
plbop();
Expand Down

0 comments on commit c282a78

Please sign in to comment.