File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -229,14 +229,16 @@ sub add_lattice_axis {
229229package # hide from PAUSE
230230 PDL::Graphics::TriD::CylindricalEquidistantAxes;
231231use base qw( PDL::Graphics::TriD::LatticeAxes) ;
232- use fields qw( Names Scale) ;
232+ use fields qw( Names Scale Center ) ;
233233use PDL::Core ' ' ;
234234use PDL::Constants qw( DEGRAD) ;
235235use constant DEG2RAD => 1/DEGRAD;
236236
237237sub new {
238238 my ($type ) = @_ ;
239- bless {Names => [qw( LON LAT Pressure) ]},$type ;
239+ my $self = $type -> SUPER::new;
240+ $self -> {Names } = [qw( LON LAT Pressure) ];
241+ $self ;
240242}
241243
242244sub init_scale {
@@ -317,14 +319,16 @@ sub transform {
317319package # hide from PAUSE
318320 PDL::Graphics::TriD::PolarStereoAxes;
319321use base qw( PDL::Graphics::TriD::LatticeAxes) ;
320- use fields qw( Names Scale) ;
322+ use fields qw( Names Scale Center ) ;
321323use PDL::Core ' ' ;
322324use PDL::Constants qw( DEGRAD) ;
323325use constant DEG2RAD => 1/DEGRAD;
324326
325327sub new {
326328 my ($type ) = @_ ;
327- bless {Names => [qw( LONGITUDE LATITUDE HEIGHT) ]},$type ;
329+ my $self = $type -> SUPER::new;
330+ $self -> {Names } = [qw( LONGITUDE LATITUDE HEIGHT) ];
331+ $self ;
328332}
329333
330334sub init_scale {
You can’t perform that action at this time.
0 commit comments