wordclouds:Wordclouds进入-源码

上传者: 42134051 | 上传时间: 2021-02-02 16:37:49 | 文件大小: 2.4MB | 文件类型: ZIP
Wordclouds进去了。 如何使用 wordCounts := map [ string ] int { "important" : 42 , "noteworthy" : 30 , "meh" : 3 } w := wordclouds . NewWordcloud ( wordCounts , wordclouds . FontFile ( "fonts/myfont.ttf" ), wordclouds . Height ( 2048 ), wordclouds . Width ( 2048 ), ) img := w . Draw () 选件 输出高度和宽度 字体:必须是有效的TTF文件。 字体最大,最小大小 色彩 背景颜色 放置:随机或圆形 掩蔽 掩蔽 可以提供算法无法放置单词的边界框列表。 可以使用“ Mask功能在给定文件和遮罩颜色的情况下创建此类遮罩。 boxes := wordclouds . Mask ( conf . Mask . File , conf . Width , conf . Height , conf . Mask . Co

文件下载

资源详情

[{"title":"( 39 个子文件 2.4MB ) wordclouds:Wordclouds进入-源码","children":[{"title":"wordclouds-master","children":[{"title":"circle.go <span style='color:#111;'> 525B </span>","children":null,"spread":false},{"title":"go.mod <span style='color:#111;'> 289B </span>","children":null,"spread":false},{"title":"testdata","children":[{"title":"Roboto-Regular.ttf <span style='color:#111;'> 141.94KB </span>","children":null,"spread":false},{"title":"mask.png <span style='color:#111;'> 10.33KB </span>","children":null,"spread":false},{"title":"input.json <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false}],"spread":true},{"title":"go.sum <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"example","children":[{"title":"main.go <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false},{"title":"output.png <span style='color:#111;'> 520.91KB </span>","children":null,"spread":false},{"title":"mask.png <span style='color:#111;'> 10.33KB </span>","children":null,"spread":false},{"title":"images","children":[{"title":"output.png <span style='color:#111;'> 505.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"fonts","children":[{"title":"roboto","children":[{"title":"RobotoCondensed-Light.ttf <span style='color:#111;'> 138.07KB </span>","children":null,"spread":false},{"title":"Roboto-ThinItalic.ttf <span style='color:#111;'> 129.27KB </span>","children":null,"spread":false},{"title":"Roboto-Italic.ttf <span style='color:#111;'> 145.06KB </span>","children":null,"spread":false},{"title":"Roboto-Regular.ttf <span style='color:#111;'> 141.94KB </span>","children":null,"spread":false},{"title":"RobotoCondensed-BoldItalic.ttf <span style='color:#111;'> 141.85KB </span>","children":null,"spread":false},{"title":"RobotoCondensed-Regular.ttf <span style='color:#111;'> 137.11KB </span>","children":null,"spread":false},{"title":"Roboto-Light.ttf <span style='color:#111;'> 136.99KB </span>","children":null,"spread":false},{"title":"Roboto-MediumItalic.ttf <span style='color:#111;'> 144.41KB </span>","children":null,"spread":false},{"title":"Roboto-Medium.ttf <span style='color:#111;'> 134.09KB </span>","children":null,"spread":false},{"title":"Roboto-Black.ttf <span style='color:#111;'> 139.13KB </span>","children":null,"spread":false},{"title":"Roboto-BoldItalic.ttf <span style='color:#111;'> 141.31KB </span>","children":null,"spread":false},{"title":"Apache License.txt <span style='color:#111;'> 11.12KB </span>","children":null,"spread":false},{"title":"Roboto-Thin.ttf <span style='color:#111;'> 127.00KB </span>","children":null,"spread":false},{"title":"Roboto-BlackItalic.ttf <span style='color:#111;'> 146.14KB </span>","children":null,"spread":false},{"title":"RobotoCondensed-LightItalic.ttf <span style='color:#111;'> 141.70KB </span>","children":null,"spread":false},{"title":"RobotoCondensed-Italic.ttf <span style='color:#111;'> 141.02KB </span>","children":null,"spread":false},{"title":"Roboto-LightItalic.ttf <span style='color:#111;'> 142.51KB </span>","children":null,"spread":false},{"title":"RobotoCondensed-Bold.ttf <span style='color:#111;'> 138.47KB </span>","children":null,"spread":false},{"title":"Roboto-Bold.ttf <span style='color:#111;'> 132.64KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"config.json <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"input.json <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false}],"spread":true},{"title":"wordcloud_test.go <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"spatialhashmap.go <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"wordcloud.go <span style='color:#111;'> 10.38KB </span>","children":null,"spread":false},{"title":"mask.go <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"box.go <span style='color:#111;'> 867B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明