Triangle or ternary plot

Hi!

I have some 3D data… Is there any way to make a triangle or ternary plot with ROOT?

Thanks,
Stefanos

Details?

I want to represent the data as in this

en.wikipedia.org/wiki/Ternary_plot

[quote]Sorry for the dots… Won’t work…

As in this

en.wikipedia.org/wiki/Ternary_plot[/quote]

Oh! Very interesting plot, never seen such before :slight_smile: I’m afraid, ROOT does not have such thing.

Are you sure?? Or you have never encountered it before??

[quote]Hi!

I have some 3D data… Is there any way to make a triangle or ternary plot with ROOT?

Thanks,
Stefanos[/quote]

BTW how do you want to plot your data? As a points in a triangle? Or something else?
I think, points in a triangle you can simply do (and even axes) this with ROOT.

Oh, I’m a bad guy, I never encountered such plots before:)
Just for fun, I’ll try to do a small macro for you :slight_smile:))

Thanks a lot!!! :smiley:

Well, it’s a bit ugly now and at the moment I’m not sure what it shows :slight_smile:)
I think idea is to use TGraph to draw points and TGaxis objects to draw axes.
Yes, at the moment it looks … err… strange at least :slight_smile:))
Or, and axes limits are arbitrary now (wrong I think, but if you know what you want, you can place them correctly).


Sorry for the delay…

That’s perfect!!!

Can you send me the code please??

[quote=“Stefanos21”]Sorry for the delay…

That’s perfect!!!

Can you send me the code please??[/quote]

I’m not so sure anymore. I fight with TGaxis and got something like this (ter.png, data is from en.wikipedia.org/wiki/File:Terna … plot.5.jpg).
But TGraph + TGaxis is a very strange combination, if you click on TGraph’s marker, axes start jumping inside TCanvas I do not know why (TPad is resizing somehow for reason only Hell knows).
ternary_plot.C (987 Bytes)


May be using TGraph is a bit " too much" … TPolymarker would be enough. Sounds like a nice new way of plotting data. May be at some point a proper class can be done.

Ok, thank you for nice idea :slight_smile: Easy things should be easy :slight_smile:
It does not “jump” on mouse clicks anymore.
ternary_plot.C (1.1 KB)


I’ll be the first student to apply for the class!!!

Thanks a lot!!!

C++ class? :wink:

A JIRA ticket has been opened to keep track of this request.

A very preliminary version of a class has been attached to this ticket. Any comments welcome.

Hi!
Is this dead?
I would like to do something like this.
Cheers

Take what is attached with the Jira ticket