How to plot 3 different data in contour or pcolor ?

3 ビュー (過去 30 日間)
Jeevan Kumar Bodaballa
Jeevan Kumar Bodaballa 2020 年 5 月 25 日
コメント済み: Ameer Hamza 2020 年 6 月 2 日
I have three different data
  1. Time steps = 1X108 (should be in X-axis)
  2. Data1 = 36X108 (should be in Y-axis(left))
  3. Data2 = 36X108 (should be display in colour/countour/pcolor)
Now I want to plot temporal plot (colour plot ) like the image I attached
  6 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 5 月 26 日
something like this?
p = pcolor(dt, nw_bin, sizdist)
shading interp
xlabel('x');
ylabel('y');
colorbar
Jeevan Kumar Bodaballa
Jeevan Kumar Bodaballa 2020 年 6 月 1 日
it worked
thank you and sorry for late response

サインインしてコメントする。

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 6 月 2 日
p = pcolor(dt, nw_bin, sizdist)
shading interp
xlabel('x');
ylabel('y');
colorbar
  2 件のコメント
Jeevan Kumar Bodaballa
Jeevan Kumar Bodaballa 2020 年 6 月 2 日
Can you try with “contourf” also ?
Ameer Hamza
Ameer Hamza 2020 年 6 月 2 日
Try this code
Dt = repmat(dt, 36, 1);
[dt_grid, nw_bin_grid] = meshgrid(dt, mean(nw_bin, 2));
sizdist_grid = griddata(Dt(:), nw_bin(:), sizdist(:), dt_grid, nw_bin_grid);
contourf(dt_grid, nw_bin_grid, sizdist_grid)
shading interp
xlabel('x');
ylabel('y');
colorbar

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by