Skip to content

Commit

Permalink
fix spectrum plot to track stokes selection
Browse files Browse the repository at this point in the history
  • Loading branch information
schiebel committed Jan 11, 2024
1 parent cc1c90b commit 1b638a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion casagui/toolbox/_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ def connect( self ):
var geometry = cb_data['geometry'];
var x_pos = Math.floor(geometry.x);
var y_pos = Math.floor(geometry.y);
specds.spectra( x_pos, y_pos, 0, true )
specds.spectra( x_pos, y_pos, imageds.cur_chan[0], true )
if ( isFinite(x_pos) && isFinite(y_pos) ) {
specfig.title.text = `Spectrum (${x_pos},${y_pos})`
} else {
Expand Down

0 comments on commit 1b638a9

Please sign in to comment.