File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -273,10 +273,15 @@ def _table(obj, data): # noqa: C901
273273 if "unbounded coords=jump" not in data ["current axes" ].axis_options :
274274 data ["current axes" ].axis_options .append ("unbounded coords=jump" )
275275
276- plot_table = [
277- f"{ x :{xformat }} { col_sep } { y :{ff }} { table_row_sep } " for x , y in zip (
278- xdata [::data ["every n dot" ]], ydata [::data ["every n dot" ]])
279- ]
276+ if len (xdata ) > data ["every n dot" ]:
277+ plot_table = [
278+ f"{ x :{xformat }} { col_sep } { y :{ff }} { table_row_sep } " for x , y in zip (
279+ xdata [::data ["every n dot" ]],
280+ ydata [::data ["every n dot" ]])]
281+ else :
282+ plot_table = [
283+ f"{ x :{xformat }} { col_sep } { y :{ff }} { table_row_sep } " for x , y in zip (xdata , ydata )]
284+
280285
281286 min_extern_length = 3
282287
You can’t perform that action at this time.
0 commit comments