I'm trying to figure out how do something on MMa that's fairly easy on Matlab. I some data points that each maps a numerical parameters to a point in 2D space. I need to plot the parameter values to the point in 2D. The code below gets that much done, even if a bit clumsily. The 'data' is simulated with random numbers.
data = RandomReal[1, {200, 2}];
b = Table[{Text[i, data[[i]]]}, {i, 1, Length[data]}];
ListPlot[{0, 0}, PlotStyle -> PointSize[.004], PlotRange -> {{0, 1}, {0, 1}}, Epilog -> b]
So first, is there anyway to plot JUST when I've put into that 'epilog' b, without having to fake that {0,0} data point. I can only get ListPlot to put test on a plot as an epilog, and it will only plot epilogs after some data.
Second, is there any way to create a plot that I can zoom in on, with the text fonts resizing to remain readable? If you run the code above, the plot is to cluttered to read, but if I could zoom in and it resized, it would be readable wherever I was looking.
ListPlot[MapIndexed[Labeled[#,Style[ #2[[1]], FontSize->Scaled[.02]], Center] &, data], PlotStyle->PointSize[.004], PlotRange -> {{0, 1}, {0, 1}}]
give what you need? $\endgroup$Graphics[Table[{Text[Style[i, FontSize -> Scaled[.02]], data[[i]]]}, {i, 1, Length[data]}], Axes -> True]
? $\endgroup$ListPlot[{}]
takes empty lists - no data needed. $\endgroup$