Skip to content

Commit

Permalink
removed legend if monochrome
Browse files Browse the repository at this point in the history
  • Loading branch information
Pombert-JF committed Mar 17, 2024
1 parent d19fa1d commit e967a0b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions paf_to_barplot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
## Pombert lab, 2024
version = '0.1b'
version = '0.1c'
updated = '2024-03-17'
name = 'paf_to_barplot.py'

Expand Down Expand Up @@ -191,7 +191,10 @@
output = basename
fig.suptitle(basename)

plt.legend(handles=legend, loc='center left', bbox_to_anchor=(1, 0.5))
if monochrome:
next
else:
plt.legend(handles=legend, loc='center left', bbox_to_anchor=(1, 0.5))

png = pngdir + '/' + output.rsplit('.', 1)[0] + '.barplot.png'
svg = svgdir + '/' + output.rsplit('.', 1)[0] + '.barplot.svg'
Expand Down

0 comments on commit e967a0b

Please sign in to comment.