Skip to content

Commit

Permalink
minor changes to plotting scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
james committed Jun 16, 2014
1 parent 327f05c commit 5bae9e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion graphCellStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def getCountsFromLineArr(arr):
pp = PdfPages(p_arg_map["out"])

colors = cycle("bgrcmyk")
markers = "ooooooooxxxxxxxx++++++++********ssssssssvvvvvvvv"
markers = "oooooooxxxxxxxx++++++++********ssssssssvvvvvvvv"

cellset = sorted(list(set(cellnames)))
cmap = dict(zip(cellset, zip(colors,markers)))
Expand Down
5 changes: 4 additions & 1 deletion zmwProductivityHeatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@
colors="rgy"
(x,y) = zip(*xyl)

pp = PdfPages(infile.split(".")[0] + ".pdf")
cellname = infile.split(".")[0]
pp = PdfPages(cellname + ".pdf")
colormap = map(lambda c: colors[c], zmw_prods)
plt.scatter(x, y, marker='o', s=3,lw=0, c=colormap, edgecolor=colormap)
plt.suptitle(cellname)

plt.savefig(pp, format="pdf")

Expand All @@ -49,6 +51,7 @@
plt.legend()
plt.xlabel("Read Length")
plt.ylabel("Frequency")
plt.suptitle(cellname)

plt.savefig(pp, format="pdf")

Expand Down

0 comments on commit 5bae9e2

Please sign in to comment.