-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue about SurfacePlotVisual #2517
Comments
At first glance this does seem like a bug, but also what colors are you providing? RGB? RGBA? Skimming through the code it does definitely seem like RGBA (4 elements) is the more performant way of providing the colors. Otherwise, VisPy adds the alpha channel itself which requires a copy of the color array. I'm not really sure how or why this is reshaping to |
Related #2542 |
Hi!
When I use
SurfacePlot
to draw a surface and seedcolor
parameter, an error occurs:I note that the
_prepare_mesh_colors
function invispy/visuals/surface_plot.py
is:The comment and document state that I should pass in a matrix of dimensions
(width, height, 4)
, which will then be transformed into a matrix of dimensions(num_verts, 4)
. However, the code does not follow this approach; instead, it transforms it into a matrix of dimensions(num_verts, 3)
.The text was updated successfully, but these errors were encountered: