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

Home » Public Forums » archive » overplotting contours on tvimage....
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: overplotting contours on tvimage.... [message #94397 is a reply to message #94393] Tue, 09 May 2017 04:40 Go to previous messageGo to previous message
Nikola is currently offline  Nikola
Messages: 53
Registered: November 2009
Member
On Monday, May 8, 2017 at 8:50:18 PM UTC+1, M Q wrote:
> Hello,
>
> I'm trying to overplot contour lines on an image made with David Fanning's TVIMAGE command.
>
> I'm doing something like this:
>
>
> data=world() ;360x360 array, ranges from 0 to 254
> tvimage,data,position=[.5,.5,.6,.6] ; I need to do multiple plots
>
> contour,/overplot,data,levels =[ 100,150,200]
>
> No contours show up.
>
> I've thought about doing a congrid command something like this:
>
> data2 = congrid(data,x_panel_size, y_panel_size)
> contour,data2,/overplot,levels =[100,150,200]
>
> but I can't figure out how to get the size of the current plot, that is, the image I plotted at position= [.5,.5,.6,.6].
>
>
> Any suggestions would be welcome. I've been banging my head against the wall for a couple of days now.
>
> Mark

I guess that the problem is that you have to set the axes when using TVIMAGE (in the latest version, set the keyword AXES). Then you have to use the same axes (same range in X and Y) when you overplot the contour.

I can't quickly test it now as I don't use the latest Coyote's library, but this may give you a hint where the problem is.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: area threshold
Next Topic: Convert string to image matrix (like xyouts)

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

Current Time: Wed Oct 08 19:35:24 PDT 2025

Total time taken to generate the page: 0.00412 seconds