View

The set view command sets the viewing angle for splots. It controls how the 3D coordinates of the plot are mapped into the 2D screen space. It provides controls for both rotation and scaling of the plotted data, but supports orthographic projections only. It supports both 3D projection or orthogonal 2D projection into a 2D plot-like map.

Syntax:

     set view <rot_x>{,{<rot_z>}{,{<scale>}{,<scale_z>}}}
     set view map {scale <scale>}
     set view projection {xy|xz|yz}
     set view {no}equal {xy|xyz}
     set view azimuth <angle>
     show view

where 4#4rot_x5#5 and 4#4rot_z5#5 control the rotation angles (in degrees) in a virtual 3D coordinate system aligned with the screen such that initially (that is, before the rotations are performed) the screen horizontal axis is x, screen vertical axis is y, and the axis perpendicular to the screen is z. The first rotation applied is 4#4rot_x5#5 around the x axis. The second rotation applied is 4#4rot_z5#5 around the new z axis.

Command set view map is used to represent the drawing as a map. It is useful for contour plots or 2D heatmaps using pm3d mode rather than with image. In the latter case, take care that you properly use zrange and cbrange for input data point filtering and color range scaling, respectively.

4#4rot_x5#5 is bounded to the [0:180] range with a default of 60 degrees, while 4#4rot_z5#5 is bounded to the [0:360] range with a default of 30 degrees. 4#4scale5#5 controls the scaling of the entire splot, while 4#4scale_z5#5 scales the z axis only. Both scales default to 1.0.

Examples:

     set view 60, 30, 1, 1
     set view ,,0.5

The first sets all the four default values. The second changes only scale, to 0.5.


Subsections