
Function cg = colourgrade_plot_hgeo(cg,imedium) inserts intermediate data to the input struct cg, in ordre to draw a colour bar in an html/javascript page for display in a webbrowser. The function is called by m-file colourgrade_plot.m. See into the help text of m-file colourgrade_plot.m for further explanation. At input, the struct cg must have the following fields: cg.colourmap cg.data_plot{imedium} cg.medium_plot{imedium} cg.ul_plot{imedium} cg.linecolour_plot{imedium} cg.fontsizefactor_plot{imedium} cg.titlesizefactor_plot{imedium} cg.vh_plot{imedium} cg.vv_plot{imedium} cg.textcode_plot{imedium} At output, the struc cg contains new or renewed fields: cg.hgeo{imedium} The function internally calls the following non-standard m-file: -- reindexise.m -- hgeo_to_html.m (c) 2026 fabien van mook 2026.08.20 release of this file within package "fvm-colourgrade" under GNU GPLv3+