Skip to content

Commit 4462848

Browse files
author
Mark Fiers
committed
minor fixes
1 parent 7b7a5a6 commit 4462848

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

hagfish_blockplot

+11-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ l.info("starting %s" % sys.argv[0])
3939
data = hagfishData(options, args)
4040

4141
#prepare the plot
42-
plot = hagfishPlot(options, data)
42+
plot = hagfishPlot(options, data, tag='block')
4343

4444
class plotter(hagfishPlotBand):
4545

@@ -54,6 +54,7 @@ class plotter(hagfishPlotBand):
5454
self.l.debug("score min %s max %s" % (np.min(score), np.max(score)))
5555

5656
spacer = (self.bandTop - self.bandBottom) / 20.0
57+
5758
self.plot.lastBar = self.ax.imshow(
5859
[score],
5960
cmap=COLMAP1,
@@ -66,11 +67,17 @@ class plotter(hagfishPlotBand):
6667
)
6768

6869
if self.__dict__.has_key('nns'):
70+
self.l.info("plotting N band")
71+
self.l.info("maxY %s" % self.plot.maxY)
72+
self.l.info("max min nns %s %s " % (np.max(self.nns), np.min(self.nns)))
73+
self.l.info("bandbot, bandtop %s %s " % (self.bandBottom, self.bandTop))
74+
75+
6976
self.ax.fill_between(
7077
self.locx,
7178
yc + (self.plot.maxY * self.nns * 0.25),
7279
yc - (self.plot.maxY * self.nns * 0.25),
73-
linewidth=0, zorder=0,
80+
linewidth=0, zorder=220,
7481
color=COLLIGHTYELLOW)
7582

7683

@@ -85,9 +92,9 @@ plt.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)
8592
#cbax = plot.add_axes((0.8,0.1,0.2, 0.9)
8693
l.info('plotting colorbar')
8794
plt.colorbar(plot.lastBar, ax=plot.ax, orientation="vertical", format="%s",
88-
ticks=[1, 0, -1], pad = 0.01, fraction=0.04,
95+
ticks=[1, 0, -1], pad = 0.05, fraction=0.05, aspect=10,
8996
)
9097

91-
plot.save(tag='block')
98+
plot.save()
9299

93100

0 commit comments

Comments
 (0)