Skip to content

Commit

Permalink
plotting.plotVertBar() now with kwargs being forwarded to matplotlib
Browse files Browse the repository at this point in the history
  • Loading branch information
ibressler committed Jun 7, 2021
1 parent 03fe42c commit 35dbce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def createFigure(width=80, aspectRatio=4./3., quiet=False, **kwargs):
initFigure(fig, width, aspectRatio, quiet)
return fig

def plotVertBar(ax, xpos, ymax, color, label=None):
ax.plot((xpos, xpos), (0, ymax), color=color, label=label)
def plotVertBar(ax, xpos, ymax, **kwargs):
ax.plot((xpos, xpos), (0, ymax), **kwargs)

def plotColor(idx):
pltcol = plt.rcParams['axes.prop_cycle'].by_key()['color']
Expand Down

0 comments on commit 35dbce1

Please sign in to comment.