Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Contour_plot Calculator

Contour_plot

Function: contour_plot (<expr>, <x_range>, <y_range>, <options>, ...) It plots the contours (curves of equal value) of <expr> over the region <x_range> by <y_range>. Any additional arguments are treated the same as in plot3d.

/* Temperatura inicial em graus celsius */ Ti:20;
/* Potência da fonte de calor em watts */ q:0.75*6200;
/* Velocidade de soldagem em mm/s */ v:2250/60;
/* Espessura da chapa em mm */ H:25.4/4;
/* Difusividade térmica em mm²/s */ a:8;
/* Condutividade térmica em W/(mm.ºC) */ k:40e-3;
R(x,y,z,i):=sqrt(x^2+y^2+(z-2*i*H)^2);
T(x,y,z):=Ti+q/(2*%pi*k)*sum(1/R(x,y,z,i)*exp(-v/(2*a)*(x+R(x,y,z,i))),i,-5,5);
plot3d([min(T(x,0,z),1600),[x,-30,5],[z,-H,0]],[mesh_lines_color, true], [colorbox, true],[legend,"T [celsius]"],[elevation,30],[azimuth,30]);
contour_plot (min(T(x,0,z),1600), [x, -30, 20], [z, -H, 0],[grid,100,50],[legend,"T [celsius]"],[gnuplot_preamble,"set cntrparam levels 8"]);
plot2d(T(-v*t,0,2),[t,-2,8],[legend,"T [celsius]"],[gnuplot_preamble,"set grid"]);

This function only works when the plot format is either gnuplot or gnuplot_pipes. The additional package implicit_plot can also be used to plot contours and it works for any format. See implicit_plot.

Examples:

          (%i1) contour_plot (x^2 + y^2, [x, -4, 4], [y, -4, 4])$

          (%i1) F(x, y) := x^3 + y^2;
                                             3    2
          (%o1)                  F(x, y) := x  + y
          (%i2) contour_plot (F, [u, -4, 4], [v, -4, 4])$

You can add any options accepted by plot3d; for instance, the option legend with a value of false, to remove the legend. Gnuplot chooses, by default, 3 contours to show. to increase the number of levels, it is necessary to specify a custom gnuplot preamble:

          (%i1) contour_plot (u^3 + v^2, [u, -4, 4], [v, -4, 4],
          (%i2) [legend,false], [gnuplot_preamble,"set cntrparam levels 12"])$

(%o1)                                true
(%i2) 

Contour_plot Example

Related Examples

contour_plot-exp-min-plot3d-sqrt
plot3d([min(0.75*3100/(6.28*40e-3*sqrt(x^2+y^2))*exp(-2250.0/(60*2*8.0)*(x+sqrt(x^2+y^2))),1600),[x,-30,3],[y,-5,5]],[mesh_lines_color, true], [colorbox, true],[palette, [hue,.85,0.0,.85,1.0/3.0]],[elevation,30],[azimuth,30]);

plot3d([min(0.75*3100...

contour_plot (0.75*3...

Calculate

contour_plot-exp
contour_plot(-x*y/exp(x^2+y^2),[x,-2,2],[y,-2,2]);

contour_plot(-x*y/exp...

Calculate

contour_plot-sqrt
 contour_plot (F, [x, -4, 4], [y, -4, 4]);

F(x, y) := sqrt(50*((...

contour_plot (F, [x,...

Calculate

contour_plot-exp-min-sqrt
contour_plot (min(0.75*3100/(6.28*40e-3*sqrt(x^2+y^2))*exp(-2250.0/(60*2*8.0)*(x+sqrt(x^2+y^2))),1600), [x, -30, 3], [y, -5, 5],[legend,"T [celsius]"],[gnuplot_preamble,"set key outside \\n set cntrparam levels 8"]);

contour_plot (min(0.7...

Calculate

contour_plot-sqrt
 contour_plot (F, [x, -4, 4], [y, -4, 4]);

F(x, y) := sqrt(50*((...

contour_plot (F, [x,...

Calculate

contour_plot-sqrt
 contour_plot (F, [x, -4, 4], [y, -4, 4]);

F(x, y) := sqrt(50*((...

contour_plot (F, [x,...

Calculate

contour_plot
contour_plot(f(x,y), [x,-2,2], [y,-2,2]);

f(x,y):= ((x^2) - (y^...

contour_plot(f(x,y), ...

Calculate

contour_plot
contour_plot(100*0.5^((AngularVelocity/TrackingSpeed*400/400)^2),[AngularVelocity,0.0,1.0],[TrackingSpeed,0.0,1.0],[legend,"%"],[grid,100,100],[color,red,yellow,green],[gnuplot_preamble, "set cntrparam levels 3.9"]);

contour_plot(100*0.5^...

Calculate

contour_plot
contour_plot (x^3 + y^3, [x, -4, 4], [y, -4, 4]);

contour_plot (x^3 + y...

Calculate