I’m trying to follow the “Visualizing MRI Volume Slices in Python” example in offline mode, however I keep getting an empty plot. I’ve copied the code from the example verbatim, however I’ve omitted the line which uploads the grid:
py.grid_ops.upload(grid, ‘anim_sliceshead’+str(time.time()), auto_open=False)
And at the end, instead of:
When I compile the script, a plot is opened in my web browser with a grid and a functional slider, however the graph is empty (no slices). The axes also appear to be scaled incorrectly. I tried substituting the image input data with my own numpy array to no avail.