Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: PGPlot with PDL

by Zaxo (Archbishop)
on Sep 26, 2002 at 20:58 UTC ( [id://201054]=note: print w/replies, xml ) Need Help??


in reply to PGPlot with PDL

To affect the numeric labels, you just need to scale that axis' numbers to suit your new units. To set the title, use the env method. From the PDL::Graphics::PGPLOT::Window pod:

$rate_win = PDL::Graphics::PGPLOT::Window->new(Device => '/xw', Aspect => 1, WindowWidth => 5, NXPanel => 2); $area_win = PDL::Graphics::PGPLOT::Window->new(Device => '/xw', Aspect => 1, WindowWidth => 5); $rate_win->env(0, 10, 0, 1000, {XTitle => 'Days', YTitle => '#Rabbits' +}); $rate_win->env(0, 10, 0, 100, {Xtitle=>'Days', Ytitle => 'Rabbits/day' +}); $area_win->env(0, 1, 0, 1, {XTitle => 'Km', Ytitle => 'Km'}); # And theoretical prediction. $rate_win->line(sequence(10), fibonacci(10), {Panel => [1, 1]});

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: PGPlot with PDL
by SparkeyG (Curate) on Sep 27, 2002 at 18:04 UTC
    That isn't exactly what I was looking for. What I want is the ability to label my x-axis for each day, ie 08/23/2002 to 08/29/2002 or from 08:00 to 16:30.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://201054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-24 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found