@@ -39,7 +39,7 @@ l.info("starting %s" % sys.argv[0])
39
39
data = hagfishData (options , args )
40
40
41
41
#prepare the plot
42
- plot = hagfishPlot (options , data )
42
+ plot = hagfishPlot (options , data , tag = 'block' )
43
43
44
44
class plotter (hagfishPlotBand ):
45
45
@@ -54,6 +54,7 @@ class plotter(hagfishPlotBand):
54
54
self .l .debug ("score min %s max %s" % (np .min (score ), np .max (score )))
55
55
56
56
spacer = (self .bandTop - self .bandBottom ) / 20.0
57
+
57
58
self .plot .lastBar = self .ax .imshow (
58
59
[score ],
59
60
cmap = COLMAP1 ,
@@ -66,11 +67,17 @@ class plotter(hagfishPlotBand):
66
67
)
67
68
68
69
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
+
69
76
self .ax .fill_between (
70
77
self .locx ,
71
78
yc + (self .plot .maxY * self .nns * 0.25 ),
72
79
yc - (self .plot .maxY * self .nns * 0.25 ),
73
- linewidth = 0 , zorder = 0 ,
80
+ linewidth = 0 , zorder = 220 ,
74
81
color = COLLIGHTYELLOW )
75
82
76
83
@@ -85,9 +92,9 @@ plt.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.01)
85
92
#cbax = plot.add_axes((0.8,0.1,0.2, 0.9)
86
93
l .info ('plotting colorbar' )
87
94
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 ,
89
96
)
90
97
91
- plot .save (tag = 'block' )
98
+ plot .save ()
92
99
93
100
0 commit comments