Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #90 from dstansby/plotinkwargs
Browse files Browse the repository at this point in the history
Allow plot_input to pass through kwargs
  • Loading branch information
dstansby authored Apr 9, 2019
2 parents 59ec616 + c1a4466 commit 7dbd2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pfsspy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __init__(self, br, nr, rss, dtime=None):
nphi = self.br.shape[1]
self.grid = Grid(ns, nphi, nr, rss)

def plot_input(self, ax=None):
def plot_input(self, ax=None, **kwargs):
"""
Plot a 2D image of the magnetic field boundary condition.
Expand All @@ -153,7 +153,7 @@ def plot_input(self, ax=None):
ax : Axes
Axes to plot to. If ``None``, creates a new figure.
"""
mesh = pfsspy.plot.radial_cut(self.grid.pc, self.grid.sc, self.br, ax)
mesh = pfsspy.plot.radial_cut(self.grid.pc, self.grid.sc, self.br, ax, **kwargs)
return mesh


Expand Down

0 comments on commit 7dbd2b5

Please sign in to comment.