File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = tikzplotlib
3
- version = 0.9.10
3
+ version = 0.9.11
4
4
author = Nico Schlömer
5
5
6
6
description = Convert matplotlib figures into TikZ/PGFPlots
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ def _table(obj, data): # noqa: C901
265
265
# don't want the \n in the table definition, just in the data (below)
266
266
opts .append ("row sep=" + data ["table_row_sep" ].strip ())
267
267
268
- if data ["externals search path" ] is not None :
268
+ if data ["externalize tables" ] and data [ " externals search path" ] is not None :
269
269
esp = data ["externals search path" ]
270
270
opts .append (f"search path={{{ esp } }}" )
271
271
@@ -278,9 +278,10 @@ def _table(obj, data): # noqa: C901
278
278
plot_table = []
279
279
table_row_sep = data ["table_row_sep" ]
280
280
ydata [ydata_mask ] = np .nan
281
- if any (ydata_mask ) or (~ np .isfinite (ydata )).any ():
282
- # matplotlib jumps at masked or nan values, while PGFPlots by default interpolates.
283
- # Hence, if we have a masked plot, make sure that PGFPlots jumps as well.
281
+ if np .any (ydata_mask ) or ~ np .all (np .isfinite (ydata )):
282
+ # matplotlib jumps at masked or nan values, while PGFPlots by default
283
+ # interpolates. Hence, if we have a masked plot, make sure that PGFPlots jumps
284
+ # as well.
284
285
if "unbounded coords=jump" not in data ["current axes" ].axis_options :
285
286
data ["current axes" ].axis_options .append ("unbounded coords=jump" )
286
287
You can’t perform that action at this time.
0 commit comments