#NEWLINE# def test_barchart_2( ) : #NEWLINE# #INDENT# ' BarChart with different column widths ' #NEWLINE# coordinate_system = cartesius . CoordinateSystem ( ) #NEWLINE# barchart_data = ( charts . data ( ( - 5 ) , ( - 0 ) , ( - 0.5 ) , label = 'Negative value' ) , charts . data ( 0 , 1 , size = 0.7 ) , charts . data ( 1 , 3 , size = 2 ) , charts . data ( 3 , 4 , size = 4 , label = '#1' ) , charts . data ( 4 , 5.5 , size = 3.1 ) , charts . data ( 6 , 7 , size = 2.1 ) , charts . data ( 7 , 9 , size = 1 ) ) #NEWLINE# barchart = charts . BarChart ( vertical = True , data = barchart_data , color = ( 0 , 0 , 0 ) ) #NEWLINE# coordinate_system . add ( coordinate_system ) #NEWLINE# return ( coordinate_system . draw ( 300 , 200 ) , coordinate_system . draw ( 300 , 200 , antialiasing = True ) )