Thanks. I figured out the legend placing by using 'al_legend'.
I am seeing another issue in terms of XTICKS. While I am using my XRange=[242.1, 242.5], I see the ticks starting from 242.2 till 242.5. Is there a way I can indicate my XTICK values that I am interested on my X-axis? Or am I forgetting some keyword?
date_label = LABEL_DATE(DATE_FORMAT = ['%H:%I'])
cgPlot, xtime, rhum_mean, Title=title, XTitle=xtitle, YTitle=ytitle1, $
XStyle=1, Position=position1,/NoData, YStyle=1, $
YRange=[0,100], XRange=[242.1, 242.5],linestyle=0, thick=2, $
XTICKFORMAT = 'LABEL_DATE'
Thanks.
On Sunday, December 1, 2013 9:17:38 PM UTC+1, David Fanning wrote:
> Madhavan Bomidi writes:
>
>
>
>> As per the suggestion by David, I applied the following command from his example:
>
>>
>
>> al_Legend, ['VAR_STDEV', 'VAR_MEAN', 'VAR_MIN', 'VAR_MAX'], PSym=[0,0,0,0], $
>
>> LineStyle=[0,0,2,2], Color=['sky blue','black','blue','blue'], $
>
>> Position=[5,115], /Window
>
>>
>
>> I can't see any legend appearing in my top-panel plot or any where in the display window.
>
>>
>
>> Now can anyone tell me what I am wrong? Am I defining the position wrong?
>
>
>
> Well, I'm thinking you probably want to read the documentation in the
>
> file for what these keywords mean. You certainly don't need the Window
>
> keyword, because you are using a resizeable graphics window. And, it is
>
> exceedingly doubtful that the data coordinates [5, 115] apply to your
>
> particular plot. Since we don't have the data, we can't tell you what
>
> these numbers should be. You will have to look at your plot. :-)
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|