Skip to content

GCWidget.zoom_to() ​

Set the zoom window of the chart, R's GC_zoom_to().

Moves the zoom slider of .zoom() without drawing the chart again. With .events(zoom=True), the chart reports the new window in zoom, with action "set".

Usage ​

python
widget.zoom_to(range=None)

widget is a GCWidget.

Arguments ​

ArgumentTypeDescription
rangesequence of two numbers or NoneThe window, as [start, end] in the units of the mode of .zoom(): shares of the clusters ("relative") or base pairs ("absolute"). None shows everything. The range of zoom can be passed back as it is.

Errors ​

ErrorWhen
ValueErrorWhen range is not valid.