insarlab / MintPy

Miami InSAR time-series software in Python
https://mintpy.readthedocs.io
Other
560 stars 245 forks source link

`view`: support scatter plot via `--style scatter` option #1146

Closed falkamelung closed 4 months ago

falkamelung commented 5 months ago

Description of proposed changes

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

image

Reminders