Visualization (visualization)

Introduction

Visualization modules.

Reference/API

lstchain.visualization.bokeh Module

Functions

_generate_bokeh_multi_polygon_arrays(geom[, ...])

_generate_polygon_vertices([order, x, y, ...])

returns the vertices of a regular polygon of order order, centered at (x,y), with size size and rotation angle theta0 in deg.

get_pixel_location(pix_id)

plot_mean_and_stddev_bokeh(table, camgeom, ...)

show_camera(content, camgeom, pad_width, label)

Classes

CameraDisplay(geom[, zlow, zhigh, label, ...])

New version of a Bokeh camera display, by K.

lstchain.visualization.camera Module

Functions

display_dl1_event(event, camera_geometry[, ...])

Display a DL1 event (image and pulse time map) side by side

overlay_disp_vector(display, disp, hillas, ...)

Overlay disp vector on a CameraDisplay

overlay_hillas_major_axis(display, hillas, ...)

Overlay hillas ellipse major axis on a CameraDisplay.

overlay_source(display, source_pos_x, ...)

Display the source (event) position in the camera

lstchain.visualization.plot_calib Module

Functions

plot_calibration_results(ped_data, ff_data, ...)

plot camera calibration quantities

lstchain.visualization.plot_dl2 Module

Module for plotting results from reconstruction.

Usage: “import plot_dl2”

Functions

direction_results(dl2_data[, ...])

energy_results(dl2_data[, points_outfile, ...])

Plot energy resolution, energy bias and energy migration matrix in the same figure

plot_1d_excess(named_datasets, ...[, ax, ...])

Plot one-dimensional distribution of signal and backgound events Color maps: https://matplotlib.org/gallery/color/colormap_reference.html

plot_disp(data[, true_hadroness])

Plot the performance of reconstructed position

plot_disp_vector(data)

plot_energy_resolution(dl2_data[, ax, ...])

Plot the energy resolution from a pandas dataframe of DL2 data.

plot_features(data[, true_hadroness])

Plot the distribution of different features that characterize events, such as hillas parameters or MC data.

plot_importances(model, features_names[, ax])

plot features importances

plot_pos(data[, true_hadroness])

Plot the performance of reconstructed position Parameters: data: pandas DataFrame true_hadroness: boolean True: True gammas and proton events are plotted (they are separated using true hadroness).

plot_roc_gamma(dl2_data[, energy_bins, ax])

Plot a ROC curve of the gammaness classification from a pandas dataframe.

plot_wobble(source_position, n_points[, ax])

Plot 2D map of ON/OFF positions w.r.t.

lstchain.visualization.plot_drs4 Module

Functions

plot_pedestals(data_file, pedestal_file[, ...])

plot pedestal quantities quantities