[Changeset]: fix for plot(zeros(1, 0), zeros(1, 0) (Was: [OctDev] Octave-Forge: boxplot)

John W. Eaton jwe at bevo.che.wisc.edu
Fri Mar 28 11:51:25 CDT 2008


On 28-Mar-2008, 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.

I applied it.

Thanks,

jwe


More information about the Bug-octave mailing list