on-internet
← Community

How to get a transparent background for a wordcloud in MATLAB?

Stack Overflow ·

I am unable to get a transparent background with this MWE (there are no errors). The procedure works fine for other types of MATLAB plotting functions. fileName = 'C-13.tex'; % Input file name text = ' this this this a is a test'; text = lower(text); words = split(text); [uniqueWords, ~, idx] = unique(words); wordCounts = accumarray(idx, 1); wordTable = table(uniqueWords, wordCounts, 'VariableNames', {'Word', 'Frequency'}); wordTable = sortrows(wordTable, 'Frequency', 'descend'); topWordCount = 75; % Keep top 75 words wordTable = wordTable(1:min(topWordCount, height(wordTable)), :); hf = figur

Comments

Sign in or sign up to comment and upvote.

No comments yet.