I am using the following code to generate a density plot using a data file (which has three columns). The first column is X axis and second column is Y axis and the third column is the color. It gives me a plot with different color points.
ListPlot[Table[
Style[{AvsCvsThetaData[[i, {1, 2}]]},
Hue[AvsCvsThetaData[[i, 3]]/(Pi)]], {i, Length[AvsCvsThetaData]}],
PlotStyle -> PointSize[Medium], Frame -> {True, True, True, True},
FrameTicks -> Automatic, FrameLabel -> {"A", "C"},
LabelStyle ->
Directive[Black, Bold, Medium, FontFamily -> "Helvetica"],
RotateLabel -> False, PlotRange -> Full]
Now suppose, instead of the points, I want a line connecting all the points and the color of the line should change according to the 3rd column. I don't really know whether it is possible to do or not. Can anyone suggest something!
ListLinePlot
andColorFunction
. $\endgroup$ – Carl Lange Jan 21 '19 at 15:38