comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Constructing a grid larger than 60 by 60 boxes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Constructing a grid larger than 60 by 60 boxes [message #59840] Thu, 17 April 2008 11:27
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
You two have the right solution. At the risk of self publicizing, I
like to use my wrapper programs oplot_horiz.pro and oplot_vertical.pro
and just pass in the vectors of any length of where you want the
lines.

http://people.bu.edu/balarsen/IDLdoc/oplot_horiz.html
http://people.bu.edu/balarsen/IDLdoc/oplot_vertical.html



Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
http://people.bu.edu/balarsen/Home/IDL
Re: Constructing a grid larger than 60 by 60 boxes [message #59842 is a reply to message #59840] Thu, 17 April 2008 09:31 Go to previous message
Jean H. is currently offline  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 Go to previous message
pgrigis is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Constructing a grid larger than 60 by 60 boxes
Next Topic: Re: probably a stupid question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 15:21:36 PDT 2025

Total time taken to generate the page: 1.03894 seconds