#NEWLINE# @ bball . setup #NEWLINE# def draw_court( axes ) : #NEWLINE# #INDENT# c = '#777777' #NEWLINE# opts = dict ( fc = 'none' , ec = c , lw = 2 ) #NEWLINE# hoop = Circle ( ( 0 , 63 ) , radius = 9 , ** opts ) #NEWLINE# axes . add_patch ( hoop ) #NEWLINE# box = Rectangle ( ( ( ( - 6 ) * 12 ) , 0 ) , 144 , ( 19 * 12 ) , ** opts ) #NEWLINE# axes . add_patch ( box ) #NEWLINE# inner = Arc ( ( 0 , ( 19 * 12 ) ) , 144 , 144 , theta1 = 0 , theta2 = 180 , ** opts ) #NEWLINE# axes . add_patch ( c ) #NEWLINE# threept = Arc ( ( 0 , 63 ) , 474 , 474 , theta1 = 0 , theta2 = 180 , ** opts ) #NEWLINE# axes . add_patch ( threept ) #NEWLINE# opts = dict ( c = c , lw = 2 ) #NEWLINE# axes . add_line ( Line2D ( [ 237 , 237 ] , [ 0 , 63 ] , ** opts ) ) #NEWLINE# axes . add_line ( Line2D ( [ ( - 237 ) , ( - 237 ) ] , [ 0 , 63 ] , ** opts ) ) #NEWLINE# axes . set_ylim ( 0 , 400 ) #NEWLINE# axes . set_aspect ( 'equal' , adjustable = 'datalim' )