Skip to content

Commit fbb506e

Browse files
committed
tests report versions of underlying graphics engines
1 parent 409912b commit fbb506e

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- tests report versions of underlying graphics engines
2+
13
1.014 2024-10-25
24
- exception when oplot in multiplot mode
35
- oplot now leaves {x,y}range alone

lib/PDL/Graphics/Simple/Gnuplot.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ sub check {
100100
$mod->{msg} = $s;
101101
die "PDL::Graphics::Simple: $s";
102102
}
103-
103+
$mod->{gp_version} = $PDL::Graphics::Gnuplot::gp_version;
104104
$mod->{ok} = 1;
105105
return 1;
106106
}

lib/PDL/Graphics/Simple/PGPLOT.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ sub check {
7777
$mod->{msg} = "Couldn't find the VCPS file-output device -- giving up.\n";
7878
return 0;
7979
}
80+
$mod->{pgplotpm_version} = $PGPLOT::VERSION;
81+
{ PGPLOT::pgqinf('VERSION', $mod->{pgplot_version}, my $len); }
8082
$mod->{ok} = 1;
8183
return 1;
8284
}

lib/PDL/Graphics/Simple/PLplot.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ sub check {
8585
$mod->{msg} = "No PostScript found";
8686
return 0;
8787
}
88-
88+
$mod->{plplot_version} = PDL::Graphics::PLplot::plgver();
8989
$mod->{ok} = 1;
9090
return 1;
9191
}

lib/PDL/Graphics/Simple/Prima.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ sub check {
9797
lp::DashDot(), lp::DashDotDot(),
9898
);
9999
_load_types();
100-
100+
$mod->{prima_version} = $Prima::VERSION;
101101
$mod->{ok} =1;
102102
return 1;
103103
}

0 commit comments

Comments
 (0)