Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Treemmer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TBRU
Treemmer
Commits
676912b6
Commit
676912b6
authored
7 years ago
by
Menardo Fabrizio
Browse files
Options
Downloads
Patches
Plain Diff
call plot only if stop = 0
parent
03551fe4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Treemmer.py
+14
-14
14 additions, 14 deletions
Treemmer.py
with
14 additions
and
14 deletions
Treemmer.py
+
14
−
14
View file @
676912b6
...
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment