cytoscape中每个节点上的自定义图像 [英] a custom image on each node in cytoscape

查看:617
本文介绍了cytoscape中每个节点上的自定义图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Cytoscape将表意字体的所有字形与许多上下文替代项和其他附加项表示为网络图。对我来说,至关重要的是在每个节点上都有一个字形图像,以跟踪和控制它们之间的关系。到目前为止,我已经学习了如何使用样式将背景图像分配给节点,但是这会立即更改所有节点,这并没有太大帮助。对于您是否可以通过Cytoscape的某些内置功能,以编程方式或任何其他方式实现我的目标,我将不胜感激。

I would like to use Cytoscape to have all glyphs of an ideographic font with lots of contextual alternates and other extras represented as a network graph. For me it is critical to have a glyph image on each node to track and control relations between them. So far, I've learned how to use styles to assign background images to nodes, but this changes all nodes at once, which doesn't help much. I would appreciate your help on whether it's possible to achieve my goal by some built-in function of Cytoscape, or programmatically, or by any other means.

推荐答案

这需要离散映射函数。

This calls for a Discrete Mapping Function.

切换到样式控制面板,选择Image / Chart1属性,然后打开三角形。选择要映射到字形的列,然后选择离散映射作为映射类型。

Switch to the Style control panel, select the Image/Chart1 property, and open the triangle. Select the column you want to map to your glyph, and select Discrete Mapping as the Mapping Type.

然后分配图像。此信息可以另存为xml视觉样式表。

Then assign your images. This information can be saved as an xml visual style sheet.

这指向手册中的样式页面

这篇关于cytoscape中每个节点上的自定义图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆