plotter_15.py 786 B

12345678910111213141516
  1. def valueChange(workspace):
  2. xlimit = 10**workspace.xLimitSlider.value()
  3. ylimit = 10**workspace.yLimitSlider.value()
  4. zlimit = 10**workspace.zLimitSlider.value()
  5. meshLayers = workspace.meshDensity.value()
  6. workspace.axisRange = [xlimit, ylimit, zlimit, meshLayers]
  7. workspace.xLimitValue.setText(
  8. "X-axis range: (-" + str(workspace.axisRange[0]) + ", " + str(workspace.axisRange[0]) + ")")
  9. workspace.yLimitValue.setText(
  10. "Y-axis range: (-" + str(workspace.axisRange[1]) + ", " + str(workspace.axisRange[1]) + ")")
  11. workspace.zLimitValue.setText(
  12. "Z-axis range: (-" + str(workspace.axisRange[2]) + ", " + str(workspace.axisRange[2]) + ")")
  13. workspace.meshDensityValue.setText(
  14. "Mesh Layers: " + str(workspace.axisRange[3]))