Reply to JPGraph - setting Y axis range and calculating left margin width?

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация