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

Home » Public Forums » archive » Plot3D bug in 8.1
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: Plot3D bug in 8.1 [message #75999 is a reply to message #75912] Mon, 09 May 2011 10:09 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On May 9, 1:26 pm, David Fanning <n...@idlcoyote.com> wrote:
> Paulo Penteado writes:
>> I can confirm the bug, and that it was not present in 8.0. My guess is
>> that it came from the _strict_extra that started being used in the
>> Graphics routines, with sym_object ending up left out somewhere along
>> the way.
>
> That would make sense, except that it doesn't explain why
> it worked before. For it to be trapped by _STRICT_EXTRA
> it would have to be mis-spelled in the code. If it is
> mis-spelled, how did it work before?

Ok, that was a naive first guess. I had noticed that in 8.1 checking
for invalid arguments appeared in Graphics, so I just guessed it was
_strict_extra, as had been suggested here (by you, if I remember
right).

But it is a bit more involved. In 8.1 the Graphics class got a new
method, VerifyProperty, to do the checking and throw an error if a
property is not found. It determines the valid properties from the
QueryProperty method of the right class, which is where the error
lies, since 8.0: Plot3D::QueryProperty does not have SYM_OBJECT among
its properties. In 8.0 it was no problem, because any nonexistent
properties were ignored. It flared up now that there is checking.

The fix for ITTVIS to do: in line 1405 of graphic__define.pro, inside
Plot3D::QueryProperty, add 'SYM_OBJECT' to the properties array. I
verified that this fixes the problem.

The fix that you can do, to get it to work, without changing source
code: Use the new 'undocumented' keyword (itself, amusingly,
undocumented), which disables the checking:

p=plot3d(/test,sym_object=orb(),/undocumented)

By the way, could not this kind of debugging qualify me to report bugs
directly to ITTVIS, instead of having to go through their Brazilian
representative, as it seems I am required to do, just because they
issued my license?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem using the method List->ToArray()
Next Topic: Re: Problem using the method List->ToArray()

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

Current Time: Fri Oct 10 08:59:54 PDT 2025

Total time taken to generate the page: 1.27775 seconds