Reputation: 73
I have an image displayed in an IDL window using the TV command, and would like to add x and y axes to the image. Seems straightforward, but I can't find a way to do it.
Can anyone help with this?
Thanks
Upvotes: 0
Views: 841
Reputation: 452
I would echo Mike's answer - go with the new graphics Image function if possible.
If you absolutely have to use direct graphics, then I would recommend using David Fanning's coyote graphics wrappers: http://www.idlcoyote.com/idldoc/cg/cgimage.html
It's still a lot more work to do this using direct graphics, but at least with the "cg" commands it's easier.
Upvotes: 0
Reputation: 2386
Are you tied to direct graphics, i.e., TV
? Easiest way to display with axis is to use IMAGE
function:
im = image(arr, axis_style=1)
Upvotes: 3