JAL-1767 refactoring and tidying of RotatableCanvas and related
[jalview.git] / src / jalview / gui / PCAPanel.java
index 641105b..f5e33cd 100644 (file)
@@ -222,9 +222,7 @@ public class PCAPanel extends GPCAPanel
     int dim2 = top - yCombobox.getSelectedIndex();
     int dim3 = top - zCombobox.getSelectedIndex();
     pcaModel.updateRcView(dim1, dim2, dim3);
-    rc.img = null;
-    rc.rotmat.setIdentity();
-    rc.initAxes();
+    rc.resetView();
     rc.paint(rc.getGraphics());
   }