Created
October 16, 2012 21:10
-
-
Save run4flat/3902086 to your computer and use it in GitHub Desktop.
Imagine using PDL::Graphics::Prima::Simple as...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use strict; | |
| use warnings; | |
| sub my_plot { | |
| croak("Expected key/value pairs, but got an odd number of arguments to pot()") | |
| if @_ % 2 == 1; | |
| print "About to plot!\n"; | |
| PDL::Graphics::Prima::Simple::default_plot(@_); | |
| } | |
| use PDL::Graphics::Prima::Simple plot => \&my_plot; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment