I have a data set that can be generated as follows:
x=RandomReal[{1,5},100];
y=RandomReal[{11,50},100];
z=RandomReal[{7,25},100];
For each of the (x,y,z) 3-tuple, I want to make a 2D scattered plot of x vs. y and put a plot legend of z values in color bar with the figure as shown in the example image above.
I have used
ListLogLogPlot[Table[{x[[i]],y[[i]],z[[i]]},{i,Length@data], PlotLegends-> Automatic]
but cannot get what I want. Earlier, I used ListContourPlot
, it was quite easy there but now I want a scattered plot.
How can I do it?
ListPointPlot3D[Transpose@{x, y, z}, PlotLegends -> Automatic]
$\endgroup$ListDensityPlot[Transpose[{x, y, z}], PlotLegends -> Automatic]
$\endgroup$BubbleChart[Partition[Transpose@{x, y, z}, 1], ChartLegends -> Automatic]
? $\endgroup$