das-developers / das2java

The original das2 library. Provides interactive publication-ready 2-D plotting
https://das2.org
GNU Lesser General Public License v3.0
4 stars 0 forks source link

fail to automatically add 0,1,2,3...,24 to make rank 2 dataset into displayable spectrogram #98

Closed jbfaden closed 8 months ago

jbfaden commented 8 months ago

This demos a bug where two equivalent datasets are rendered differently:

pyds= [ [ 0,0,0,0,0 ],[ 0,0,0,0,0 ],[ 0,0,0,0,0 ],[ 0,0,0,0,0 ], [ 0,0,0,0,0 ] ]
ds= dataset( pyds )

plot( 0, ds, ytitle='All y values are zero' )

plot( 1, zeros(25,25), ytitle='Correct' )
jbfaden commented 8 months ago

The problem was that yTagsDataSet had a branch for a JoinDataSet, used mostly with spectrograms with modes that change. This is a rank 2 join which was not considered it is coding and caused the code to fail.

jbfaden commented 8 months ago

This is fixed and will be available in the next dev release.