Navigation Menu

Skip to content

Commit

Permalink
MIN Import pylab only if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
luispedro committed Jan 11, 2013
1 parent 2168967 commit dd78076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/run_sub2.py
Expand Up @@ -2,7 +2,6 @@
import numpy as np
from drugconcentrations import get_drugs
from load import read_sub2
from pylab import plot
data, drugs, times, concentrations, gene_names = read_sub2()
first_line = 'Drug Combination,Rank'

Expand Down Expand Up @@ -129,6 +128,7 @@ def build_gos_pergos(data, names):

do_plot = False
if do_plot:
from pylab import plot
p0,p1 = GoCs.min(),GoCs.max()
plot([p0,p1],[np.dot(x,[p0,1]),np.dot(x,[p1,1])], 'b-')
plot(GoCs.ravel(), GeneCs.ravel(),'r.')
Expand Down

0 comments on commit dd78076

Please sign in to comment.