From 626520abb83a3f043a157016c2b39b0098ad304d Mon Sep 17 00:00:00 2001 From: denphi Date: Mon, 10 Dec 2018 15:09:44 -0500 Subject: [PATCH] correct fix --- floatview/glueplotly.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/floatview/glueplotly.py b/floatview/glueplotly.py index 9187618..b9ae3e5 100644 --- a/floatview/glueplotly.py +++ b/floatview/glueplotly.py @@ -104,9 +104,9 @@ def createFigureWidget(self, x_id, y_id_list): }) def changeAxisScale(self, axis="yaxis",type="linear"): - if (axis = 'xaxis') + if (axis == 'xaxis'): self.x_scale_type = type - if (axis = 'yaxis') + if (axis == 'yaxis'): self.y_scale_type = type self.plotly_fig.layout[axis].type = type @@ -190,9 +190,9 @@ def updateRender(self): GluePlotly.display(self) def changeAxisScale(self, axis="yaxis",type="linear"): - if (axis = 'xaxis') + if (axis == 'xaxis'): self.x_scale_type = type - if (axis = 'yaxis') + if (axis == 'yaxis'): self.y_scale_type = type self.plotly_fig.layout[axis].type = type @@ -319,9 +319,9 @@ def updateSelection(self, ids): ) def changeAxisScale(self, axis="yaxis",type="linear"): - if (axis = 'xaxis') + if (axis == 'xaxis'): self.x_scale_type = type - if (axis = 'yaxis') + if (axis == 'yaxis'): self.y_scale_type = type self.plotly_fig.layout[axis].type = type @@ -666,9 +666,9 @@ def updateSelection(self, ids): ) def changeAxisScale(self, axis="yaxis",type="linear"): - if (axis = 'xaxis') + if (axis == 'xaxis'): self.x_scale_type = type - if (axis = 'yaxis') + if (axis == 'yaxis'): self.y_scale_type = type self.plotly_fig.layout[axis].type = type