chiplot is used in the chimaps notebook to determine the m/n ratio for the chi transform.
chiplot does a lot of different things, including independently calculating the chi transform (which duplicates StreamObject.chitransform), optimizing the m/n ratio, and plotting.
This might be a good opportunity to refactor chiplot both here and in topotoolbox3. I could imagine using chitransform and pulling out the optimization code, which would be useful on its own independent of the visualization. Then chiplot could be an interface for conducting the chi analysis, passing arguments as it does currently to chitransform and the optimization routines, but otherwise focusing on visualizing the output of chitransform.
chiplotis used in the chimaps notebook to determine the m/n ratio for the chi transform.chiplotdoes a lot of different things, including independently calculating the chi transform (which duplicatesStreamObject.chitransform), optimizing the m/n ratio, and plotting.This might be a good opportunity to refactor
chiplotboth here and in topotoolbox3. I could imagine usingchitransformand pulling out the optimization code, which would be useful on its own independent of the visualization. Thenchiplotcould be an interface for conducting the chi analysis, passing arguments as it does currently tochitransformand the optimization routines, but otherwise focusing on visualizing the output ofchitransform.