changeset 267:b469aa18c008 draft

Uploaded
author luca_milaz
date Sun, 04 Aug 2024 15:42:10 +0000
parents f3da6593b296
children 0f853c2a6e75
files marea_2/flux_to_map.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)