forked from spacetelescope/jwql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into bad-pixel-monitor
- Loading branch information
Showing
21 changed files
with
1,415 additions
and
285 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
- !ColumnDataSource: &dummy | ||
- !ColumnDataSource: &dummy # This is a dummy ColumnDataSource used to trigger the controller method whenever a slider is changed. | ||
data: | ||
value: [] | ||
on_change: ['data', !self.controller ] | ||
- !CustomJS: &callback | ||
- !CustomJS: &callback # This callback changes the value of the dummy ColumnDataSource data to trigger the controller method. | ||
ref: "callback" | ||
args: | ||
source: *dummy | ||
code: "\n source.data = { value: [cb_obj.value] }\n" | ||
- !Slider: &a_slider | ||
- !Slider: &a_slider # a slider for the a value | ||
ref: "a_slider" | ||
title: "A" | ||
value: 4 | ||
range: !!python/tuple [1, 20, 0.1] | ||
callback: *callback | ||
- !Slider: &b_slider | ||
- !Slider: &b_slider # a slider for the b value | ||
ref: "b_slider" | ||
title: "B" | ||
value: 2 | ||
range: !!python/tuple [1, 20, 0.1] | ||
callback: *callback | ||
- !ColumnDataSource: &figure_source | ||
- !ColumnDataSource: &figure_source # the ColumnDataSource for the figure | ||
ref: "figure_source" | ||
data: | ||
x: !self.x | ||
y: !self.y | ||
- !Figure: &the_figure | ||
- !Figure: &the_figure # the Figure itself, which includes a single line element. | ||
ref: 'the_figure' | ||
elements: | ||
- {'kind': 'line', 'source': *figure_source, 'line_color': 'orange', 'line_width': 2} | ||
- !Document: | ||
- !Document: # the Bokeh document layout: a single column with the figure and two sliders | ||
- !column: | ||
- *the_figure | ||
- *the_figure # note the use of YAML anchors to add the Bokeh objects to the Document layout directly. | ||
- *a_slider | ||
- *b_slider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.