don't force profile plot to start at 0, to not distort the plot
Issue #851
resolved
profile = SpectralProfile()
profile.setValues(x=[2010, 2020], y=[0,10000], xUnit='DecimalYear')
qgsApp = start_app()
initAll()
enmapBox = EnMAPBox(None)
dock: SpectralLibraryDock = enmapBox.dockManager().createDock('SPECLIB')
dock.mSpeclibWidget.setCurrentProfiles([profile], currentProfileColors=QColor('#ff0000'))
qgsApp.exec_()
Comments (7)
-
reporter -
reporter - changed milestone to 3.10 (Hotfix)
- marked as bug
It’s really more a bug than an enhancement and should be fixed for the next release.
-
reporter - changed title to don't force profile plot to start at 0, to not distort the plot
-
reporter @Benjamin Jakimow I checked again and now I really insist calling it buggy.
The problem with the gab starting at zero is only true when plotting against nanomters.
When plotting against micrometers, the gap jumps to the other side:
And for millimeters and meters, the plot is crewed up totally:
-
reporter
-
reporter You can reproduce this with the enmap_berlin raster.
-
- changed status to resolved
resolves
#851→ <<cset 6d8cf7558cbe>>
- Log in to comment
It’s the same for spectral profiles. E.g. for PRISMA:
Or DESIS: