Questions tagged [contourf]

Filled two-dimensional contour plot

Function Reference

A filled contour plot displays isolines calculated from matrix Z and fills the areas between the isolines using constant colors. The color of the filled areas depends on the current figure's colormap.

contourf(Z) draws a contour plot of matrix Z, where Z is interpreted as heights with respect to a plane. Z must be at least a 2-by-2 matrix. The number of contour lines and the values of the contour lines are chosen automatically.

contourf(Z,n) draws a contour plot of matrix Z with n contour levels.

contourf(Z,v) draws a contour plot of matrix Z with contour levels at the values specified in vector v.

contourf(X,Y,Z), contourf(X,Y,Z,n), and contourf(X,Y,Z,v) produce contour plots of Z using X and Y to determine the x- and y-axis limits. When X and Y are matrices, they must be the same size as Z, in which case they specify a surface as surf does.

[C,h,CF] = contourf(...) returns the contour matrix C as calculated by the function contourc and used by clabel, a vector of handles h to patch graphics objects, and a contour matrix CF for the filled areas.

Documentation: http://nf.nci.org.au/facilities/software/Matlab/techdoc/ref/contourf.html


Function Reference

matplotlib.pyplot.contourf

364 questions
-1
votes
1 answer

plotting density map per km2 pr year

i have a csv file containing data of 6 years ( date, longitude, latitude,value ) i plotted the density map using histogramm2d and contourf per km ,i got a beautiful map, but i believe that i plotted the density per km per 6year, so i need to take…
Mar
  • 419
  • 1
  • 7
  • 19
-1
votes
1 answer

Function contourf, how i can get the area and centroid of the different objects

I am using contourf function with binary image. I am trouble how i can get the area and centroid of the different surface in the image, need this task to classify the objects.
-1
votes
1 answer

Matlab\Octave haven't the same result with contourf

I have a problem to use contourf in octave. If I test the following code in octave and matlab, the result is not at all the same. The result with Matlab is good. A1=[38 44 51 58 65 72 79 86 93 100 38 44 51 58 …
Didou139
  • 1
  • 1
-2
votes
1 answer

How to plot a specific contour line in Matlab

Consider this example: X = 0:0.01:1; Y = 0:0.01:1; [x,y] = meshgrid(X,Y); z = sin(x.*y); contourf(x,y,z,'ShowText','on') The contour's values are determined automatically. How can I plot specifi contour lines with specific values like…
MOON
  • 2,516
  • 4
  • 31
  • 49
1 2 3
24
25