enthought / enable

Enable: low-level drawing and interaction
Other
93 stars 44 forks source link

Quartz backend `draw_path_at_points` has bad ndarray attribute #1050

Closed corranwebster closed 1 year ago

corranwebster commented 1 year ago

In the draw_path_at_points method, it checks for an array's nd attribute instead of ndim: https://github.com/enthought/enable/blob/0ae01f00da730bcc84821e7ab9eb394df777795e/kiva/quartz/ABCGI.pyx#L500

Simple fix; but the fix should probably include a test, since it appears that the code isn't being exercised and is important for Chaco scatterplots.

dimensions should probably be shape, as well.

corranwebster commented 1 year ago

Fixed by #1051