@@ -53,7 +53,7 @@ def timestamp(
53
53
font
54
54
Font of the timestamp and the optional label. Since the GMT logo has a fixed
55
55
height, the font sizes are fixed to be 8-point for the timestamp and 7-point for
56
- the label. The parameter can't change the font color for GMT<= 6.4.0, only the
56
+ the label. The parameter can't change the font color for GMT 6.4.0, only the
57
57
font style.
58
58
timefmt
59
59
Format string for the UNIX timestamp. The format string is parsed by the C
@@ -83,8 +83,8 @@ def timestamp(
83
83
kwdict ["U" ] += f"{ label } "
84
84
kwdict ["U" ] += f"+j{ justify } "
85
85
86
- if Version (__gmt_version__ ) <= Version ("6.4 .0" ) and "/" not in str (offset ):
87
- # Giving a single offset doesn't work in GMT <= 6.4 .0.
86
+ if Version (__gmt_version__ ) < Version ("6.5 .0" ) and "/" not in str (offset ):
87
+ # Giving a single offset doesn't work in GMT < 6.5 .0.
88
88
# See https://github.com/GenericMappingTools/gmt/issues/7107.
89
89
offset = f"{ offset } /{ offset } "
90
90
kwdict ["U" ] += f"+o{ offset } "
@@ -98,8 +98,8 @@ def timestamp(
98
98
"The given text string will be truncated to 64 characters."
99
99
)
100
100
warnings .warn (message = msg , category = RuntimeWarning , stacklevel = 2 )
101
- if Version (__gmt_version__ ) <= Version ("6.4 .0" ):
102
- # workaround for GMT<=6.4 .0 by overriding the 'timefmt' parameter
101
+ if Version (__gmt_version__ ) < Version ("6.5 .0" ):
102
+ # Workaround for GMT<6.5 .0 by overriding the 'timefmt' parameter
103
103
timefmt = text [:64 ]
104
104
else :
105
105
kwdict ["U" ] += f"+t{ text } "
0 commit comments