8000 Test that non-square tables work · matplotlib/matplotlib@4d412fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d412fd

Browse files
committed
Test that non-square tables work
1 parent 3136906 commit 4d412fd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/matplotlib/tests/test_table.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@
55

66
import matplotlib.pyplot as plt
77
import numpy as np
8-
from matplotlib.testing.decorators import image_comparison
8+
from matplotlib.testing.decorators import image_comparison, cleanup
99

1010
from matplotlib.table import CustomCell
1111
from matplotlib.path import Path
1212
from nose.tools import assert_equal
1313

1414

15+
@cleanup
16+
def test_non_square():
17+
# Check that creating a non-square table works
18+
cellcolors = ['b', 'r']
19+
plt.table(cellColours=cellcolors)
20+
21+
1522
@image_comparison(baseline_images=['table_zorder'],
1623
extensions=['png'],
1724
remove_text=True)

0 commit comments

Comments
 (0)
0