This file is indexed.

/usr/share/doc/pyxplot/html/sec-threedim.html is in pyxplot-doc 0.8.4-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="plasTeX" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>PyXPlot Users' Guide: Three-Dimensional Plotting</title>

<link href="ex-surface-sinc.html" title="Surface Plotting" rel="next" />
<link href="sec-contourmaps.html" title="Contour Maps" rel="prev" />
<link href="ch-plotting.html" title="Plotting: A Detailed Survey" rel="up" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>

<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sec-contourmaps.html" title="Contour Maps"><img alt="Previous: Contour Maps" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="ch-plotting.html" title="Plotting: A Detailed Survey"><img alt="Up: Plotting: A Detailed Survey" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="ex-surface-sinc.html" title="Surface Plotting"><img alt="Next: Surface Plotting" border="0" src="icons/next.gif" width="32" height="32" /></a></td>

<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>

<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>

<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>

<div class="breadcrumbs">
<span>
<span>
<a href="index.html">PyXPlot Users' Guide</a> <b>:</b>
</span>

</span><span>
<span>
<a href="sect0043.html">Plotting and Vector Graphics</a> <b>:</b>
</span>

</span><span>
<span>
<a href="ch-plotting.html">Plotting: A Detailed Survey</a> <b>:</b>
</span>

</span><span>

<span>
<b class="current">Three-Dimensional Plotting</b>
</span>
</span>
<hr />
</div>

<div><h1 id="sec:threedim">1.14 Three-Dimensional Plotting</h1>
<p>Three-dimensional graphs may be produced by placing the modifier <tt class="tt">3d</tt> immediately after the <tt class="tt">plot</tt> command, as demonstrated by the following simple example which draws a helix: </p><p> <tt class="tt">set key below</tt><br /><tt class="tt">set size 8 ratio 0.6 zratio 0.6</tt><br /><tt class="tt">set grid</tt><br /><tt class="tt">plot 3d sin(x):cos(x) with lw 3 col hsb(x/20+0.5):0.9:0.8</tt> </p><p> <center>
<img src="images/img-0541.png" alt="\includegraphics[width=10cm]{examples/eps/ex_3d_helix}" style="width:10cm" /></center>  </p><p>Many plot styles take additional columns of data when used on three-dimen­sional plots, reading in three values for the <img src="images/img-0019.png" alt="$x$" style="vertical-align:0px; 
                                     width:10px; 
                                     height:8px" class="math gen" />, <img src="images/img-0020.png" alt="$y$" style="vertical-align:-4px; 
                                     width:9px; 
                                     height:12px" class="math gen" /> and <img src="images/img-0101.png" alt="$z$" style="vertical-align:0px; 
                                     width:9px; 
                                     height:8px" class="math gen" /> coordinates of each datapoint, where previously only <img src="images/img-0019.png" alt="$x$" style="vertical-align:0px; 
                                     width:10px; 
                                     height:8px" class="math gen" /> and <img src="images/img-0020.png" alt="$y$" style="vertical-align:-4px; 
                                     width:9px; 
                                     height:12px" class="math gen" /> coordinates were required. In the above example, the <tt class="tt">lines</tt> plot style is used, which takes three columns of input data when used on three-dimensional plots, as compared to two on two-dimensional plots. The descriptions of each plot style in Section <a href="sec-list_of_plotstyles.html">1.2</a> includes information on the number of columns of data required for two- and three-dimensional plots. </p><p>The example above also demonstrates that the <tt class="tt">set size</tt> command<a name="a0000000858" id="a0000000858"></a> takes an additional aspect ratio <tt class="tt">zratio</tt> which affects three-dimensional plots; whereas the aspect ratio <tt class="tt">ratio</tt> determines the ratio of the lengths of the <img src="images/img-0020.png" alt="$y$" style="vertical-align:-4px; 
                                     width:9px; 
                                     height:12px" class="math gen" />-axes of plots to their <img src="images/img-0019.png" alt="$x$" style="vertical-align:0px; 
                                     width:10px; 
                                     height:8px" class="math gen" />-axes, the aspect ratio <tt class="tt">zratio</tt> determines the ratio of the lengths of the <img src="images/img-0101.png" alt="$z$" style="vertical-align:0px; 
                                     width:9px; 
                                     height:8px" class="math gen" />-axes of plots to their <img src="images/img-0019.png" alt="$x$" style="vertical-align:0px; 
                                     width:10px; 
                                     height:8px" class="math gen" />-axes. </p><p>The angle from which three-dimensional plots are viewed can be set using the <tt class="tt">set view</tt> command<a name="a0000000859" id="a0000000859"></a>. This should be followed by two angles, which can either be expressed in degrees, as dimensionless numbers, or as quantities with physical units of angle: </p><pre>
set view 60,30

set unit angle nodimensionless
set view unit(0.1*rev),unit(2*rad)
</pre><p> The orientation <img src="images/img-0543.png" alt="$(0,0)$" style="vertical-align:-4px; 
                                     width:38px; 
                                     height:18px" class="math gen" /> corresponds to having the <img src="images/img-0019.png" alt="$x$" style="vertical-align:0px; 
                                     width:10px; 
                                     height:8px" class="math gen" />-axis horizontal, the <img src="images/img-0101.png" alt="$z$" style="vertical-align:0px; 
                                     width:9px; 
                                     height:8px" class="math gen" />-axis vertical, and the <img src="images/img-0020.png" alt="$y$" style="vertical-align:-4px; 
                                     width:9px; 
                                     height:12px" class="math gen" />-axis directed into the page. The first angle supplied to the <tt class="tt">set view</tt> command rotates the plot in the <img src="images/img-0188.png" alt="$(x,y)$" style="vertical-align:-4px; 
                                     width:40px; 
                                     height:18px" class="math gen" /> plane, and the second angle tips the plot up in the plane containing the <img src="images/img-0101.png" alt="$z$" style="vertical-align:0px; 
                                     width:9px; 
                                     height:8px" class="math gen" />-axis and the normal to the user’s two-dimensional display. </p><p>The <tt class="tt">replot</tt> command<a name="a0000000860" id="a0000000860"></a> command may be used to add additional datasets to three-dimensional plots in an entirely analogous fashion to two-dimensional plots. </p></div>

<div class="contents section-contents"><!--<strong>Subsections</strong>-->
<ul>
<li><a href="ex-surface-sinc.html">1.14.1 Surface Plotting</a>
   
</li>



</ul>
</div>



<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sec-contourmaps.html" title="Contour Maps"><img alt="Previous: Contour Maps" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="ch-plotting.html" title="Plotting: A Detailed Survey"><img alt="Up: Plotting: A Detailed Survey" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="ex-surface-sinc.html" title="Surface Plotting"><img alt="Next: Surface Plotting" border="0" src="icons/next.gif" width="32" height="32" /></a></td>

<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>

<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>

<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>

<script language="javascript" src="icons/imgadjust.js" type="text/javascript"></script>

</body>
</html>