Commits

Davide Cittaro  committed c654a78

bugfix

  • Participants
  • Parent commits eaf1558

Comments (0)

Files changed (1)

File bighilbert.py

     hc[r][c] += data[i]
   # dump hilbert curve in image and array
   np.save("Sample1_%s" % chrom, hc)
-  plt.imshow(hc, origin=0, alpha=0.5, cmap=plt.cm.Blues)  
+  plt.imshow(np.log1p(hc), origin=0, alpha=0.3, cmap=plt.cm.Blues)  
 
   sys.stderr.write("Processing Sample2\n")
   hc = np.zeros((n, n))
     hc[r][c] += data[i]
   # dump hilbert curve in image and array
   np.save("Sample2_%s" % chrom, hc)
-  plt.imshow(hc, origin=0, alpha=0.5, cmap=plt.cm.Reds)  
+  plt.imshow(np.log1p(hc), origin=0, alpha=0.3, cmap=plt.cm.Reds)  
   plt.title("Hilbert curve for %s" % chrom)
   plt.savefig("HC_%s.png" % chrom)
   plt.close()