[Changeset]: fix for plot(zeros(1, 0), zeros(1, 0) (Was: [OctDev] Octave-Forge: boxplot)
Shaun Jackman
sjackman at bcgsc.ca
Fri Mar 28 11:16:26 CDT 2008
Hi David,
You're patch works for me. Thanks!
Cheers,
Shaun
On 28-Mar-08, at 2:25 AM, David Bateman wrote:
> I'd hesitate to make that change since as you say the bug is in Octave
> itself.. We shouldn't add additional cruft to work around bugs when we
> can fix the issue at the source..
>
> This reason this issue is happening is that "isvector([])" returns
> false
> whereas "isvector(zeros(1,0))" returns true which is the matlab
> compatible behavior. Therefore the fix is to promote the test for
> empty
> variable in the base plotting code to be first as in the attached
> changeset.
>
> Regards
> David
More information about the Bug-octave
mailing list