|
Posted by johnbkim on 02/23/07 19:19
I'm using JPGraph to plot temperature vs. time. Time is given as
timestamps, so I use a callback function to print it as hours and
minutes. Here's the graph and the code:
http://fs.sdsu.edu/kf/vorb/test.php
Because I print the X axis labels (time) at 90 degrees, I have to
manually set the bottom margin, which forces me to set the left margin
too, which used to be automatically set.
My questions:
1. How do I calculate left margin at run time, based on the width of
the Y axis tick labels?
2. I'm setting the X axis scale to go from $t0 to $t1, but why isn't
it ending right on the hour?
3. How do I set the X axis tick intervals to 30 or 60 minute
intervals? (I tried $graph->xaxis->SetTickLabelInterval()).
Thanks.
Navigation:
[Reply to this message]
|