We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 450712b commit 0777045Copy full SHA for 0777045
src/tikzplotlib/_legend.py
@@ -78,7 +78,9 @@ def draw_legend(data, obj):
78
if alignment:
79
data["current axes"].axis_options.append(f"legend cell align={{{alignment}}}")
80
81
- if obj._ncol != 1:
+ # if _ncol not present API is more current, contains _ncols
82
+ ncols = getattr(obj, "_ncol", obj._ncols)
83
+ if ncols != 1:
84
data["current axes"].axis_options.append(f"legend columns={obj._ncol}")
85
86
# Write styles to data
0 commit comments