Skip to content

Commit 4e8097b

Browse files
committed
Commented 3D plot tempfile hack out
1 parent 7c60e58 commit 4e8097b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samri/plotting/maps.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,12 +671,15 @@ def _plots_overlay(display,display_3Dplot):
671671
image array.
672672
673673
"""
674+
674675
#get matplotlib figure from Nilearn.OrthoSlicer2 object
675676
fh = display.frame_axes.get_figure()
676677
fh.canvas.draw()
677678

678679
# Hackish fix for 3D image displacement on zenhost configuration !!!
679-
plt.savefig('/tmp/tmp.png')
680+
#import getpass
681+
#this_user = getpass.getuser()
682+
#plt.savefig('/tmp/{}_tmp.png'.format(this_user))
680683

681684
#Determine correct location to put the plot in relation to existing figure axes
682685
box = [max(display.axes['x'].ax.get_position().x0,display.axes['y'].ax.get_position().x0,display.axes['z'].ax.get_position().x0),min(display.axes['x'].ax.get_position().y0,display.axes['y'].ax.get_position().y0,display.axes['z'].ax.get_position().y0),display.axes['x'].ax.get_position().bounds[2],display.axes['z'].ax.get_position().bounds[3]]

0 commit comments

Comments
 (0)