From 4e8097bcb070f6d82cc19c55662cb1520f8eacac Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Mon, 11 Nov 2019 03:46:35 +0100 Subject: [PATCH] Commented 3D plot tempfile hack out --- samri/plotting/maps.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samri/plotting/maps.py b/samri/plotting/maps.py index 8e248063..c882ab9f 100644 --- a/samri/plotting/maps.py +++ b/samri/plotting/maps.py @@ -671,12 +671,15 @@ def _plots_overlay(display,display_3Dplot): image array. """ + #get matplotlib figure from Nilearn.OrthoSlicer2 object fh = display.frame_axes.get_figure() fh.canvas.draw() # Hackish fix for 3D image displacement on zenhost configuration !!! - plt.savefig('/tmp/tmp.png') + #import getpass + #this_user = getpass.getuser() + #plt.savefig('/tmp/{}_tmp.png'.format(this_user)) #Determine correct location to put the plot in relation to existing figure axes 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]]