X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 25 Jun 2015 12:09 PM by  anon
making cgcolorfill polygon transparent
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
25 Jun 2015 12:09 PM
    Hi, so I have this code within my plot and I want to fill a rectangle with these coordinates: X = [-1, 20, 20, -1] Y=[50, 50, 150, 150] Polyfill, X, Y, Color=175, transparent=60 This code plots the rectangle exactly like I want it however it won't make it transparent and I am not sure why? Any suggestions?

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    25 Jun 2015 03:21 PM
    Hi Meghan, Why don't you try using the newer polygon function. Here is an example that works for IDL 8.4 p=plot(sin(findgen(200)/15)) coords=[[50,-.5],[50,.5],[150,.5],[150,-.5]] rect = polygon( coords, target=p,$ Color='black',/data,$ /fill_background,fill_color='blue',$ transparency=60)

    Deleted User



    New Member


    Posts:
    New Member


    --
    25 Jun 2015 03:52 PM
    Thank you, this worked great! Perfection!
    You are not authorized to post a reply.