Hi, I was wondering if there is a way to put a scale division in a heatmap plot using Makie. See the following plot as a reference, where I would like to implement both the line and the value in the corner that is positioned center-right:
If possible I would like to couple it to a specific pixel ratio, so let’s say I know each pixel has a “real” width Δx. I want to make sure that for different plots with different Δx, that the scale division takes up a certain amount of pixels C (constant for each plot), but calculates the corresponding value (C*Δx) and displays it above the scale division.
One option would be to calculate the data distance covered by some pixel width by listening to ax.finallimits and ax.scene.px_area. Then you can calculate the line and text position in pixel space for the axis scene, and update accordingly. This only works when there’s no axis scale applied.