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

Home » Public Forums » archive » Plotting a horizontal line over a cgImage
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: Plotting a horizontal line over a cgImage [message #93583 is a reply to message #93582] Mon, 29 August 2016 11:20 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Monday, August 29, 2016 at 12:03:11 PM UTC-4, Christina Haig wrote:

> As you can see, the yrange goes roughly from 1 to 100ish.

Actually we can't see ;-) We (the readers of this newsgroup) don't know the content of your variables, and we can't see the output plot.

But your code looks like it should work. Does the CGPLOT command come immediately after the CGIMAGE command or is there something in between that could reset the positioning?

Also I would set COLOR='green' (or something similar) in your CGPLOT command, in case there is something funky with the color table.

Also check the coordinate transformation between data and device coordinates

IDL> print,convert_coord(mint,maxt],[2.0,2.0],/data,/to_device)

to make sure the line is in the physical area of the window. --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Need e-book of Image Analysis, Classification and Change Detection in Remote Sensing: With Algorithms for ENVI/IDL and Python by Mort Canty
Next Topic: Convert MJD date range to number of days elapsed in IDL

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

Current Time: Wed Oct 08 14:01:41 PDT 2025

Total time taken to generate the page: 0.00528 seconds