I am trying to add labels on the scatter plot but the problem is the plot being too congested. I want my labels to be floating, i.e, find the place wherever possible.
I tried this code:
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
width=4.5in,
height=3.5in,
xtick={0,50,100,150,200,250,300,350,400},
xlabel=Length,
ylabel=Info,
legend pos=north west,
]
\addplot[%
scatter=true,
only marks,
mark=*,
point meta=explicit,
visualization depends on = {85*\thisrow{Val} \as \perpointmarksize},
scatter/@pre marker code/.append style={/tikz/mark
size=\perpointmarksize},
nodes near coords*={\Label},
visualization depends on={value \thisrow{label} \as \Label}
visualization depends on={value \thisrow{anchor}\as\myanchor},
every node near coord/.append style={anchor=\myanchor},
] table [y={Info},x={Length},meta index=2] {
Info Length Val label anchor
361.805 391.28 0.006538731 {Scrabble} south
19.575 141.25 0.009144791 {Duolingo (Winning Streak)} south
28 141.25 0.010245367 {Duolingo (Badge)} north
250 208 0.011528558 {Go} south
80 115 0.016548609 {Shogi} south
68.6 106.2 0.017291188 {DotA} south
54.86 96.47 0.018028981 {Table Tennis} south
36.38 82.01 0.01903259 {Basketball} south
2.64 22 0.019163815 {Soccer} south
35 80 0.019300851 {Chess} south
46.34 79.34 0.020997681 {Badminton} south
242.3043 25.52174 0.093424709 {Baghchal} south
9 9 0.106026945 {Tic-tac-toe} north
};
\end{axis}
\end{tikzpicture}
\caption{multiple games}
\label{fig:f4}
\end{figure}
All the labels are too congested since the area in the plot where the bubbles are present is congested. I tried using the anchor, but when I use the anchor, the size of the bubbles become constant. It is important for me to maintain the size since size represents 3rd value.
I want them to find their own space. Is it possible? If yes, how can I do it?