PDL-Graphics-Prima
view release on metacpan or search on metacpan
lib/PDL/Graphics/Prima.pm view on Meta::CPAN
# replot duration in milliseconds
replotDuration => 30,
# Blank profiles for the axes:
x => {},
y => {},
# Other important and basic settings
selectable => 1,
buffered => 1,
popupItems => default_popup_items(),
};
}
sub default_popup_items
{[
['~Copy' => 'copy_to_clipboard' ],
['P~rint' => 'print' ],
['~Export to' => [
[ '~Image' => 'save_to_image' ],
[ '~Postscript' => 'save_to_ps' ],
[ '~EPS' => 'save_to_eps' ],
[ 'P~DF' => 'save_to_pdf' ],
]],
['~Autoscale' => 'autoscale' ],
lib/PDL/Graphics/Prima.pm view on Meta::CPAN
# Reset the y min/max
($min_rel, $max_rel) = get_min_max_for($y_start_rel, $y_stop_rel);
# Compute the new min/max values from the axis scaling:
$min_real = $self->y->relatives_to_reals($min_rel);
$max_real = $self->y->relatives_to_reals($max_rel);
# Set the new min/max values:
$self->y->minmax($min_real, $max_real);
$self->clear_event;
}
elsif ($x_stop_rel == $x_start_rel and $y_stop_rel == $y_start_rel) {
# Call the popup menu if it 'looks' like a right-click
# by not clearing the event
} else {
$self->clear_event;
}
# Remove the previous button record, so a zoom rectangle is not drawn:
delete $self->{mouse_down_rel}->{mb::Right};
}
}
sub autoscale
( run in 2.666 seconds using v1.01-cache-2.11-cpan-364913b4093 )