We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2c8c23 commit 6cb5c1bCopy full SHA for 6cb5c1b
1 file changed
sphinx_gmt/gmtplot.py
@@ -61,6 +61,7 @@
61
{%- endif %}
62
63
.. figure:: {{ image }}
64
+ :name: {{ label }}
65
{% for option in image_opts -%}
66
{{ option }}
67
{% endfor %}
@@ -440,6 +441,7 @@ def run(self):
440
441
gmtplot_block = (
442
jinja2.Template(TEMPLATE)
443
.render(
444
+ label="gmtplot-" + output_base,
445
show_code=self.options["show-code"],
446
code=builddir_link / code_file.name,
447
code_opts=code_opts,
0 commit comments