File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -17,25 +17,23 @@ def begin():
17
17
18
18
Only meant to be used once for creating the global session.
19
19
"""
20
- # On Windows, need to set GMT_SESSION_NAME to a unique value
20
+ # On Windows, need to set GMT_SESSION_NAME to a unique value.
21
21
if sys .platform == "win32" :
22
22
os .environ ["GMT_SESSION_NAME" ] = unique_name ()
23
23
24
24
prefix = "pygmt-session"
25
25
with Session () as lib :
26
26
lib .call_module (module = "begin" , args = [prefix ])
27
- # pygmt relies on GMT modern mode with GMT_COMPATIBILITY at version 6
27
+ # PyGMT relies on GMT modern mode with GMT_COMPATIBILITY at version 6.
28
28
lib .call_module (module = "set" , args = ["GMT_COMPATIBILITY=6" ])
29
29
30
30
31
31
def end ():
32
32
"""
33
- Terminate GMT modern mode session and optionally produce the figure files .
33
+ Terminate the GMT modern mode session created by :func:`pygmt.begin` .
34
34
35
- Called after :func:`pygmt.begin` and all commands that you want included in
36
- a session. Will finalize any PostScript plots that were made in the
37
- background, convert them to the desired format (specified in
38
- ``pygmt.begin``), and bring the figures to the working directory.
35
+ Called after :func:`pygmt.begin` and all commands that you want included in a
36
+ session. Will clean up the session directory completely.
39
37
"""
40
38
with Session () as lib :
41
39
lib .call_module (module = "end" , args = [])
You can’t perform that action at this time.
0 commit comments