Filled contour plot with seasonal and diurnal variation of the same variable

조회 수: 1 (최근 30일)
Sayantan Sahu
Sayantan Sahu 2019년 7월 23일
답변: Nishant Gupta 2019년 8월 2일
I have two variables. One is the seasonal variation of a variable and the other is diurnal variation of the same variable. I want to plot a filled contour plot (contourf) with the seasonal variation on the x-axis and the diurnal variation on the y-axis. How can I do so?

답변 (1개)

Nishant Gupta
Nishant Gupta 2019년 8월 2일
Hi Sayantan
Since there is no information about the specification of the variable consider an example where you want to plot a contour of temperature variation over a particular year as well as a particular day of that year.
You can take that seasonal variation as one variable say ‘x’ and diurnal variation as another variable say ‘y’ and you also require one more variable say ‘z’ to define the relationship between ‘x’ and ‘y’.
Then you can use the ‘contourf’ function (refer following link for function documentation) to plot your filled contour.

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by