scikit-spectra icon indicating copy to clipboard operation
scikit-spectra copied to clipboard

waterfall orientation hacked

Open hughesadam87 opened this issue 10 years ago • 1 comments

Right now, waterfall is being hacked to seem to be oriented same way as wire/surf, however it is intriniscally rotated based on how polygon is being created. I don't know which variables I need to fix to make this work in Polycollection! Currently, I am reversing x/y labels, y/x datetime index attributes, and azimuth to rotate view. This still is discrepant as colormap would need reversed to hide orientation change.

    # Reverse labels/DTI call for correct orientaion HACK HACK HACK
    xlabel, ylabel = ylabel, xlabel    
    _x_dti, _y_dti = _y_dti, _x_dti
    azim = -1 * azim

In spectra.specplot() don't forget about this hack for reversing index axis:

# Reverse X-axis for all PLOT TYPES (EXCEPT CONTOUR)
if ts.index[0] > ts.index[-1]:
   if kind != 'contour':
      if kind == 'waterfall':
         ax.set_ylim(ax.get_ylim()[::-1]) # HACK
      else:
         ax.set_xlim(ax.get_xlim()[::-1]

hughesadam87 avatar Oct 03 '14 00:10 hughesadam87

Waterfall colormap also showing time, not intensity at the moment!

hughesadam87 avatar Oct 03 '14 00:10 hughesadam87