Skip to content

Commit

Permalink
Make topoplot accept **kwargs and pass them on to Topoplot
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr committed Aug 27, 2015
1 parent 378e707 commit d7449cc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scot/eegtopo/topoplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,18 +184,14 @@ def _get_fence(self):
return self.channel_fence


def topoplot(values, locations, headcolor=[0, 0, 0, 1], axes=None, offset=(0, 0)):
""" Wrapper function for :class:`Topoplot.
This function is only provided for convenience.
def topoplot(values, locations, axes=None, offset=(0, 0), **kwargs):
"""Wrapper function for :class:`Topoplot.
"""
topo = Topoplot(headcolor=headcolor)
topo = Topoplot(**kwargs)
topo.set_locations(locations)
topo.set_values(values)
topo.create_map()
#h = topo.plot_map(axes, offset)
topo.plot_map(axes=axes, offset=offset)
topo.plot_locations(axes=axes, offset=offset)
topo.plot_head(axes=axes, offset=offset)
#plot.colorbar(h)
return topo

0 comments on commit d7449cc

Please sign in to comment.