#NEWLINE# @ cleanup #NEWLINE# def test_axis_changes_applied_to_all_axis( ) : #NEWLINE# #INDENT# p = ( ggplot ( aes ( x = 'price' ) , data = diamonds ) + geom_histogram ( ) ) #NEWLINE# p = ( p + facet_wrap ( 'cut' , scales = 'free_y' ) ) #NEWLINE# fig = ( p + xlim ( 0 , 1500 ) ) . draw ( ) #NEWLINE# for ax in p . axes : #NEWLINE# #INDENT# assert_true ( ( ax . get_xlim ( ) == ( 0 , 1500 ) ) ) #NEWLINE# #UNINDENT# fig = ( p + xlab ( 'test' ) ) . draw ( ) #NEWLINE# for ax in fig . axes : #NEWLINE# #INDENT# assert_true ( ( ax . get_xlabel ( ) == 'test' ) )