# HG changeset patch # User luca_milaz # Date 1722786130 0 # Node ID b469aa18c008f34966c30e39393af04ea5093b58 # Parent f3da6593b296417846bd0fd51da552bd7024a272 Uploaded diff -r f3da6593b296 -r b469aa18c008 marea_2/flux_to_map.py --- a/marea_2/flux_to_map.py Sun Aug 04 15:36:07 2024 +0000 +++ b/marea_2/flux_to_map.py Sun Aug 04 15:42:10 2024 +0000 @@ -867,6 +867,10 @@ for rxn_id in ids: arrow = Arrow(width=5, col=colors_median[rxn_id]) arrow.applyTo(arrow.getMapReactionId(rxn_id, mindReactionDir=False), metabMap_median, arrow.toStyleStr()) + # Now we style the arrow head(s): + idOpt1, idOpt2 = arrow.getArrowHeadElementId(arrow.getMapReactionId(rxn_id, mindReactionDir=False)) + arrow.applyTo(idOpt1, metabMap, arrow.toStyleStr(downSizedForTips = True)) + if idOpt2: arrow.applyTo(idOpt2, metabMap, arrow.toStyleStr(downSizedForTips = True)) svgFilePath = utils.FilePath("SVG Map median - class " + str(key), ext = utils.FileFormat.SVG, prefix="result") utils.writeSvg(svgFilePath, metabMap_median)