File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1+ 2009-01-19 Fix bug in quiver argument handling. - EF
2+
132009-01-19 Fix bug in backend_gtk: don't delete nonexistent toolbar. - EF
24
352009-01-16 Implement bbox_inches option for savefig. If bbox_inches is
Original file line number Diff line number Diff line change @@ -386,14 +386,13 @@ def _parse_args(self, *args):
386386 X , Y , U , V , C = [None ]* 5
387387 args = list (args )
388388 if len (args ) == 3 or len (args ) == 5 :
389- C = ma .asarray (args .pop (- 1 )). ravel ()
389+ C = ma .asarray (args .pop (- 1 ))
390390 V = ma .asarray (args .pop (- 1 ))
391391 U = ma .asarray (args .pop (- 1 ))
392- nn = np .shape (U )
393- nc = nn [0 ]
394- nr = 1
395- if len (nn ) > 1 :
396- nr = nn [1 ]
392+ if U .ndim == 1 :
393+ nr , nc = 1 , U .shape [0 ]
394+ else :
395+ nr , nc = U .shape
397396 if len (args ) == 2 : # remaining after removing U,V,C
398397 X , Y = [np .array (a ).ravel () for a in args ]
399398 if len (X ) == nc and len (Y ) == nr :
You can’t perform that action at this time.
0 commit comments