<< p0_3d_xslice VarTool p0_3d_zslice >>

Modular Modeling >> Tools > VarTool > p0_3d_yslice

# p0_3d_yslice

Orthogonal slice planes along y-axis direction of p0_3d variable

### Calling Sequence

p0_3d_yslice(u)
p0_3d_yslice(u,ny)
p0_3d_yslice(u,y)
p0_3d_yslice(u,ny,[cbar,theta,alpha,leg,flag,ebox])
p0_3d_yslice(u,ny,<opt_args>)

### Arguments

u

p0_3d non-empty variable.

ny

Integer of number of slide.

y

Array of x-coordinates of slides

<opt_args>

This represents a sequence of statements key1=value1, key2=value2,... where key1, key2,... can be one of the following: cbar,theta, alpha ,leg,flag,ebox (see definition below).

cbar

string "on" draw a colorbar

theta, alpha

real values giving in degree the spherical coordinates of the observation point.

leg

string defining the labels for each axis with @ as a field separator, for example "X@Y@Z".

flag

a real vector of size three. flag=[mode,type,box].

mode

an integer (surface color).

mode>0

the surface is painted with color "mode" ; the boundary of the facet is drawn with current line style and color.

mode=0:

a mesh of the surface is drawn.

mode<0:

the surface is painted with color "-mode" ; the boundary of the facet is not drawn.

Note that the surface color treatement can be done using color_mode and color_flag options through the surface entity properties (see surface_properties).

type

an integer (scaling).

type=0:

the plot is made using the current 3D scaling (set by a previous call to param3d, plot3d, contour or plot3d1).

type=1:

rescales automatically 3d boxes with extreme aspect ratios, the boundaries are specified by the value of the optional argument ebox.

type=2:

rescales automatically 3d boxes with extreme aspect ratios, the boundaries are computed using the given data.

type=3:

3d isometric with box bounds given by optional ebox, similarily to type=1.

type=4:

3d isometric bounds derived from the data, to similarilytype=2.

type=5:

3d expanded isometric bounds with box bounds given by optional ebox, similarily to type=1.

type=6:

3d expanded isometric bounds derived from the data, similarily to type=2.

Note that axes boundaries can be customized through the axes entity properties (see axes_properties).

box

an integer (frame around the plot).

box=0:

nothing is drawn around the plot.

box=1:

unimplemented (like box=0).

box=2:

only the axes behind the surface are drawn.

box=3:

a box surrounding the surface is drawn and captions are added.

box=4:

a box surrounding the surface is drawn, captions and axes are added.

Note that axes aspect can also be customized through the axes entity properties (see axes_properties).

ebox

It specifies the boundaries of the plot as the vector [xmin,xmax,ymin,ymax,zmin,zmax]. This argument is used together with type in flag : if it is set to 1, 3 or 5 (see above to see the corresponding behaviour). If flag is missing, ebox is not taken into acoount.

Note that, when specified, the ebox argument acts on the data_bounds field that can also be reset through the axes entity properties (see axes_properties).

### Description

p0_3d_yslice(u,nx) draw slices along the y direction. Each value in the vector y defines a slice plane in the y-axis direction. Note that data can also be set or get through the surface entity properties (see surface_properties).

The optional arguments cbar, theta, alpha, leg ,flag, ebox, can be passed by a sequence of statements key1=value1, key2=value2, ... In this case, the order has no special meaning. Note that all these optional arguments except flag can be customized through the axes entity properties (see axes_properties). As described before, the flag option deals with surface entity properties for mode (see surface_properties) and axes properties for type and box (see axes_properties).

### Examples

With a colorbar

 scf() th=tcube3d(10,10,10); u=p0(th,'sin(2*%pi*x)*sin(2*%pi*y)*sin(2*%pi*z)') p0_3d_yslice(u,5)

The result of the preceding example:

Without edges on a mesh, isometric bounds

 scf() th=tcube3d(15,15,15); u=p0(th,'sqrt(x+y)*z-z*x') y=0.1:0.2:0.9 p0_3d_yslice(u,y,flag=[-2 3 4])

The result of the preceding example: