Skip to main content



      Home
Home » Eclipse Projects » Nebula » [XYVisualization] Color legend bar
[XYVisualization] Color legend bar [message #1420029] Tue, 09 September 2014 08:06 Go to next message
Eclipse UserFriend
Hello,

I would like to plot a XY graph and use for each point a color depending on a third parameter. The legend of the colors of the points would be displayed on the side of the graph. You can see an example in the picture attached to this post.
Is it possible with the Visualization widgets of Nebula? I looked at the ColorMapRamp already used for IntensityGraph but I cannot find how to use it outside an IntensityGraph.

Regards,
Alain
Re: [XYVisualization] Color legend bar [message #1420181 is a reply to message #1420029] Tue, 09 September 2014 12:23 Go to previous messageGo to next message
Eclipse UserFriend
The Visualization project doesn't provide this feature out of box, but you can extend the current Trace class by overriding the drawPoint() method. I think you can reuse the ColorMapRamp class by creating a new figure that comprises of an XYGraph and a ramp.

Hope it helps,
Xihui
Re: [XYVisualization] Color legend bar [message #1425341 is a reply to message #1420181] Wed, 17 September 2014 02:55 Go to previous message
Eclipse UserFriend
Hello,

I didn't understand the mechanisms of figures and how to create new figures and so on. It's clearer now and I've created a figure with the graph and a custom ColorMapRamp to fit it exactly to our needs.
Thank you for the tip.

Alain
Previous Topic:Grid: Open event only on the first column
Next Topic:GanttChart Black Background after Updating
Goto Forum:
  


Current Time: Fri May 02 07:02:43 EDT 2025

Powered by FUDForum. Page generated in 0.07788 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top