contour discontinuity [message #84237] |
Fri, 03 May 2013 03:35  |
Rosie
Messages: 27 Registered: September 2012
|
Junior Member |
|
|
Hello,
I have plotted a 2D latitude vs. Longitude contour. When I do it from -180 longitude to +180 longitude scale, it is coming perfect. Now I want the same plot to be shown in 0 to 360 latitude. But there is a white vertical band coming at 180 longitude (in the middle of the plot).
I will be grateful for help.
Thanks.
|
|
|
Re: contour discontinuity [message #84385 is a reply to message #84237] |
Tue, 28 May 2013 08:20  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Sam writes:
> One more point. Here also I find two labels of zero are overlapping in one or two cases out of say 10 plots. Can I get rid of that overlapping?
If you are using the Contour or cgContour command, the answer is no. If
you are using something else, the answer is probably no. :-)
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.")
|
|
|
Re: contour discontinuity [message #84386 is a reply to message #84237] |
Tue, 28 May 2013 08:19  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Sam writes:
> Can I place 0 with a little white sticker? It would be then easier to find 0 line.
If you are using the Contour or cgContour command, the answer is no. If
you are using something else, the answer is probably no. :-)
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.")
|
|
|
Re: contour discontinuity [message #84387 is a reply to message #84237] |
Tue, 28 May 2013 07:56  |
Rosie
Messages: 27 Registered: September 2012
|
Junior Member |
|
|
One more point. Here also I find two labels of zero are overlapping in one or two cases out of say 10 plots. Can I get rid of that overlapping?
|
|
|
|
Re: contour discontinuity [message #84389 is a reply to message #84237] |
Tue, 28 May 2013 07:14  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Sam writes:
> Sorry David, I should have written more. My levels=findgen(7)*.5-3 and contour values are from -3.0 to +3.0. I want all the contours in the plot, but only labelling the zero contour without decimal.
I would say use two contour commands. One with the levels you want,
without the zero level, and the second as I showed you with the zero
level overplotted.
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.")
|
|
|
Re: contour discontinuity [message #84390 is a reply to message #84237] |
Tue, 28 May 2013 07:05  |
Rosie
Messages: 27 Registered: September 2012
|
Junior Member |
|
|
Sorry David, I should have written more. My levels=findgen(7)*.5-3 and contour values are from -3.0 to +3.0. I want all the contours in the plot, but only labelling the zero contour without decimal.
Regards,
|
|
|
Re: contour discontinuity [message #84442 is a reply to message #84237] |
Mon, 27 May 2013 17:23  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Sam writes:
> I want to label only zero contour.I used c_levels=[0,0,0,1,0,0,0] say for a total of 7 levels. Sometimes, there is a overlap of that 0 value. How to get rid of that? Moreover, if I want that label as only '0' rather than 0.0, can I do that?
data = cgdemodata(2)-750.0
cgContour, data, levels=0, c_annotation='0'
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.")
|
|
|