sphinx_gmt.gmtplot.eval_python

sphinx_gmt.gmtplot.eval_python(code, code_dir, output_dir, output_base, filename='<string>')[source]

Execute a multi-line block of Python code and copy the generated image files to specified output directory.