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

Home » Public Forums » archive » Last try for iTools colorbar
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Last try for iTools colorbar [message #60214] Sat, 03 May 2008 09:25
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
So I thought to try one last thing before giving up on adding a colorbar
to my iTool plot: create the colorbar as an image in direct graphics,
then load the image into the annotation layer of my iTool.

The code below definitely adds an image object to the iTool annotation
layer, but nothing is visible except object handles around a tiny object,
despite a couple of hours of trial-and-error tinkering with keywords for
IDLitVisImage. This ought to be a simple thing, but, as usual, I'm stumped.

Without a colorbar I can make art with iTools, but not scientific
graphics.

Anyone know how to put an image into the annotation layer?

Ken Bowman







PRO IMAGE_TEST2

ISURFACE, DIST(100), DIMENSIONS = [640, 480]

image = READ_PNG('test.png')
HELP, image

itool_id = itGetCurrent(TOOL = itool_obj)
annotation_layer_id = itool_obj -> FindIdentifiers('*/ANNOTATION LAYER')
annotation_layer_obj = itool_obj -> getByIdentifier(annotation_layer_id)
annotation_layer_obj -> add, OBJ_NEW('IDLitVisImage', DATA = image)

END
[Message index]
 
Read Message
Previous Topic: Multiple integral in IDL?
Next Topic: IDL FFTW3 DLM RIP

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

Current Time: Sun Oct 12 05:35:31 PDT 2025

Total time taken to generate the page: 0.56005 seconds