...

Source file src/gonum.org/v1/plot/plotter/barchart_test.go

Documentation: gonum.org/v1/plot/plotter

     1  // Copyright ©2015 The Gonum 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 plotter_test
     6  
     7  import (
     8  	"testing"
     9  
    10  	"gonum.org/v1/plot/cmpimg"
    11  )
    12  
    13  func TestBarChart(t *testing.T) {
    14  	cmpimg.CheckPlot(ExampleBarChart, t, "verticalBarChart.png",
    15  		"horizontalBarChart.png", "barChart2.png",
    16  		"stackedBarChart.png")
    17  }
    18  
    19  func TestBarChart_positiveNegative(t *testing.T) {
    20  	cmpimg.CheckPlot(ExampleBarChart_positiveNegative, t, "barChart_positiveNegative.png")
    21  }
    22  

View as plain text