<s> """<STR_LIT>""" <EOL> from matplotlib . ticker import LinearLocator <EOL> from mpl_toolkits . mplot3d import axes3d <EOL> import matplotlib . pyplot as plt <EOL> import numpy <EOL> fig = plt . figure ( ) <EOL> ax = fig . gca ( projection = '<STR_LIT>' ) <EOL> X = numpy . arange ( - <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:0.1> ) <EOL> Y = numpy . arange ( - <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:0.1> ) <EOL> X , Y = numpy . meshgrid ( X , Y ) <EOL> Z = X ** <NUM_LIT:2> + Y ** <NUM_LIT:2> <EOL> colortuple = ( '<STR_LIT:w>' , '<STR_LIT:b>' ) <EOL> colors = numpy . empty ( X . shape , dtype = str ) <EOL> for x in xrange ( len ( X ) ) : <EOL> for y in xrange ( len ( Y ) ) : <EOL> colors [ x , y ] = colortuple [ ( x + y ) % <NUM_LIT:2> ] <EOL> surf = ax . plot_surface ( X , Y , Z , rstride = <NUM_LIT:1> , cstride = <NUM_LIT:1> , facecolors = colors , <EOL> linewidth = <NUM_LIT:0> ) <EOL> ax . set_xlim3d ( - <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> ax . set_ylim3d ( - <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> ax . set_zlim3d ( <NUM_LIT:0> , <NUM_LIT:2> ) <EOL> ax . w_xaxis . set_major_locator ( LinearLocator ( <NUM_LIT:3> ) ) <EOL> ax . w_yaxis . set_major_locator ( LinearLocator ( <NUM_LIT:3> ) ) <EOL> ax . w_zaxis . set_major_locator ( LinearLocator ( <NUM_LIT:3> ) ) <EOL> ax . text ( <NUM_LIT> , <NUM_LIT:0> , <NUM_LIT> , "<STR_LIT>" , fontsize = <NUM_LIT:20> ) <EOL> plt . show ( ) </s>
