注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

随机过程

http://superware.blog.163.com

 
 
 

日志

 
 

Contour, Isosamples and Samples in Gnuplot  

2012-05-28 17:14:45|  分类: Gnuplot |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

一、set contour

"set contour" enables contour drawing for surfaces. This option is available for splot only.

Syntax:

set contour {base | surface | both}

The three options spesify where to draw the contours :

base : draws the contours on the grid base where the xtics/ytics are placed,

surface : draws the contours on the surfaces themselves,

both : draws the contours on both the base and the surface.

If no options provided, the default is base.

See also "set cntrparam" for the parameters that affect the drawing of contours, and "set clabel" for control of labelling of the contours.

For example:

set view 70, 45, 1, 1
set isosamples 40, 40
set contour base
set title "explicit surfaces"
set xrange [ -4.00000 : 4.00000 ] noreverse nowriteback
set yrange [ -4.00000 : 4.00000 ] noreverse nowriteback
splot sin(x*x + y*y) / (x*x + y*y)


Contour, Isosamples and Samples in Gnuplot - superware - 随机过程


二、set  hidden3d

The "set hidden3d" command enables hidden line removal for surface plotting. 

hidden line removal : 曲面线消隐

Some optional features of the underlying algorithm can also be controled using this command.

Syntax:

set hidden3d {default} |

{

{front | back}

{

{offset <offset> } | {nooffset}

}

{

trianglepattern <bitpattern>

}

{

{undefined <level>} | {noundefined}

}

{

{no}altdiagonal

}

{

{no}bentover

}

}


unset hidden3d

show hidden3d


For example:

set view 70, 45, 1, 1
set isosamples 40, 40
set hidden3d
set contour base
set title "Hidden line removal of explicit surfaces"
set xrange [ -4.00000 : 4.00000 ] noreverse nowriteback
set yrange [ -4.00000 : 4.00000 ] noreverse nowriteback
splot sin(x*x + y*y) / (x*x + y*y)


Contour, Isosamples and Samples in Gnuplot - superware - 随机过程
hidden line removal actually treats the given function or data grids as real surfaces that can’t be seen through, so plot elements behind the surface will be hidden by it.

三、set  isosamples


The iso line density (grid) for plotting functions as surfaces may be changed by "set isosamples" command

Syntax:
set isosamples <iso_1> {, <iso_2>}
show isosamples

Surface plot (splot) will have <iso_1> number of iso-u lines and <iso_2> number of iso-v lines. If you only specify <iso_1>, <iso_2> will be set to the same value as <iso_1>. By default, sampling is set to 10 isolines per u or v axis. A higher sampling rate will produce more accurate plots, but will take longer time. These parameters have no effect on data plotting.

Isolines provede a simple means to display a surfae. By fixing the u parameter of surface s(u,v), the iso-u lines of the form c(v) = s(u0,v) are produced and by fixing the v parameter, the iso-v lines of the form c(u) = s(u, v0) are produced.


四 、set  border

The "set border" and "unset border" commands control the display of the graph borders for the plot and splot commands.  Note that the borders do not necessarily coincide with the axes; with plot they often do, but with splot they usually do not.

Syntax:

set border {<integer>} {front | back} {linewidth | lw <line_width>}
{{linestyle | ls <line_style>} | {linetype | lt <line_type>}}
unset border
show border

The border connecting the back and right corners of the x-y plane is the "bottom right back" border, and the border connecting the top and bottom front corners is the "front vertical".


          2048 1024 512 256 128 64 32 16 8 4 2 1
   0  0  0  1    1   1   1   1   1  1  1 1 1 1 1
            |    |   |   |   |   |  |  | | | | | 
top left back    |   |   |   |   |  |  | | | | bottom left front
  top right back   |   |   |  |  |  | | | bottom left back
         top left front  |   |  |  |  | | bottom right front
           top right front   |   |  |  | bottom right back
                             |   |  |  left vertical
                            |   |  back vertical
                             |   right vertical
                            front vertical



set border 1 + 2 + 4 + 8 # is all four sides for plot

  评论这张
 
阅读(105)| 评论(0)
推荐

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018