MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Tooltip

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88643] Tooltip
  • From: Travis Brown <travisbrown1980 at yahoo.ca>
  • Date: Sun, 11 May 2008 15:13:45 -0400 (EDT)

Hello,
I have a couple of questions:

I have the following list created randomly: 
temp1 = {0.3377278960765553`, 0.4632334331676402`, 0.5932704226124306`,    0.802585815014663`, 0.13570050876228246`, 0.6138050447094408`, 
   0.337386117458901`};

Based on some prior computations and functions, I get the following: 
temp2= {0.135701 -> 0.337386, 0.337386 -> 0.337728, 0.337728 -> 0.463233, 0.463233 -> 0.802586, 0.59327 -> 0.613805, 0.613805 -> 0.802586, 
 0.802586 -> 0.802586}

temp3 = Map[Flatten[Position[myList1, #]] &, #] & /@ temp2

TreePlot[temp3, VertexLabeling -> True, SelfLoopStyle -> False]

Q1) However, I want the nodes to be labeled as 1, 2, 3 .. instead of {1}, {2}, {3}. 
Q2) I would like to add a tooltip command to the tree plot such that when I move the mouse on top of the nodes I get the corresponding value from temp1. For instance, if I move the mouse on Node2 I should get a label of 0.4632334331676402` and if I move the mouse on Node7 I get a label of 0.337386117458901 
Q3) The node with the maximum value of temp1 should be a different color. In this situation Node2 will have the maximum value and therefore should be a different color. 

How can the above be accomplished. Any hints and pointers will be of great help. 


Thanks



  • Prev by Date: Inputs to Functions - Can they be FORCED to be a predefined type?
  • Next by Date: Re: Re: 2 domain PDE, NDSolve
  • Previous by thread: Inputs to Functions - Can they be FORCED to be a predefined type?
  • Next by thread: Flashing Graphs With Manipulate