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:
py.icreate_animations(fig, filename=āanimslicesHeadā+str(time.time()))
I substituted:
plotly.offline.plot(fig)
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.