Skip to content

Commit 62080bc

Browse files
committed
allow lists as extra_axis_parameters
1 parent 5498c98 commit 62080bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

matplotlib2tikz/save.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ def get_tikz_code(
107107
additionally sets ``wrap=False``. Default is ``True``.
108108
:type add_axis_environment: bool
109109
110-
:param extra_axis_parameters: Extra axis options to be passed (as a set)
111-
to pgfplots. Default is ``None``.
112-
:type extra_axis_parameters: a set of strings for the pfgplots axes.
110+
:param extra_axis_parameters: Extra axis options to be passed (as a list or set)
111+
to pgfplots. Default is ``None``.
112+
:type extra_axis_parameters: a list or set of strings for the pfgplots axes.
113113
114114
:param extra_tikzpicture_parameters: Extra tikzpicture options to be passed
115115
(as a set) to pgfplots.
@@ -166,7 +166,7 @@ def get_tikz_code(
166166
# bar chart data series.
167167
data["rectangle_legends"] = set()
168168
if extra_axis_parameters:
169-
data["extra axis options [base]"] = extra_axis_parameters.copy()
169+
data["extra axis options [base]"] = set(extra_axis_parameters).copy()
170170
else:
171171
data["extra axis options [base]"] = set()
172172

0 commit comments

Comments
 (0)