RE: ListPlot and Tooltip
- To: mathgroup at smc.vnet.net
- Subject: [mg94056] RE: [mg94000] ListPlot and Tooltip
- From: "David Park" <djmpark at comcast.net>
- Date: Wed, 3 Dec 2008 05:44:49 -0500 (EST)
- References: <27124154.1228197849469.JavaMail.root@m02>
I don't know why Tooltip doesn't work with ListPlot. But the following does work: data = Table[ Table[E^(-a t), {t, 0, 100, 1}], {a, {0.001, 0.002, 0.005, 0.01, 0.02, 0.05}}]; names = {"run01", "run02", "run03", "run04", "run05", "run06"}; ListLinePlot[Table[Tooltip[data[[i]], names[[i]]], {i, Length[data]}], Joined -> True, Frame -> True] David Park djmpark at comcast.net http://home.comcast.net/~djmpark From: Hugh Goyder [mailto:h.g.d.goyder at cranfield.ac.uk] I have several sets of data which I plot together using ListPlot. In order to distinguish the data I attempted to use Tooltip. I give some example data below and find that Tooltip does not work. Am I doing something wrong? Is there an alternative method for making Tooltip operate. Surprisingly it works when I use ListLogPlot. I am using V7 with Windows. Regards Hugh Goyder data = Table[ Table[E^(- a t), {t, 0, 100, 1}], {a, {0.001, 0.002, 0.005, 0.01, 0.02, 0.05}}]; names = {"run01", "run02", "run03", "run04", "run05", "run06"}; ListPlot[Table[Tooltip[data[[i]], names[[i]]], {i, Length[data]}], Joined -> True, Frame -> True] ListLogPlot[Table[Tooltip[data[[i]], names[[i]]], {i, Length[data]}], Joined -> True, Frame -> True]