How can I add a diagonal gradient and corresponding colorbar to a plot?
조회 수: 5 (최근 30일)
이전 댓글 표시
This is what I'd like to create with my own data, how can I add that gradient and colorbar to my plot
댓글 수: 0
채택된 답변
darova
2019년 9월 23일
An example:
[X,Y] = meshgrid(1:0.1:3);
Z = X+Y;
pcolor(X,Y,Z)
shading interp
colorbar('Location','NorthOutside')
You can also create your own colormap
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Colormaps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!