Skip to content

Commit 51d8e0f

Browse files
committed
fix for Compatibility issue with matplotlib Legend _ncol vs _ncols nschloe#557 but without backwards compatibility
1 parent 0da9578 commit 51d8e0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tikzplotlib/_legend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def draw_legend(data, obj):
7878
if alignment:
7979
data["current axes"].axis_options.append(f"legend cell align={{{alignment}}}")
8080

81-
if obj._ncol != 1:
82-
data["current axes"].axis_options.append(f"legend columns={obj._ncol}")
81+
if obj._ncols != 1:
82+
data["current axes"].axis_options.append(f"legend columns={obj._ncols}")
8383

8484
# Write styles to data
8585
if legend_style:

0 commit comments

Comments
 (0)