Skip to content

Commit

Permalink
correct fix
Browse files Browse the repository at this point in the history
  • Loading branch information
denphi committed Dec 10, 2018
1 parent 93342cd commit 626520a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions floatview/glueplotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 626520a

Please sign in to comment.