Making plots that also show up points/dots for specific coordinates
问题 I am trying to do a plot in Mathematica of something like x^2 + y^2 with x, y € [-10, 10]. Besides showing the plot, I'd also like it to include points (for example, (0, 0)) painted in a different color. Point (0,0) would be shown as (0, 0, 0). Point (1, 1) would be shown as (1, 1, 2), etc. Here is what I am looking for: How can I achieve this? 回答1: f[x_, y_] := x^2 + y^2; t = Flatten[Table[{x, y, f[x, y]}, {x, 0, 10, 1}, {y, 1, 2, 1}], 1]; a = ListPointPlot3D[t, PlotStyle -> PointSize[0.05]]