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

2 次查看(过去 30 天)
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