gandalfcode / gandalf

GANDALF (Graphical Astrophysics code for N-body Dynamics And Lagrangian Fluids)
GNU General Public License v2.0
44 stars 12 forks source link

Weird things with non-square rendered windows #23

Closed dhubber closed 10 years ago

dhubber commented 10 years ago

Rendered windows generate strange effects if a tuple containing the x/y resolutions is passed instead of a single scalar value.

giovanni-rosotti commented 10 years ago

Corrected (80f935a), this was due to a wrong reshape (xres,yres) instead of (yres, xres). I also checked that the rendering writes to the 1-d array in the order numpy expects (that is, whith x being the fastest varying).