Module Expr Str Import alias identifier ImportFrom alias Import alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Print BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num Print BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num ImportFrom alias Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad Num Num NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad Num Num keyword Str ImportFrom alias alias Assign NameStore Call NameLoad NameLoad keyword Str keyword ListLoad NameLoad keyword NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad keyword Num keyword ListLoad Num keyword ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad keyword Num keyword ListLoad Num keyword ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad keyword Num keyword ListLoad Num keyword ListLoad Str ImportFrom alias Assign NameStore Call NameLoad TupleLoad Num Num Num Num keyword Str Assign NameStore Call NameLoad TupleLoad Num Num Num Num keyword Str Assign NameStore Call NameLoad TupleLoad Num Num Num Num keyword Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad ListLoad Str Str Str Expr Call NameLoad
N/A N/A 
Plot Haxby masks
=================

Small script to plot the masks of the Haxby dataset.
 N/A numpy np scipy linalg N/A matplotlib.pyplot plt nilearn datasets N/A haxby_dataset N/A N/A datasets fetch_haxby N/A N/A First subject anatomical nifti image (3D) is at: %s N/A N/A haxby_dataset anat N/A 0 N/A N/A First subject functional nifti image (4D) is at: %s N/A N/A haxby_dataset func N/A 0 nilearn image N/A func_filename N/A N/A haxby_dataset func N/A 0 N/A mean_img N/A N/A image mean_img func_filename N/A z_slice -24 nilearn.image.resampling coord_transform N/A affine N/A N/A mean_img get_affine N/A N/A _ _ k_slice N/A coord_transform 0 0 z_slice N/A N/A linalg inv affine N/A k_slice N/A N/A np round k_slice N/A fig N/A N/A plt figure figsize N/A 4 5.4 facecolor k nilearn.plotting plot_anat show N/A display N/A plot_anat mean_img display_mode z cut_coords N/A z_slice figure fig N/A mask_vt_filename N/A N/A haxby_dataset mask_vt N/A 0 N/A mask_house_filename N/A N/A haxby_dataset mask_house N/A 0 N/A mask_face_filename N/A N/A haxby_dataset mask_face N/A 0 N/A N/A N/A display add_contours mask_vt_filename contours 1 antialiased False linewidths 4.0 levels N/A 0 colors N/A red N/A N/A N/A display add_contours mask_house_filename contours 1 antialiased False linewidths 4.0 levels N/A 0 colors N/A blue N/A N/A N/A display add_contours mask_face_filename contours 1 antialiased False linewidths 4.0 levels N/A 0 colors N/A limegreen matplotlib.patches Rectangle N/A p_v N/A Rectangle N/A 0 0 1 1 fc red N/A p_h N/A Rectangle N/A 0 0 1 1 fc blue N/A p_f N/A Rectangle N/A 0 0 1 1 fc limegreen N/A N/A N/A plt legend N/A p_v p_h p_f N/A vt house face N/A N/A show