|
Using ChartDirector in a Perl subroutine |
Posted by Alex Zeng on Jul-22-2009 03:28 |
|
Dear All,
I'm new to Perl, and so my questions might seem a little out there, but please bear with me.
When I'm running sample scripts in ChartDirector with ActivePerl, I have to cd into the
scripts' working directory for everything to work. I was wondering if I can use ChartDirector
within a subroutine in my own .pm script. To run the .pm script, I have to put it in the same
directory as the shell.pl script and cd into the working directory on Command Prompt. Will I
still have to cd into ChartDirector's working directory to run the subroutine? If so, is there a
way to get into both the ChartDirector's working directory and the shell.pl 's working
directory at the same time?
Another question I had was that I'm trying to create a scatter plot with a pre-specified
(specified by me) number of X and Y ticks. That is, I want the scatter plot to have the
same size, and not autosize according to the data point that has the max xy coordinates.
Thanks in advance!
Alex |
Re: Using ChartDirector in a Perl subroutine |
Posted by Alex Zeng on Jul-22-2009 03:37 |
|
Please ignore the first question. I just tried it out and I guess as long as I reference to the
ChartDirector directory inside my .pm script, I don't need to cd into the working directory.
I still don't know the answer to my second question though.
Alex |
Re: Using ChartDirector in a Perl subroutine |
Posted by Peter Kwan on Jul-22-2009 19:43 |
|
Hi Alex,
You may use Axis.setLinearScale to set the scale manually. For example:
$c->xAxis()->setLinearScale(0, 100, 10);
$c->yAxis()->setLinearScale(30, 70, 5);
Hope this can help.
Regards
Peter Kwan |
Re: Using ChartDirector in a Perl subroutine |
Posted by Alex Zeng on Jul-23-2009 23:30 |
|
Peter,
Thanks for your reply. I haven't had a chance to try it yet, but I'll let you know once I do.
Alex |
Re: Using ChartDirector in a Perl subroutine |
Posted by Alex Zeng on Jul-25-2009 00:48 |
|
That's exactly what I wanted. Thanks a bunch! |
|