X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 13 May 2008 04:12 PM by  anon
Plot data points
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
13 May 2008 04:12 PM
    hi everybody! I would like to plot an array (data(2,npoints)) of xy points using an object graphics... I am able to display points using idlgrpolyline and idlgrsymbol setting linestyle = 6 (To not print the line) but i don't like this way because i don't display points but rather vertices.... So, iwould to know which object graphics you use when you want to display a batch of XY points... Thanks for you answer

    Deleted User



    New Member


    Posts:
    New Member


    --
    13 May 2008 04:12 PM
    I think you have two choices here: 1) Not mind that your XY coordinates are considered vertices by IDL and, thus, be happy with continuing to use IDLgrPolyline. For this you need an IDLgrView with a VIEWPLANE_RECT that is the exact size of your coordinate system and an IDLgrWindow with that exact size as well. After this, I would think that this polyline would display your symbols at precisely the XY locations you want. Are you getting different results than this? Or is there another reason why you would rather that your XY points not be considered to be vertices? 2) Let your XY points be represented on an IDLgrImage that is the size of your coordinate system. You would then simply have to decide how to display the symbol representing these points. If the symbol is a single-pixel dot of color or a square of the 8 pixels surrounding the XY points, then this display is trivial. If, however, it is more complicated, like a circle, then the algorithm for coloring the pixels of the IDLgrImage would probably be more unpleasant than going with option 1 above. James Jones
    You are not authorized to post a reply.