Skip to content

Commit

Permalink
Feature
Browse files Browse the repository at this point in the history
Set default for plotfmt to "pdf"
  • Loading branch information
DRL committed Dec 18, 2016
1 parent d6dc1f2 commit 7f32892
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kinfin.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
-r, --repetitions <INT> Number of repetitions for rarefaction curves [default: 30]
--fontsize <INT> Fontsize for plots [default: 18]
--plotsize <INT,INT> Size (WIDTH,HEIGHT) for plots [default: 24,12]
--plotfmt <STR> Plot formats [default: png]
--plotfmt <STR> Plot formats [default: pdf]
"""

Expand Down Expand Up @@ -1570,6 +1570,7 @@ def generate_chart_for_node(self, node):
f.savefig(chart_f, bbox_inches='tight', format='png')
if inputObj.plot_format == 'pdf':
pdf_chart_f = join(dataFactory.dirs['tree_charts'], "%s.barchart.pdf" % (node.name))
print "[STATUS]\t- Plotting %s" % (pdf_chart_f)
f.savefig(pdf_chart_f, bbox_inches='tight', format='pdf')
plt.close()
return chart_f
Expand Down Expand Up @@ -2118,7 +2119,7 @@ def welcome_screen():
" % (__version__)
print screen
if __name__ == "__main__":
__version__ = "0.7.2"
__version__ = "0.7.3"
args = docopt(__doc__)
# Sanitise input
welcome_screen()
Expand Down

0 comments on commit 7f32892

Please sign in to comment.