shadow4.tools.graphics

Matplotlib-based plotting tools for shadow4 beam data.

Provides histo1() (1D histogram) and plotxy() (2D scatter/histogram) as the main public interface, mirroring the classic Shadow3 ShadowTools API. Column numbers follow the shadow4 convention (1-indexed, columns 1–33).

Functions

ErrorMsg(fromFunc, value)

Histo1_CheckArg(beam, col, xrange, yrange, ...)

Histo1_write(title, bins, h, w, col, beam, ref)

calcFWHM(h, binSize)

findIndex(xx, n, la, lb)

getLabel(col)

getshcol_CheckArg(beam, col)

getshonecol_CheckArg(beam, col)

histo1(beam, col[, notitle, nofwhm, bar])

Plot the 1D histogram of a beam column using matplotlib.

plotxy(beam, col_h, col_v[, nofwhm, title])

Plot a 2D scatter/histogram of two beam columns using matplotlib.

plotxy_CheckArg(beam, cols1, cols2, nbins, ...)

setGoodRange(col)

Classes

Histo1_Ticket()

Container for the output of a 1D histogram plot.

plotxy_Ticket()

Container for the output of a 2D scatter/histogram plot.

Exceptions

ArgsError(value)

Raised when a plotting function receives an invalid argument.

NoValueSelectedError(value)

Raised when no value is selected from a data set.