plotting¶
Plotting methods.
-
time_domain_astronomy_sandbox.plotting.
plot_image
(data, xticks=[], xtick_labels=[], yticks=[], ytick_labels=[], ncols=1, nrows=1, xfig_size=10, yfig_size=5)[source]¶ Plot spectrum.
Parameters: - data (Numpy.Array) --
- xticks (list) -- List of ticks for x axis
- xticks_labels (list) -- List of tick labels for x axis
- yticks (list) -- List of ticks for y axis
- yticks_labels (list) -- List of tick labels for y axis
- ncols (int) -- Number of column for matplotlib.pyplot.subplots
- nrows (int) -- Number of rows for matplotlib.pyplot.subplots
- xfig_size (int) -- Figure size in x
- yfig_size (int) -- Figure size in y
-
time_domain_astronomy_sandbox.plotting.
plot_multi_1D
(data_arr, labels=[], xticks=[], xtick_labels=[], yticks=[], ytick_labels=[], direction='horizontal', xfig_size=10, yfig_size=5, loc=4, detection_threshold=None, savefig=False, fig_name='multi-1D', ext='png', dpi=150)[source]¶ Plot multiple spectrum.
Parameters: - data (list(Numpy.Array)) -- list of data arrays
- xticks (list) -- List of ticks for x axis
- xticks_labels (list) -- List of tick labels for x axis
- yticks (list) -- List of ticks for y axis
- yticks_labels (list) -- List of tick labels for y axis
- direction (str) -- General direction onto which append subplots (default: 'horizontal')
- xfig_size (int) -- Figure size in x (default: 10)
- yfig_size (int) -- Figure size in y (default: 5)
- savefig (bool) -- Save figure (default: False)
- fig_name (str) -- Figure name (default: 'multi-images')
- ext (str) -- File extension (default 'png')
-
time_domain_astronomy_sandbox.plotting.
plot_multi_images
(data_arr, labels=[], xticks=[], xtick_labels=[], yticks=[], ytick_labels=[], direction='horizontal', xfig_size=10, yfig_size=5, loc=4, spectrum=False, detection_threshold=None, colorbar=False, savefig=False, fig_name='multi-images', ext='png', dpi=150)[source]¶ Plot images.
Parameters: - data (list(Numpy.Array)) -- list of data arrays
- xticks (list) -- List of ticks for x axis
- xticks_labels (list) -- List of tick labels for x axis
- yticks (list) -- List of ticks for y axis
- yticks_labels (list) -- List of tick labels for y axis
- direction (str) -- General direction onto which append subplots (default: 'horizontal')
- xfig_size (int) -- Figure size in x (default: 10)
- yfig_size (int) -- Figure size in y (default: 5)
- savefig (bool) -- Save figure (default: False)
- fig_name (str) -- Figure name (default: 'multi-images')
- ext (str) -- File extension (default 'png')
-
time_domain_astronomy_sandbox.plotting.
plot_spectrum
(data, ncols=1, nrows=1)[source]¶ Plot spectrum.
Parameters:
-
time_domain_astronomy_sandbox.plotting.
set_multi_axes
(ax, direction, xticks, xtick_labels, yticks, ytick_labels, spectrum=False, dual=False)[source]¶ Set axes ticks and tick labels
Parameters: - ax (matplotlib.axes.Axes) -- Array of axes
- direction (str) -- General direction onto which append subplots
- xticks (list) -- List of ticks for x axis
- xticks_labels (list) -- List of tick labels for x axis
- yticks (list) -- List of ticks for y axis
- yticks_labels (list) -- List of tick labels for y axis