Slice and plot my scanline!

I’ve been playing with the expression node in Nuke lately, and one of the things I made was a simple Slice tool/scanline plotter. It can sample a slice (between two points) and will plot the color values as a curve over the image.
I’ve wrapped it up in a group with a set of exposed parameters, but not exported as a gizmo, just because it might be handy to just copy/pasta it into your scripts somewhere without the need to embed it into a pipeline.
It has three modes, per pixel which is checking the raw pixels, and a sample area which is similar to the per pixel method but it can sample a larger area pr pixel as well. (using the ex: r(x,y,5,5) function) and one that will use the first point to determine which full scanline to sample and plot.
Maybe someone will find it usefull, maybe someone will……….buy me a beer….
Download here and open .txt file and paste into Nuke DAG.