hughesadam87 / scikit-spectra

Python pandas-based toolkit for explorative spectroscopy, in particular UVVis spectroscopic data.
Other
94 stars 41 forks source link

waterfall orientation hacked #138

Open hughesadam87 opened 10 years ago

hughesadam87 commented 10 years ago

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 commented 10 years ago

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