This PR supports the scatter plot via matplotlib.pyplot.scatter(), in addition to the existing image plot via matplotlib.pyplot.imshow(), for view.py single plot scenario. This is useful for high-resolution data with lots of holes from unsuccessful unwrapping. Plotting larger than pixel size fills holes like a low-pass filter.
This is controlled via two options: --style with default of image, and --scatter-size with default of 10 point (**2), respectively.
In the image, top is regular view.py (using imshow) and bottom is --style scatter --scatter-size 8
Reminders
[x] Pass Pre-commit check (green)
[x] Pass Codacy code review (green)
[x] Pass Circle CI test (green)
[x] Make sure that your code follows our style. Use the other functions/files as a basis.
[x] If modifying functionality, describe changes to function behavior and arguments in a comment below the function declaration.
[x] If adding new functionality, add a detailed description to the documentation and/or an example.
Description of proposed changes
This PR supports the scatter plot via
matplotlib.pyplot.scatter()
, in addition to the existing image plot viamatplotlib.pyplot.imshow()
, forview.py
single plot scenario. This is useful for high-resolution data with lots of holes from unsuccessful unwrapping. Plotting larger than pixel size fills holes like a low-pass filter.This is controlled via two options:
--style
with default of image, and--scatter-size
with default of 10 point (**2), respectively.In the image, top is regular view.py (using imshow) and bottom is
--style scatter --scatter-size 8
Reminders