X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Dec 2013 02:49 AM by  anon
New Graphics routines compatibility with Direct Graphics windows ?
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
17 Dec 2013 02:49 AM
    Hello, Is there a way to use a *new graphics* (NG) function (such as BARPLOT) within a *direct graphics* (DG) window ? For example, BARPLOT (NG) has some useful new features such as N_BARS parameter which doesn’t have BAR_PLOT (DG), but NG are too bandwidth consuming to use IDL from a remote computer (through ssh+X11). Thanks, Guillaume

    Deleted User



    New Member


    Posts:
    New Member


    --
    17 Dec 2013 11:50 AM
    I am afraid you can't use New Graphics in a Direct Graphics window. A possible workaround for you might be to use the BUFFER keyword when generating the NG, use the CopyWindow method to get the image and then use TVSCL to display the image using DG. An example of how this can be done is shown below: f = findgen(10) b = barplot(f,/buffer) ;use buffer to supress display img = b.CopyWindow() ;use COPYWINDOW to get data tvscl,img,/true ;display the data with TVSCL

    Deleted User



    New Member


    Posts:
    New Member


    --
    18 Dec 2013 02:06 AM
    Nice trick, thanks for the help ! Guillaume

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Dec 2013 09:38 AM
    Another alternative might be cgBarplot, which has a number of nice features, too. http://www.idlcoyote.com/cg_tips/barp...
    You are not authorized to post a reply.