#NEWLINE# def test_scatter( self ) : #NEWLINE# #INDENT# g = dist . jointplot ( 'x' , 'y' , self . data ) #NEWLINE# nt . assert_equal ( len ( g . ax_joint . collections ) , 1 ) #NEWLINE# ( x , y ) = g . ax_joint . collections [ 0 ] . get_offsets ( ) . T #NEWLINE# npt . assert_array_equal ( self . x , x ) #NEWLINE# npt . assert_array_equal ( self . y , y ) #NEWLINE# x_bins = dist . _freedman_diaconis_bins ( self . x ) #NEWLINE# nt . assert_equal ( len ( g . ax_marg_x . patches ) , x_bins ) #NEWLINE# y_bins = dist . _freedman_diaconis_bins ( self . y ) #NEWLINE# nt . assert_equal ( len ( g . ax_marg_y . patches ) , y_bins )