pyhrf.plot module¶
-
pyhrf.plot.
autocrop
(img_fn)¶ Remove extra background within figure (inplace). Use ImageMagick (convert)
-
pyhrf.plot.
flip
(img_fn, direction='horizontal')¶ Mirror the figure (inplace). Use ImageMagick (convert) ‘horizontal’ direction -> use -flop. ‘vertical’ direction -> use -flip.
-
pyhrf.plot.
mix_cmap
(img1, cmap1, img2, cmap2, norm1=None, norm2=None, blend_r=0.5)¶
-
pyhrf.plot.
plot_anat_parcel_func_fusion
(anat, func, parcel, parcel_col='white', parcels_line_width=0.5, func_cmap=None, func_norm=None, anat_norm=None, func_mask=None, highlighted_parcels_col=None, highlighted_parcels_line_width=1.5)¶
-
pyhrf.plot.
plot_cub_as_curve
(c, colors=None, plot_kwargs=None, legend_prefix='', show_axis_labels=True, show_legend=False, axes=None, axis_label_fontsize=12)¶ Plot a cuboid (ndims <= 2) as curve(s). If the input is 1D: one single curve. If the input is 2D:
- multiple curves are plotted: one for each domain value on the 1st axis.
- legends are shown to display which domain value is associated to which curve.
Parameters: - colors (dict <domain value> (-) – <matplotlib color>): associate domain values of the 1st axis to color curves
- plot_kwargs (dict <arg name> (-) – <arg value>): dictionary of named argument passed to the plot function
- legend_prefix (-) – prefix to prepend to legend labels.
Returns: None
-
pyhrf.plot.
plot_cub_as_image
(c, cmap=None, norm=None, show_axes=True, show_axis_labels=True, show_tick_labels=True, show_colorbar=False, axes=None)¶
-
pyhrf.plot.
plot_func_slice
(func_slice_data, anatomy=None, parcellation=None, parcel_col='white', parcels_line_width=2.5, func_cmap=None, func_norm=None, anat_norm=None, func_mask=None, highlighted_parcels_col=None, highlighted_parcels_line_width=2.5, resolution=None, crop_extension=None, blend=0.5)¶
-
pyhrf.plot.
plot_gaussian_mixture
(values, props=None, color='k', lw=1.75)¶ axes of values : (component,class)
-
pyhrf.plot.
plot_gaussian_pdf
(bins, m, v, prop=None, plotArgs={})¶
-
pyhrf.plot.
plot_palette
(cmap, norm=None, fontsize=None)¶
-
pyhrf.plot.
plot_spm_mip
(img_fn, mip_fn)¶
-
pyhrf.plot.
rotate
(img_fn, angle)¶ Rotate figure (inplace). Use ImageMagick (convert)
-
pyhrf.plot.
set_int_tick_labels
(axis, labels, fontsize=None, rotation=None)¶ Redefine labels of visible ticks at integer positions for the given axis.
-
pyhrf.plot.
set_ticks_fontsize
(fontsize, colbar=None)¶ Change the fontsize of the tick labels for the current figure. If colorbar (Colorbar instance) is provided then change the fontsize of its tick labels as well.
-
pyhrf.plot.
set_xticklabels
(labels, positions=None, rotation=None)¶ Set ticks labels of the xaxis in the current figure to labels If positions is provided then enforce tick position.