Skip to content

Instantly share code, notes, and snippets.

@run4flat
Created January 21, 2013 17:48
Show Gist options
  • Select an option

  • Save run4flat/4587806 to your computer and use it in GitHub Desktop.

Select an option

Save run4flat/4587806 to your computer and use it in GitHub Desktop.
Adding axis labels via method calls in the plot object.
use PDL::Graphics::Prima::Simple;
my ($window, $plot) = line_plot $time, $temp;
$plot->x->label('Days into the Future');
$plot->y->label('Temperature (Degrees Fahrenheit)');
$plot->title("Forecast for $zip_code");
$window->execute;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment