ratt-ru / shadeMS

Rapid Measurement Set plotting with dask-ms and datashader
21 stars 6 forks source link

add --xhline and --yhline options and arbitrary --markup #79

Closed o-smirnov closed 3 years ago

o-smirnov commented 4 years ago

Some plots could benefit with lines at e.g. 0 to guide the eye.

o-smirnov commented 4 years ago

Had an even better idea -- it's pretty simple to make a generic thingy for invoking arbitrary matplotlib Axes methods. Just supply the arguments as a YaML string. For example, to call Axes.annotate():

shadems msdir/MS-pre_cal.ms -x real -y imag -c CORR --corr IQUV --dir plots --col CORRECTED_DATA --field J0521+1638 --vline 0: --hline 0: -M annotate "['This line is for Paolo', {xy: [0.2, 0], xytext: [0.4, -0.1], arrowprops: {facecolor: black, shrink: 0.05}}]"

image

IanHeywood commented 4 years ago

That's brilliant.