X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 09 Mar 2012 11:49 AM by  anon
contour function
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
09 Mar 2012 11:49 AM
    Hi! I am new here and have been programming in IDL for about 23 years. So here goes. Must one create a window for the contour function to operate? Can I simply supply the contour function with xrange=[0,1799] and yrange =[0,1799], for example without first creating window,1,/pixmap,xsize=1800,ysize=1800,retain=2 Would like to reduce my code, reduce memory usage and speed the program up.

    Deleted User



    New Member


    Posts:
    New Member


    --
    09 Mar 2012 02:57 PM
    Hi there, You don't need to create a window, since the window procedure is a direct graphics procedure and does not work together with the new graphics functions, which are object graphics. To create a contour you just need to invoke that contour function, for example, these two lines will work: index = [30,60,90,120,150,220,255] c = CONTOUR(dist(300), /FILL, ASPECT_RATIO=1, RGB_TABLE=39, RGB_INDICES=index, C_VALUE=index) Was this helpful? Please, let me know. Cheers, Fernando Exelis VIS

    Deleted User



    New Member


    Posts:
    New Member


    --
    09 Mar 2012 03:01 PM
    Hi there again, I think now I undertstand what you meant. I think that you would like to use the contour function without having to show the results on the screen in a window, is that correct?. If that's the case, please, use the keyword BUFFER: BUFFER (Init) Set this property to 1 to direct the graphics to an off-screen buffer instead of creating a window. For example: c = CONTOUR(dist(300), /FILL, ASPECT_RATIO=1, RGB_TABLE=39, RGB_INDICES=index, C_VALUE=index, BUFFER=1) Cheers, fernando santoro Exelis VIS
    You are not authorized to post a reply.