Continuous mapping style issue

103 views
Skip to first unread message

schiano vincent

unread,
May 4, 2022, 1:20:15 PM5/4/22
to cytoscape-app-dev
Hi all,

I have an issue with automatically creating a visual style for my network view, specifically the continuous mapping of node_fill.

I put a gradient of 3 colors with 3 points linked to a Double type attribute. When the app is started and the style is created, only 1 or 2 of the colors show up, and not in gradient, only in their full colors, as if it was a discrete mapping. If i manually go on the style panel and click on the current mapping gradient box to open the panel where you can manually choose your colors and points, if i click on a point without changing any value, the gradient is suddenly rendered. I wonder if i missed something important to apply the gradient automatically.

I have successfully implemented the same continuous mapping to other visual properties like the size, and i have done pretty much the same thing, so i am a little stumped.

Thanks.

Scooter Morris

unread,
May 5, 2022, 10:35:37 AM5/5/22
to cytoscape-app-dev
Hi,

Can you send us a code snippet?  It sounds like you have something messed up with your over/under values in your boundary values.

-- scooter

schiano vincent

unread,
May 5, 2022, 11:13:25 AM5/5/22
to cytoscape-app-dev
Hi, thank you for answering.

Here is the code:
279471156_735550707446707_8818692631741413601_n.png

And here's the visual result:
280027587_815366562768116_6635363540911869204_n.png

And here it is after i click on one of the 3 arrowpoints (the middle one in that case) on the palette in the editor window (without changing any values):
279855055_1002807997027072_3444078735937524075_n.png
Which is what I want to obtain.


Thanks,
Vincent.

schiano vincent

unread,
May 5, 2022, 8:15:46 PM5/5/22
to cytoscape-app-dev
Ok so I ended up fixing the problem by exporting both version into an XML and reading, and it would seem that code wise it doesnt like when the points arent put in the order of their values. So i put the -2 first, then the 0, then the 2, and now it works.

Scooter Morris

unread,
May 12, 2022, 10:40:21 AM5/12/22
to cytoscape-app-dev
Great!  Glad to hear you got things working!

-- scooter
Reply all
Reply to author
Forward
0 new messages