X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11 Dec 2015 10:15 AM by  anon
to insert tabular column inside an image() window
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:16
New Member


--
11 Dec 2015 10:15 AM
    Hi, I am trying to create tabular columns inside an image window that will contain text and image side by side. I am currently using just text(). For example: tsurvey_dt=text(0.274,0.6,'SURVEY DATE'+' '+ S_DATE,FONT_SIZE=6,FONT_NAME='Helvetica') tsurvey_dt.POSITION=[0.258,0.6] Kindly notice the dropbox link that helps understand the problem better. Thanks! https://www.dropbox.com/s/k1lu1l3jxsb1srn/getting_tables.PNG?dl=0

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    11 Dec 2015 10:36 AM
    Hi Puneeth, After looking at your image, I guess I'm still a little confused about your question. Since this is not functionality that IDL has, it is something that you would have to code yourself to accomplish. You will probably need separate text elements for each item and you will also have to place lines to separate the columns. To do this you will probably have to use polyline (http://www.exelisvis.com/docs/POLYLINE.html). Is that what you are looking for? -Zach (VIS)

    Deleted User



    New Member


    Posts:16
    New Member


    --
    12 Dec 2015 09:27 AM
    Hi, I was hoping for something ready-made but Ployline should do the trick. Thanks. :)

    Deleted User



    New Member


    Posts:81
    New Member


    --
    21 Jan 2016 07:11 PM
    Hi, FWIW, here's a quick example of something you could try: w = window(dimensions=[400,800]) ; Dummy data for blank image elements ; to hold text. dim = 512 ; pixel dimension of blank image data blank = replicate(200b, dim, dim) ; light gray ; Lay out image elements in a grid... ; Blank mage regions to hold text i1 = image(blank, layout=[2,4,1], current=w) i3 = image(blank, layout=[2,4,3], current=w) i5 = image(blank, layout=[2,4,5], current=w) i7 = image(blank, layout=[2,4,7], current=w) ; Images i2 = image(/test, layout=[2,4,2], current=w) i4 = image(/test, layout=[2,4,4], current=w) i6 = image(/test, layout=[2,4,6], current=w) i8 = image(/test, layout=[2,4,8], current=w) ; Target text to display in each of the gray image regions t1 = text(.1*dim, .8*dim, [systime(),'dog','cat'], target=i1, /data, $ VERTICAL_ALIGNMENT=1.0, FONT_SIZE=9, FONT_NAME='Helvetica') t2 = text(.1*dim, .8*dim, systime(), target=i3, /data, $ FONT_SIZE=9, FONT_NAME='Helvetica') t3 = text(.1*dim, .8*dim, systime(), target=i5, /data, $ FONT_SIZE=9, FONT_NAME='Helvetica') t4 = text(.1*dim, .8*dim, systime(), target=i7, /data, $ FONT_SIZE=9, FONT_NAME='Helvetica') Regards,
    You are not authorized to post a reply.