is it possible to select a particular region in a scatterplot

前端 未结 1 428
暖寄归人
暖寄归人 2020-12-22 13:01

I am basically plotting several million data points with help of scatterplot. here I am doing

scatter(x(1:end-1), y(1:end-1),5, z)

Now is possible to select

相关标签:
1条回答
  • 2020-12-22 13:43

    Depends on how you want to select an area.

    most generally you could go if you mark the area with ginput and locate the points using inpolygon (look at doc inpolygon - has a very nice example)

    If you just want to select an rectangle it's probably best if you write your own function - but that is trivial.

    0 讨论(0)
提交回复
热议问题