Commit 9bde801a69fda0c993658c0b9bf19108905a6ae9
1 parent
ccf53f3b
Exists in
master
and in
6 other branches
ENH: Random measure colour
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/data/measures.py
... | ... | @@ -24,7 +24,7 @@ class Measurement(): |
24 | 24 | Measurement.general_index += 1 |
25 | 25 | self.index = Measurement.general_index |
26 | 26 | self.name = const.MEASURE_NAME_PATTERN %(self.index+1) |
27 | - self.colour = const.DEFAULT_MEASURE_COLOUR | |
27 | + self.colour = random.choice(const.MASK_COLOUR) | |
28 | 28 | self.value = None |
29 | 29 | self.location = const.SURFACE # AXIAL, CORONAL, SAGITTAL |
30 | 30 | self.type = const.LINEAR # ANGULAR | ... | ... |