Can you change the entire color gradient of a word cloud?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Natalie Link
el 30 de En. de 2021
Comentada: Natalie Link
el 2 de Feb. de 2021
Hi!
I made a word cloud but am trying to change the colors to make it stand out.
If I say "wordcloud(x,y,'Color',[<decimal1>,<decimal2>,<decimal3>])" it leaves the big orange words as orange and changes all the rest of them to be the same color of choice. Is there any way to have more variety than this, such that you can manually change the color of different groups of words separately (i.e. all words with 2 occurrences are one color of choice, all with 3 are another, etc.)?
0 comentarios
Respuesta aceptada
Shashank Gupta
el 2 de Feb. de 2021
Yeah you can specify the colour based on occurence of words while using the function wordcloud. Here is the link for the same. In case I am also adding a small piece of code for you. check this out.
% Load some words.
load sonnetsTable
% Extract a small data so as to visualize it better.
tb = tbl(1:8,:)
% Define colour of each words. These are Normalized RGB values.
cl = [1,1,1;1,0,1;1,1,0;1,0,0;0,1,1;0,0,1;0,1,0;0,0,0]
% plot the wordcloud.
wordcloud(tb,'Word','Count','Color',cl);
I hope this helps you.
Cheers.
Más respuestas (0)
Ver también
Categorías
Más información sobre Point Cloud Processing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!