|
Re: Constructing a grid larger than 60 by 60 boxes [message #59842 is a reply to message #59840] |
Thu, 17 April 2008 09:31  |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
> You just have do do two loops of "oplot", one for all your horizontal
> grid lines and the other for all the vertical grid lines.
>
> Ciao,
> Paolo
:-) you answered faster... I knew I shouldn't do 10 things at the same
time!
for i=0, 210 do oplot,[!X.Crange[0], !X.Crange[1]], [!Y.Crange[0] +
i*((!Y.Crange[1]-!Y.Crange[0])/210),!Y.Crange[0] +
i*((!Y.Crange[1]-!Y.Crange[0])/210)]
In the second loop, change !X for !Y, !Y for !X and 210 for 130...
Jean
|
|
|
Re: Constructing a grid larger than 60 by 60 boxes [message #59846 is a reply to message #59842] |
Thu, 17 April 2008 09:15  |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
clivecoo...@gmail.com wrote:
> Hi,
>
> I am trying to construct a large grid (210 *130) but am limited by the
> number of ticks i can use (60). Is there any way to do this? I am
> using polyfill to draw approximately 26,000 boxes and want to use the
> PLOT command, specifying the number of ticks and making the length
> cover the whole plot to draw an outline around each box.
You just have do do two loops of "oplot", one for all your horizontal
grid lines and the other for all the vertical grid lines.
Ciao,
Paolo
>
> thanks,
>
> Clive
|
|
|