From d7a428cca21bda2ed8e5915f721bc5c8d00538a6 Mon Sep 17 00:00:00 2001 From: Ed J Date: Wed, 14 Aug 2024 20:00:28 +0100 Subject: [PATCH] clearer error on dim mismatch --- lib/PDL/Graphics/Gnuplot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PDL/Graphics/Gnuplot.pm b/lib/PDL/Graphics/Gnuplot.pm index d934fcc..61970d6 100644 --- a/lib/PDL/Graphics/Gnuplot.pm +++ b/lib/PDL/Graphics/Gnuplot.pm @@ -3704,7 +3704,7 @@ sub matchDims $data_dims[$i] = $ddims[$i]; } elsif( ( $ddims[$i]>1) && ($ddims[$i] != $data_dims[$i] )) { - barf "plot(): mismatched arguments in tuple (position $i)\n"; + barf "plot(): mismatched arguments in tuple; dims of data item $i=(@ddims), but data_dims=(@data_dims)"; } } }