How do I make a 2D density plot using 3 sets of coordinates?
    6 ビュー (過去 30 日間)
  
       古いコメントを表示
    
    Janna Hinchliff
 2019 年 1 月 16 日
  
    
    
    
    
    編集済み: Bjorn Gustavsson
      
 2019 年 1 月 16 日
            I want to make a plot equivalent to the ListDensityPlot function in Matlab. This takes a set of coordinates, X, Y and Z and plots so that X and Y are the two axes and Z is given as a colour scale. I can do similar things using scatter where each point is a different colour but this isn't quite what I want. Is there an equivalent function? Contour doesn't allow for 3 sets of coordinates.
0 件のコメント
採用された回答
  Bjorn Gustavsson
      
 2019 年 1 月 16 日
        
      編集済み: Bjorn Gustavsson
      
 2019 年 1 月 16 日
  
      After some searching this ListDensityPlot function seems to be similar to the matlab-function:
pcolor
Perhaps if you have three 1-D arrays for the X Y and Z variable you might have to take a look at
triangulation - that would be delaunay, TriScatteredInterp or scatteredInterpolant, and depending on what
you choose there, to reinterpolate your data or get a triangulation, you'll use pcolor or trisurf to make the plot.
HTH
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

