Skip to content

Commit 0c18853

Browse files
committed
add test case for bubble text overflow
1 parent ba38dbe commit 0c18853

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
65 KB
Loading

truelearn/tests/test_utils_visualisations.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,30 @@ def test_top_n(self, resources):
308308
plotter.plot(resources[0], top_n=3)
309309
return plotter
310310

311+
def test_bubble_word_overflow(self, resources):
312+
plotter = visualisations.BubblePlotter()
313+
plotter.plot(
314+
resources[0],
315+
topics=[
316+
"Posterior probability",
317+
"Algorithm",
318+
"Machine learning",
319+
"Variance",
320+
"Exponential family",
321+
"Factor graph",
322+
"Rejection sampling",
323+
"Probability",
324+
"Topic model",
325+
"Expected value",
326+
"Bayesian inference",
327+
"Markov chain",
328+
"Importance sampling",
329+
"Normalizing constant",
330+
"Hyperplane",
331+
],
332+
)
333+
return plotter
334+
311335

312336
@file_comparison(plotter_type="plotly")
313337
class TestDotPlotter:

0 commit comments

Comments
 (0)