meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tectonicwaters:gplates_coloring_features_by_absolute_age [2017/01/09 20:29] – [GPlates: Coloring features by absolute age using the Geological Time Scale colours] christian | tectonicwaters:gplates_coloring_features_by_absolute_age [2019/08/24 09:06] (current) – Discussion status changed christian | ||
---|---|---|---|
Line 20: | Line 20: | ||
{{gallery>: | {{gallery>: | ||
+ | |||
+ | ==== Update ==== | ||
+ | |||
+ | After [[http:// | ||
+ | |||
+ | <file python AbsoluteAge.py> | ||
+ | ''' | ||
+ | Script sent to gplates-discuss mailinglist by John Cannon on 2017-01-11. | ||
+ | See: http:// | ||
+ | |||
+ | ''' | ||
+ | |||
+ | import pygplates | ||
+ | |||
+ | class AbsoluteAge: | ||
+ | def __init__(self): | ||
+ | pass | ||
+ | |||
+ | def get_style(self, | ||
+ | absolute_age = feature.begin_time() | ||
+ | style.colour = self.cfg[' | ||
+ | |||
+ | def get_config(self): | ||
+ | self.cfg_dict = {} | ||
+ | self.cfg_dict[' | ||
+ | return self.cfg_dict | ||
+ | |||
+ | def set_config(self, | ||
+ | self.cfg = config | ||
+ | |||
+ | |||
+ | def register(): | ||
+ | pygplates.Application().register_draw_style(AbsoluteAge()) | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
==== Color by property ==== | ==== Color by property ==== | ||
Line 80: | Line 117: | ||
- | ~~DISCUSSION~~ | + | ~~DISCUSSION:closed~~ |