Skip to content

Commit

Permalink
Use the correct plot2D default in python.
Browse files Browse the repository at this point in the history
Refs #9319
  • Loading branch information
martyngigg committed Apr 23, 2014
1 parent b96f7d8 commit 3f2ecc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/Mantid/MantidPlot/mantidplot.py
Expand Up @@ -222,7 +222,10 @@ def plotSpectrum(source, indices, error_bars = False, type = -1, window = None,
return graph

#----------------------------------------------------------------------------------------------------
def plot2D(source, style = -1, window = None):
# IPython auto-complete can't handle enumerations as defaults
DEFAULT_2D_STYLE = int(_qti.Layer.ColorMap)

def plot2D(source, style = DEFAULT_2D_STYLE, window = None):
"""Open a 2D plot of the given workspace(s)
Produces a 2D histogram for each of the given workspaces
Expand Down

0 comments on commit 3f2ecc8

Please sign in to comment.