Skip to content

Commit 6e40267

Browse files
author
Gorshanov Vadim
committed
Use the every-n-dot parameter for 2d lines as well
1 parent 2077b72 commit 6e40267

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tikzplotlib/_line2d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ def _table(obj, data): # noqa: C901
279279
data["current axes"].axis_options.append("unbounded coords=jump")
280280

281281
plot_table = [
282-
f"{x:{xformat}}{col_sep}{y:{ff}}{table_row_sep}" for x, y in zip(xdata, ydata)
282+
f"{x:{xformat}}{col_sep}{y:{ff}}{table_row_sep}" for x, y in zip(
283+
xdata[::data["every n dot"]], ydata[::data["every n dot"]])
283284
]
284285

285286
min_extern_length = 3

0 commit comments

Comments
 (0)