Skip to content

Commit

Permalink
de-deprecate with=>'fits resample'
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jul 2, 2024
1 parent 77c8464 commit 3ca14eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- de-deprecate with=>'fits resample'

2.026 2024-04-20
- fix {colorbox=>1} (#100)

Expand Down
4 changes: 4 additions & 0 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ page at L<http://metacpan.org/pod/PDL::Graphics::Gnuplot>.

=cut

=encoding UTF-8

=head1 NAME

PDL::Graphics::Gnuplot - Gnuplot-based plotting for PDL
Expand Down Expand Up @@ -527,6 +529,8 @@ cut down on the burden of transferring large blocks of image data or
to rectify images with nonlinear WCS transformations in their headers.
(gnuplot itself has a bug that prevents direct rendering of images in
nonlinear coordinates).
Note this format is still allowed despite "complex with" being otherwise
deprecated.

gplot( with=>'fits res 200', $fitsdata );
gplot( with=>'fits res 100,400',$fitsdata );
Expand Down
4 changes: 3 additions & 1 deletion lib/PDL/Graphics/Gnuplot.pm
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,8 @@ cut down on the burden of transferring large blocks of image data or
to rectify images with nonlinear WCS transformations in their headers.
(gnuplot itself has a bug that prevents direct rendering of images in
nonlinear coordinates).
Note this format is still allowed despite "complex with" being otherwise
deprecated.
gplot( with=>'fits res 200', $fitsdata );
gplot( with=>'fits res 100,400',$fitsdata );
Expand Down Expand Up @@ -3414,7 +3416,7 @@ sub parseArgs
} else {
@with = @{$chunk{options}{with}};
}
if(@with > 1) {
if ($with[0] ne 'fits' and @with > 1) {
carp q{
WARNING: deprecated usage of complex 'with' detected. Use a simple 'with'
specifier and curve options instead. This will fail in future releases of
Expand Down

0 comments on commit 3ca14eb

Please sign in to comment.