diff --git a/Treemmer.py b/Treemmer.py index 176f378bc7a7eeafc21c3ea8f83e5b34ba201651..d54ebed3adfb0e3d1e4a0ea335c0ce5f1b91c180 100644 --- a/Treemmer.py +++ b/Treemmer.py @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. -# You have to install ete3 http://etetoolkit.org/download/ +# You have to install ete3 http://etetoolkit.org/ # and joblib https://pythonhosted.org/joblib/ to run Treemmer @@ -399,19 +399,19 @@ if stop == 0: # create file for plot of rltd ################################################# make plot directly ########################################################## -if not arguments.no_plot: - import numpy as np - import matplotlib.pyplot as plt - from matplotlib.ticker import MaxNLocator - ax = plt.figure().gca() - ax.xaxis.set_major_locator(MaxNLocator(integer=True)) - plt.scatter(x, y, s= 2, c= 'black') - plt.xlim(ori_length,0) - plt.ylim(-0.02,1.02) - plt.xlabel('Number of leaves') - plt.ylabel('Relative tree length') - #plt.savefig(arguments.INFILE+'_res_'+ str(arguments.resolution)+'_TLD.png') - plt.savefig(arguments.INFILE+'_res_'+ str(arguments.resolution)+'_TLD.pdf') + if not arguments.no_plot: + import numpy as np + import matplotlib.pyplot as plt + from matplotlib.ticker import MaxNLocator + ax = plt.figure().gca() + ax.xaxis.set_major_locator(MaxNLocator(integer=True)) + plt.scatter(x, y, s= 2, c= 'black') + plt.xlim(ori_length,0) + plt.ylim(-0.02,1.02) + plt.xlabel('Number of leaves') + plt.ylabel('Relative tree length') + #plt.savefig(arguments.INFILE+'_res_'+ str(arguments.resolution)+'_TLD.png') + plt.savefig(arguments.INFILE+'_res_'+ str(arguments.resolution)+'_TLD.pdf')