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

Home » Public Forums » archive » itools vertical colorbar bug
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
itools vertical colorbar bug [message #58941] Wed, 27 February 2008 12:54
sdettrick@gmail.com is currently offline  sdettrick@gmail.com
Messages: 5
Registered: February 2007
Junior Member
Hi,

I just found a bug in iTools, and I was wondering if anybody has found
a workaround for it. From the bug report I just sent to ITT:

There is an iTools bug associated with vertical colorbars (not
horizontal ones).

The bug occurs in versions 7.0 and 6.3, but does not occur in version
6.0. I have only tested it on linux. The bug looks like it might be
in idlitviscolorbar__define.pro in the method
IDLitVisColorbar::OnDataChangeUpdate in the 'VISUALIZATION DATA' case.

You can recreate the bug exactly as follows:
1) Create an iimage:

iImage, dist(200),/insert_colorbar

2) Choose the colorbar to be Vertical, via the iImage gui.
3) Change the data programatically:

id = iTGetCurrent(Tool=oTool)
dm=oTool->getbyidentifier('/data manager')
oData=dm->GetByIdentifier('/DATA MANAGER/IMAGE PARAMETERS/IMAGEPIXELS/
GRAY')
success=oData->SetData(dist(200))

When the colorbar is HORIZONTAL, there is no problem with the above.

When the colorbar is VERTICAL, the colortable splits into two sections
vertically when SetData is called, i.e. the color range is duplicated
twice inside the rectangle of the colorbar. This error seems to occur
for any choice of new data, even if it is the same as the old data.

This unfortunately makes it impossible to use vertical color bars in
iTools, at least with iImage.

Is there an update for this? If there is then I would very much like
to hear about it.

Thank you,
Sean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Weird IDL problem?
Next Topic: How to get file UNIT from file NAME?

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

Current Time: Wed Oct 08 17:08:53 PDT 2025

Total time taken to generate the page: 0.00599 seconds