Skip to content

Commit a263ace

Browse files
committed
version bump
1 parent ea320cb commit a263ace

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = tikzplotlib
3-
version = 0.9.10
3+
version = 0.9.11
44
author = Nico Schlömer
55
author_email = [email protected]
66
description = Convert matplotlib figures into TikZ/PGFPlots

src/tikzplotlib/_line2d.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def _table(obj, data): # noqa: C901
265265
# don't want the \n in the table definition, just in the data (below)
266266
opts.append("row sep=" + data["table_row_sep"].strip())
267267

268-
if data["externals search path"] is not None:
268+
if data["externalize tables"] and data["externals search path"] is not None:
269269
esp = data["externals search path"]
270270
opts.append(f"search path={{{esp}}}")
271271

@@ -278,9 +278,10 @@ def _table(obj, data): # noqa: C901
278278
plot_table = []
279279
table_row_sep = data["table_row_sep"]
280280
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.
284285
if "unbounded coords=jump" not in data["current axes"].axis_options:
285286
data["current axes"].axis_options.append("unbounded coords=jump")
286287

0 commit comments

Comments
 (0)