Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
- disable contour plot when using log scale (#56)
Browse files Browse the repository at this point in the history
- related to enthought/chaco#300
  • Loading branch information
paulmueller committed May 31, 2016
1 parent 727ea8f commit 24b5c7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
7 changes: 0 additions & 7 deletions shapeout/gui/controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,6 @@ def OnChangePlot(self, e=None):
col.Blue(), col.Alpha()])/255
mm.Configuration["Plotting"]["Contour Color"] = col.tolist()

# Address issue with faulty contour plot on log scale
# https://github.com/enthought/chaco/issues/300
if (newfilt["Plotting"]["Scale X"] == "Log" or
newfilt["Plotting"]["Scale Y"] == "Log"):
warnings.warn("Disabling contour plot because of chaco issue #300!")
newfilt["Plotting"]["Contour Plot"] = False

cfg = { "Plotting" : newfilt }
self.analysis.SetParameters(cfg)

Expand Down
9 changes: 8 additions & 1 deletion shapeout/tlabwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,19 @@ def GetTitles(self):
titles.append(mm.title)
return titles


def SetParameters(self, newcfg):
""" updates the RTDC_DataSet configuration
"""
newcfg = copy.deepcopy(newcfg)

# Address issue with faulty contour plot on log scale
# https://github.com/enthought/chaco/issues/300
if (newcfg["Plotting"]["Scale X"] == "Log" or
newcfg["Plotting"]["Scale Y"] == "Log"):
warnings.warn("Disabling contour plot because of chaco issue #300!")
newcfg["Plotting"]["Contour Plot"] = False

# prevent applying indivual things to all measurements
ignorelist = ["Contour Color"]
for key in newcfg.keys():
Expand Down

0 comments on commit 24b5c7f

Please sign in to comment.