Commit d6c90253 authored by Thomas VINCENT's avatar Thomas VINCENT

Fix Q space range

parent 244741d3
......@@ -454,9 +454,9 @@ class QSpaceView(Qt.QMainWindow):
qxMin, qxMax = min(self.__qx), max(self.__qx)
qyMin, qyMax = min(self.__qy), max(self.__qy)
qzMin, qzMax = min(self.__qz), max(self.__qz)
isoView.setScale((qxMax - qxMin) / qxLen,
(qyMax - qyMin) / qyLen,
(qzMax - qzMin) / qzLen)
isoView.setScale((qxMax - qxMin) / (qxLen - 1),
(qyMax - qyMin) / (qyLen - 1),
(qzMax - qzMin) / (qzLen - 1))
isoView.setTranslation(qxMin, qyMin, qzMin)
isoView.setData(qspace.swapaxes(0, 2))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment