<s> """<STR_LIT>""" <EOL> from mayavi import mlab <EOL> import numpy as np <EOL> x , y = np . ogrid [ - <NUM_LIT> : <NUM_LIT:0.5> : <NUM_LIT> , - <NUM_LIT:1> : <NUM_LIT:1> : <NUM_LIT> ] <EOL> z = x + <NUM_LIT> * y <EOL> julia = np . zeros ( z . shape ) <EOL> for i in range ( <NUM_LIT:50> ) : <EOL> z = z ** <NUM_LIT:2> - <NUM_LIT> - <NUM_LIT> <EOL> julia += <NUM_LIT:1> / float ( <NUM_LIT:2> + i ) * ( z * np . conj ( z ) > <NUM_LIT:4> ) <EOL> mlab . figure ( size = ( <NUM_LIT> , <NUM_LIT> ) ) <EOL> mesh = mlab . pipeline . warp_scalar ( mlab . pipeline . array2d_source ( julia ) , <EOL> warp_scale = <NUM_LIT:100> ) <EOL> dec = mlab . pipeline . decimate_pro ( mlab . pipeline . triangle_filter ( mesh ) ) <EOL> dec . filter . feature_angle = <NUM_LIT:1> <EOL> dec . filter . target_reduction = <NUM_LIT:0.5> <EOL> mlab . pipeline . surface ( dec , representation = '<STR_LIT>' , line_width = <NUM_LIT:3> , <EOL> color = ( <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:1> ) ) <EOL> mlab . pipeline . surface ( dec , colormap = '<STR_LIT>' , vmin = - <NUM_LIT:0.1> , vmax = <NUM_LIT> ) <EOL> mlab . pipeline . surface ( mesh , representation = '<STR_LIT>' , color = ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ) <EOL> mlab . view ( - <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , [ - <NUM_LIT> , - <NUM_LIT> , <NUM_LIT> ] ) <EOL> mlab . show ( ) </s>
