plotly_io.plotly_filters
plotly_io.plotly_filters(
passbands,
inst_name,
mode_name,
subarray_name,
filter_name,=False,
show_all )
Make a plotly figure of the passband filters.
Parameters
Name | Type | Description | Default |
---|---|---|---|
passbands | Dictionary of passband arrays. See example below. | required | |
inst_name | Instrument to plot/highlight | required | |
mode_name | Mode to plot/highlight | required | |
subarray | Subarray to plot the passband. | required | |
filter_name | Filter to plot. | required | |
show_all | If True, plot a selection from all instruments for better comparison. | False |
Examples
>>> import gen_tso.pandeia_io as jwst
>>> import gen_tso.plotly_io as plots
>>>
>>> passbands = jwst.filter_throughputs()['spectroscopy']
>>> fig = plots.plotly_filters(
>>> passbands, 'nircam', 'lw_tsgrism', 'subgrism64', 'f444w',
>>> show_all=True,
>>> )
>>> fig.show()