plot with contourf and define limits for x and y axis
Show older comments
Hello
I have a plot by contourf, my problem is that I need the x and y axis to be with the same scale but my x values have smaller limits, and there is no values after some point (as in pic) so i need to add some points with level 0 (zero values) so that he empty part be blue.
Could you help me with that?
the U, V and JPDF data values are attached
contourf(U,V,JPDF,12,'edgecolor','none')
colorbar
caxis([0 0.3]);
hold on
plot([0 0],[-3 3],'k--',[-3 3],[0 0],'k--')
xlabel('$u`/\sqrt{\overline{u`^2}}$','interpreter','latex','FontSize',12)
ylabel('$v`/\sqrt{\overline{v`^2}}$','interpreter','latex','FontSize',12)
ax = gca; % current axes
ax.FontSize = 15;
ay = gca; % current axes
ay.FontSize = 15;
hold off
axis([-2.5 2.5 -2.5 2.5])
Accepted Answer
More Answers (0)
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
