Skip to content
Snippets Groups Projects
Commit 676912b6 authored by Menardo Fabrizio's avatar Menardo Fabrizio
Browse files

call plot only if stop = 0

parent 03551fe4
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment