From 6647bc7aa0ebc256d756f079c89737d9c2c157c3 Mon Sep 17 00:00:00 2001
From: Joseph Weston <joseph.weston08@gmail.com>
Date: Thu, 7 Dec 2017 17:22:25 +0100
Subject: [PATCH] remove dubious resize of transformations when plotting in 3D

Previously, when plotting a 3D system with 'site_size' provided
explicity as a sequence, a ValueError would be raised when using
'%matplotlib inline' or '%matplotlib notebook' from a Jupyter
notebook. We do not add a test for this, because that would require
depending on Jupyter.

Closes #39.
---
 kwant/plotter.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kwant/plotter.py b/kwant/plotter.py
index 913936da..e64f032b 100644
--- a/kwant/plotter.py
+++ b/kwant/plotter.py
@@ -311,8 +311,6 @@ if mpl_enabled:
                         self.set_paths(paths[indx])
 
                     if len(self.orig_transforms) > 1:
-                        self.transforms = np.resize(self.orig_transforms,
-                                                     (vs.shape[1],))
                         self.transforms = self.transforms[indx]
 
                     lw_orig = self.linewidths_orig
-- 
GitLab