comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Contour labels not aligned with contours
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Contour labels not aligned with contours [message #88529] Thu, 08 May 2014 11:58 Go to previous message
Sir Loin Steak is currently offline  Sir Loin Steak
Messages: 42
Registered: January 2012
Member
Hi all,

Has anyone encountered a problem before where the contour labels are not aligned with the spaces left in the actual contours? It has been happening to me for the past few weeks, but I can't think that anything has changed with my system.

The problem only occurs when outputting to a postscript file which has different x and y lengths. I've put a couple of examples here: http://physics.open.ac.uk/~lsteele/contour_label.png

As can be seen in the top plot, the labels on the vertical line sections aren't centered on the contour as they are in the bottom plot. Does anyone know if this can be amended?

The test code I used for each plot is:

x = sin(findgen(50)/49*!pi)*5
y = cos(findgen(50)/49*!pi/2)*5
array = x#y

set_plot, 'ps'
!p.font=0
device, /encap, xsize=10, ysize=4, /inches, filename='test.eps'
pos = cglayout([1,1])

clevels = findgen(13)*2
contour, array, findgen(50), findgen(50), levels=clevels, $
c_label=intarr(26)+1, c_charsize=0.5, color=cgcolor('black')
device, /close

with the xsize being changed from 10 to 4 for the bottom plot.

Cheers,

Liam
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GDL weirdness (bug?) with modulo command
Next Topic: Problem with IDLnetURL Callback Function

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:04:53 PDT 2025

Total time taken to generate the page: 0.00190 seconds