LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

legend for 3d graph

I want to know how to make a legend for 3d graph.
 
I actually posted my question on the following thread but since there havent been any replies, I thought I could just post it here.
 
 
Please click on the link for my question.
 
Thanks.
 
0 Kudos
Message 1 of 18
(10,294 Views)
Hello,

I just modify the example I found on the previous thread. I added a few things, if you play a bit with these things you should be able to do something close to what you're talking about.. I hope.

Be inspired 😉 hope this help.

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 18
(10,286 Views)

hi titou,

thanks for the additions but thats only the caption. I was looking for legend more like the one shown in the picture except that in the shown picture user enters the values but in the vi the legend I want, labview assigns colors to the input array, I just want to know what color it gives to which value.

Is that possible??

0 Kudos
Message 3 of 18
(10,274 Views)
Hi kmo,

I'm sure it is possible to get a color map... but I'm affraid I could'nt get to the result you wish Smiley Sad I think I'm not far..
Maybe somebody knows hox to get it from the variant, I am not used to use these "tools": Sory...

If you don't need a real 3D graph, it might be easier to use an intensity graph.

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 4 of 18
(10,257 Views)

Hi Titou,

you wrote " I think I'm not far.."

I agree!

This example

Shows how to do the invers of what is being asked. More info and links can be found in ths thread.

http://forums.ni.com/ni/board/message?board.id=170&message.id=158594#M158594

Where CC and I team up to offer similar ideas.

Three notes;

1) CW colors are not RGB but are BGR.

2) There is a one to one relation between the colors and the map values.

3) Map values must be ascending order.

 

I will leave the rest to you!

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 18
(10,253 Views)

HI Ben,

thanks for the information.

I have already checked that forum thread but in that 3d map the values for each color are assigned by the user but in my case I want to retrieve the values from the 3d plot I have. The values are assigned by labview and I want to see which values they are.

I hope I can get that somehow. I mean is there any Graph property or something for 3d surface plot frm where I can get the legend of that graph? In the above vi how can i get that colormap and colorvalue property for 3d surface plot??

(for the graph that i am talking about and for which I need legend please check the thread link i have mentioned on the top of this thread)

 

Message Edited by kmo on 01-13-2006 07:11 AM

0 Kudos
Message 6 of 18
(10,249 Views)
I created this vi a little while ago.  Is this kind of what you are looking for?
Randall Pursley
Message 7 of 18
(10,239 Views)

Hi kmo,

Randall has now posted another good example.

Please adapt your code using his example as a guide and re-post your code if you have trouble.

"Try to teach how to fish..."

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 18
(10,234 Views)
Hi Ben n Randall.

Thanks alot for your help, it always a great pleasure to be taught to fish 😉

TiTou

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 9 of 18
(10,226 Views)
thanks a lot guys for all the help till now sorry i was off this task for a while so coudnt give the feedback.
 
now i am back on this task again. Till now I have managed to make a legend for the 3d graph but the coloring of the legend is little messed up. Please see the attached vi.
 
i would really appreciate any help on this.

Message Edited by kmo on 02-10-2006 07:12 AM

0 Kudos
Message 10 of 18
(10,163 Views)