Commit d6b6b962 authored by David Blyth's avatar David Blyth

Updated trackres

parent 1ec75e1f
...@@ -118,17 +118,25 @@ func main() { ...@@ -118,17 +118,25 @@ func main() {
reader.Close() reader.Close()
colorMap := moreland.BlackBody() colorMap := moreland.ExtendedBlackBody()
colorMap.SetMin(0) colorMap.SetMin(0)
colorMap.SetMax(0.05) colorMap.SetMax(0.025)
heatMap := plotter.NewHeatMap(resGrid, colorMap.Palette(1000)) heatMap := plotter.NewHeatMap(resGrid, colorMap.Palette(1000))
heatMap.Min = 0 heatMap.Min = 0
heatMap.Max = 0.05 heatMap.Max = 0.025
//p.Add(heatMap) p.Add(heatMap)
p.Save(6*vg.Inch, 4*vg.Inch, *output)
p, _ = plot.New()
colorBar := &plotter.ColorBar{ColorMap: colorMap} colorBar := &plotter.ColorBar{ColorMap: colorMap}
colorBar.Vertical = true
p.Add(colorBar) p.Add(colorBar)
p.HideX()
p.Y.Padding = 0
p.Save(6*vg.Inch, 4*vg.Inch, *output) p.Save(50, 400, "scale.png")
} }
type ResGrid struct { type ResGrid struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment