Allow passing of own Axes-object
This commit is contained in:
parent
65de5ecf45
commit
11592301fe
1 changed files with 6 additions and 1 deletions
|
|
@ -68,7 +68,12 @@ def plot_gc(data, options=None):
|
|||
|
||||
if options['show_plot']:
|
||||
# Prepare plot
|
||||
|
||||
if not options['fig'] and not options['ax']:
|
||||
fig, ax = btp.prepare_plot(options=options)
|
||||
else:
|
||||
fig, ax = options['fig'], options['ax']
|
||||
|
||||
for i, cycle in enumerate(data['cycles']):
|
||||
if i in options['which_cycles']:
|
||||
if options['charge']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue