Problem with labeling contour lines in IDL [message #65448] |
Wed, 04 March 2009 01:24 |
Nusret Sevinç
Messages: 8 Registered: March 2009
|
Junior Member |
|
|
Hi all,
I have a problem with labeling contour lines in IDL:
First I defined the contour lines to be drawn:
c=[22,23,24,25,26,27,28,29,29.1,29.2,29.25,29.3,29.35]
Then I overploted the contour to have the contour lines drawn and
labeled:
contour,temp,dist,depth,levels=c,yrange=[53,1],xrange=[0.0,1 5],/
overplot,xstyle=5,ystyle=5,c_labels=replicate(1,13)
As the result, I had all the contour lines defined plotted, but only
some of them were labeled. When I decreased the size of labels, I got
all the lines labeled. But then, they were too small to be read.
I think the problem with the labels is that, IDL needs perfectly
linear parts on the contour lines to put the label on, and my
unlabeled lines don't have suitable linear parts for the labels with
size=1.0 . When I decrease the size (e.g. size=0.25), the labels
became small enough to fit the linear parts.
Is there a way that I can force IDL to put labels on nonlinear parts?
Thanks in advance,
Nusret Sevinç
|
|
|