File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,7 @@ def test_plot3d(self):
115
115
# Use number of lines to test if it worked.
116
116
numLinesRaw = raw .count ("\n " )
117
117
numLinesClean = clean .count ("\n " )
118
-
119
- assert numLinesRaw - numLinesClean == 14
118
+ assert numLinesRaw - numLinesClean == 13
120
119
plt .close ("all" )
121
120
122
121
def test_scatter3d (self ):
@@ -569,7 +568,7 @@ def test_loglog(self):
569
568
clean = get_tikz_code ()
570
569
numLinesRaw = raw .count ("\n " )
571
570
numLinesClean = clean .count ("\n " )
572
- assert numLinesRaw - numLinesClean == 98
571
+ assert numLinesRaw - numLinesClean == 99
573
572
assert numLinesClean == 27
574
573
plt .close ("all" )
575
574
Original file line number Diff line number Diff line change @@ -274,8 +274,8 @@ def _table(obj, data): # noqa: C901
274
274
plot_table = []
275
275
table_row_sep = data ["table_row_sep" ]
276
276
ydata [ydata_mask ] = np .nan
277
- if any (ydata_mask ):
278
- # matplotlib jumps at masked images , while PGFPlots by default interpolates.
277
+ if any (ydata_mask ) or ( ~ np . isfinite ( ydata )). any () :
278
+ # matplotlib jumps at masked or nan values , while PGFPlots by default interpolates.
279
279
# Hence, if we have a masked plot, make sure that PGFPlots jumps as well.
280
280
if "unbounded coords=jump" not in data ["current axes" ].axis_options :
281
281
data ["current axes" ].axis_options .append ("unbounded coords=jump" )
You can’t perform that action at this time.
0 commit comments