go-hep.org/x/hep@v0.38.1/hplot/ticks_test.go (about) 1 // Copyright ©2020 The go-hep Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package hplot_test 6 7 import ( 8 "testing" 9 10 "gonum.org/v1/plot/cmpimg" 11 ) 12 13 func TestTicks(t *testing.T) { 14 checkPlot(cmpimg.CheckPlot)(ExampleTicks, t, "ticks.png") 15 } 16 17 func TestTicksTimeYearly(t *testing.T) { 18 checkPlot(cmpimg.CheckPlot)(ExampleTicks_yearly, t, "timeseries_yearly.png") 19 } 20 21 func TestTicksTimeMonthly(t *testing.T) { 22 checkPlot(cmpimg.CheckPlot)(ExampleTicks_monthly, t, "timeseries_monthly.png") 23 } 24 25 func TestTicksTimeDaily(t *testing.T) { 26 checkPlot(cmpimg.CheckPlot)(ExampleTicks_daily, t, "timeseries_daily.png") 27 }