bug in quiver3
Kai Habel
kai.habel at gmx.de
Thu Nov 13 03:32:50 CST 2008
David Bateman schrieb:
> Kai Habel wrote:
>> Hello all,
>>
>> while working on a surfl.m implementation, I noticed the following
>> problem in quiver3 using the recent tip.
>>
>> I cannot plot single vectors with quiver3 like:
>>
>> quiver3(0,0,0,1,1,1,'Color','red')
>>
>> This should give a vector originating at (0,0,0) and ending at (1,1,1)
>> but I get a plot with axes only.
>>
>
> Ok, this one is a bug in the autoscaling, and is fixed by the
> attached...
>
>> I see another problem with:
>>
>> quiver3([0 4],[0 4],[0 4],[1 1],[1 1],[1 1],'Color','red')
>>
>> Here I would have expected a plot with two vectors (1,1,1) originating
>> at (0,0,0) and (4,4,4) but I get a plot with two vectors originating at
>> (0,0,0) and ending at (1,1,1) , (4,4,4) respectively.
>>
>> I have confirmed with matlab, the examples above are valid inputs for
>> quiver3.
>>
>
> This one is due to the added properties and the change in the order of
> the children of the graphics objects and teh property callback
> functions. The stem functions also have a similar issue. The attached
> patch should fix all of your problems..
>
> D.
>
Hello David,
thanks for looking into and fixing these problems. It works now as
expected.
Kai
More information about the Bug-octave
mailing list