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 11[metadata]
22name = tikzplotlib
3- version = 0.9.10
3+ version = 0.9.11
44author = Nico Schlömer
5566description = 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
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
You can’t perform that action at this time.
0 commit comments