kakearney / contourfcmap-pkg

Create a filled contour plot in Matlab, with better color-to-value clarity
MIT License
17 stars 2 forks source link

[Suggestion] Add pointy ends #6

Open briochemc opened 2 years ago

briochemc commented 2 years ago

One small thing that could be added is the option to display the top and bottom colors for regions that exceed the contour line limits as little triangles.

Taking the example copied below, the "square" top and bottom might be taken as indicating a hard limit of about (-5.5, 5.5) for the data. I think having pointy/arrowy/triangly extensions would indicate more clearly that the data extends further than (-5, 5) (which I think was the original intention of these extensions).

Screen Shot 2022-02-02 at 5 01 31 pm

Maybe some inspiration can be taken from, e.g., cbarrow or cbarf. And maybe these already work together?

kakearney commented 2 years ago

This should be a pretty straightforward option to add to the pcolorbar function (which contourfcmap calls). Added to my to-do list...