danieljprice / splash

SPLASH is an interactive visualisation and plotting tool using kernel interpolation, mainly used for Smoothed Particle Hydrodynamics simulations
https://splash-viz.readthedocs.io
GNU General Public License v2.0
55 stars 43 forks source link

Limits: added new option for a centred cube #60

Closed jameswurster closed 2 years ago

jameswurster commented 2 years ago

Currently, to set the limits to plot a centred square or cubic regions, we must manually change each individual limit. This can be tedious during analysis when trying to determine the optimal size, or when we are constantly switching between selected sizes.

This commit adds a new option (numplot+1) where the user enters xyz_max, and the limits are automatically set such that x_max = xyz_max y_max = xyz_max z_max = xyz_max x_min = -xyz_max y_min = -xyz_max z_min = -xyz_max

danieljprice commented 2 years ago

thanks for the contribution!