X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 30 Sep 2010 07:33 PM by  anon
IDL 8.0 - Contour Labels upside down
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
30 Sep 2010 07:33 PM
    I'm having a heck of a time trying to get my contour labels right-side up. I am plotting atmospheric pressure data in time. i.e. I plot from 1000mb to 100mb on the y-axis. As a result, contour flips my contour labels upside down since the y-axis is in reverse. I've tried to set the baseline and updir keywords to reverse the lables, but I am having no sucess. Any ideas?

    Deleted User



    New Member


    Posts:21
    New Member


    --
    01 Oct 2010 12:57 PM
    Hi, You might try setting C_USE_LABEL_ORIENTATION=1 in your CONTOUR call. This will force it to use the text label's orientation. Let us know if this works. Cheers, Chris ITTVIS

    Deleted User



    New Member


    Posts:
    New Member


    --
    04 Oct 2010 02:25 PM
    Unfortunately, I had that set to 1 already. Setting to 0, the contour labels went every which-way in line with the contours. Setting to 0 keeps the labels horizontally aligned... just flipped upside down.

    Deleted User



    New Member


    Posts:
    New Member


    --
    05 Oct 2010 09:14 AM
    Here's the actual code: data=fltarr(12,37) (for reference) yvals=[1000,850,700,600,500,400,300,200,100] x=indgen(12)+1 p=1000-25*indgen(37) image=contour(data,x,p,layout=[2,1,1],n_levels=ncol,text_color=0,/ylog,yrange=[1000,100],xrange=[1,12],$ ytickv=yvals,xtickv=x,c_value=clevs,C_USE_LABEL_ORIENTATION=1,C_LABEL_SHOW=[0,0,1],/overplot) I have ommited the updir/baseline for now since I can't get them to change the orientation.

    Deleted User



    New Member


    Posts:21
    New Member


    --
    06 Oct 2010 02:51 PM
    Hi Aaron, You're right. This looks like a bug to me. I'll go ahead and log it, and then fix it. For reference it's CR 60943. Thanks! -Chris ITTVIS
    You are not authorized to post a reply.