Skip to content
Snippets Groups Projects
Commit a278976d authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Forward *args in MantidAxes.plot command

Refs #24000
parent 13cbdec3
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ def plot(axes, workspace, *args, **kwargs):
dimension
"""
x, y, args, kwargs = _plot_impl(axes, workspace, args, kwargs)
return axes.plot(x, y, **kwargs)
return axes.plot(x, y, *args, **kwargs)
def errorbar(axes, workspace, *args, **kwargs):
......
......@@ -47,7 +47,8 @@ class Plots__init__Test(unittest.TestCase):
self.fig, self.ax = None, None
def test_line2d_plots(self):
self.ax.plot(self.ws2d_histo, specNum=2, linewidth=6)
self.ax.plot(self.ws2d_histo, 'rs', specNum=2, linewidth=6)
self.assertEqual('r', self.ax.lines[-1].get_color())
self.ax.plot(np.arange(10), np.arange(10), 'bo-')
def test_errorbar_plots(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment