gui.pile_viewer¶
-
class
TimeScaler[source]¶ Undocumented.
-
make_scale(data_range)[source]¶ Get nice minimum, maximum and increment for given data range.
Returns
(minimum, maximum, increment)or(maximum, minimum, -increment), depending on whether data_range is(data_min, data_max)or(data_max, data_min). Ifoverride_modeis defined, the mode attribute is temporarily overridden by the given value.
-
-
class
PileViewerMain(pile, ntracks_shown_max, panel_parent, *args)¶ -
draw_visible_markers(markers, p, vcenter_projection)¶ Draw non-overlapping
markers.
-
drawit(p, printmode=False, w=None, h=None)¶ This performs the actual drawing.
-
paintEvent(paint_ev)¶ Called by QT whenever widget needs to be painted
-
read_events(fn=None)¶ Open QFileDialog to open, read and add
pyrocko.model.Eventinstances and their marker representation to the pile viewer.
-
read_markers(fn=None)¶ Open QFileDialog to open, read and add markers to the pile viewer.
-
remove_marker(marker)¶ Remove a
markerfrom thePileViewer.Parameters: marker – Marker(or subclass) instance
-
remove_markers(markers)¶ Remove a list of
markersfrom thePileViewer.Parameters: markers – list of Marker(or subclass) instances
-
set_selected_markers(markers)¶ Set a list of markers selected
Parameters: markers – list of markers
-
tobedrawn(markers, uminmax)¶ Returns two lists of indices: first indicates which markers should be labeled. second indicates which markers should be drawn.
-
-
GLPileViewerMain¶ alias of
pyrocko.gui.pile_viewer.MakePileViewerMainClass.<locals>.PileViewerMain