加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

[转载]maple之绘图篇~by zn~

(2011-07-20 11:27:06)
标签:

转载

分类: Matlab
原文地址:maple之绘图篇~by zn~作者:ctrle

http://www/uc/myshow/blog/misc/gif/E___6725EN00SIGG.gifzn~" TITLE="[转载]maple之绘图篇~by zn~" />?tickmarks

 

还有一个问题尚未解决,就是maplelegend的位置只能放在“上下左右”四个位置,能不能自由放置legend???哎,真费解啊http://www/uc/myshow/blog/misc/gif/E___6703EN00SIGG.gifzn~" TITLE="[转载]maple之绘图篇~by zn~" />,期待高人解决!!!

 

http://scumath2008.blog.163.com/

http://www/uc/myshow/blog/misc/gif/E___7473ZH00SIGG.gifzn~" TITLE="[转载]maple之绘图篇~by zn~" />maple 作图选项(图像中字体、字号等的设置) 

选项 设置格式  取值范围 说明 
adaptive adaptive= true 还有false 自适应,取消
axes axes=normal frame, boxed, normal, none 坐标轴设置,四种
axesfont  axesfont=[family,style,size] 参看plot,options  设置刻度线标号字形
color color=n 参看plot,color 设置图象颜色
coords coords=name polar (极坐标)参看plot[coords] 选择作图所用坐标系
discont  discont=false 还有true 是否在间断点用垂直线连接
filled filled=false 还有true 是否在图象和x轴之间填充
font font=[family,style,size ] 参看plot,options  设置图象中文字部分的字形
labels labels=[x,y]   标记坐标轴
labeldirections labeldirections=[x,y] horizontal, vertical 设置坐标轴的方向
Labelfont  labelfont=[family,style,size ]   设置坐标轴标记的字形
legend legend=s s是元素与曲线条数相同的表 加入图例
linestyle linestyle=1 1-4对应实线,点线,虚线和点划线 设置图象线的类型
numpoints numpoints =50 正整数 设置作图区间的分点数
resolution resolution=200 正整数 设置图象的水平分辨率
sample sample =[x1,..,xk] 自变量的取值 选定作图是必须取的点
scaling  scaling=unconstrained constrained  x轴与y轴单位的比
style, style=line point, 参看plot,options 设置图象点之间的连接方式
symbol symbol=point box, cross, circle 设置图象中点的类型
symbolsize  symbolsize=10 正整数,单位:吋/72 设置图象中点的大小 
thickness thickness=0 1, 2, 3 设置图象中线的厚度
tickmarks tickmarks =[m,n] 正整数或default 设置图象中坐标轴标号个数
title title =”…n…” n用作题目中的换行 作图象标题
titlefont  titlefont[family,style,size ] 参看plot,options  设置图象标题文字字形  
view view =[x1..x2, y1 ..y2]   设置图象坐标选取范围 
xtickmarks xtickmarks =n 正整数 设置横坐标轴标号个数


Plotting Options (English help)

The style of the displayed graph may be controlled with a number of plotting options embedded in the plotting command. For instance the command

    > plot3d(x^2+y^2, x=-1..1, y=-1..1, style=wireframe, grid=[15,15]);

displays the graph in wireframe using a 15x15 grid. (Dynagraph's default action is to display the graph as a solid surface using an (invisible) grid of 25x25.)

All options take the form option=value. These can be supplied to the plotting command in any order, separated by commas. The following list describes all the options recognized by dynagraph. These form a subset of options available in Maple. The listing below has been obtained mostly by cut-and-paste from Maple's online help. The options pointsize and the option values x_gridlines and y_gridlines are specific to dynagraph and do not exist in Maple.

Option values which are keywords, such as WIREFRAME or HELVETICA can be typed either in all uppercase or all lowercase. Therefore axesfont=[HELVETICA,10] and axesfont=[helvetica,10] are equivalent. In the listing below only the uppercase variants are shown.

Alphabetical listing of all options

axes=f
This option specifies how the axes are to be drawn, where f is one of BOXED, NORMAL, FRAME, and NONE.
Default: axes=NONE

Remark: In this release of dynagraph all axes options other than NONE are treated as synonymous with BOXED. This may be fixed in future releases.

axesfont=l
This option defines the font for the labels on the tick marks of the axes, specified in the same manner as font.
Default: axesfont=[HELVETICA,10]
color=colorname
Prescribes a solid color for the object. Colorname may be any color name recognizable by the X server, such as "red" or "MidnightBlue", or an RGB specification such as "#009000". It must be quoted if it contains non-alphanumeric characters. For the convenience of our continental friends, colour is provided as a synonym to color.
contours=n
This option specifies the number of contours in a contour plot.
Default: contours=10
coords=c
This option specifies the coordinate system to be used, where c is one of CARTESIAN, SPHERICAL, CYLINDRICAL, Z_CYLINDRICAL.
Default: coords=CARTESIAN
font=fontspec
This option defines the font for text objects in the plot. Fontspec is a list of the form [family,style,size], where family is one of TIMES, COURIER, HELVETICA, and SYMBOL. For TIMES, style may be one of ROMAN, BOLD, ITALIC or BOLDITALIC. For HELVETICA and COURIER style may be omitted or select one of BOLD, OBLIQUE, or BOLDOBLIQUE. SYMBOL does not accept a style option. The final value, size, is the point size to be used.
Default: font=[HELVETICA,10]
grid=[m,n]
This option specifies the dimensions of the rectangular grid to use to represent a surface.
Default: grid=[25,25]
gridstyle=x
This option specifies the type of mesh which is drawn to represent the surface. The value of x is one of RECTANGULAR, TRIANGULAR, X_GRIDLINES, Y_GRIDLINES. (XY_GRIDLINES is also provided as a synonym for RECTANGULAR.) Note that these options set the mesh style but do not cause the mesh to be drawn. The drawing of the mesh is determined by the value of the style option described below.
Default: gridstyle=RECTANGULAR
labelfont=l
This option defines the font for the labels on the axes of the plot, specified in the same manner as font.
Default: labelfont=[HELVETICA,12]
labels=[x,y,z]
This option specifies labels for the axes. The values of x, y, and z must be strings. The default label for the x and y axes are the names of the variables for the x and y axes and no label on the z axis. Labels are shown only when the coords=CARTESIAN is in effect.
linewidth=n
Same as thickness=n
numpoints=n
When plotting a surface this option specifies the minimum total number of points to be generated (default 625 = 25^2). Plot3d will use a rectangular grid of dimensions ~= sqrt(n). When plotting a spacecurve or a tube, this option specifies the number of points to use along the curve or along the axis of the tube. The default is 60.
orientation=[longitude,colatitude]
This option sets the viewing position at a point at infinity along the ray given by the spherical coordinates (longitude,colatitude), looking towards the origin.
Default: orientation=[45,45]
pointsize=n
This option defines the size (in pixels) of points drawn in the plots. n should be an integer from 0 to 10. 0 selects the default pointsize.
Default: pointsize=3
scaling=s
This option specifies whether the surface should be scaled so that it fits the screen with axes using a relative or absolute scaling, where s is either UNCONSTRAINED or CONSTRAINED. The dynagraph graphics window is initially set to scaling=CONSTRAINED. The user may toggle the CONSTRAINED/UNCONSTRAINED button at will. Subsequent graphs will obey the button's setting unless specified otherwise on the command line.
shading=s
This option specifies how the surface is colored, where s is one of XYZ, XY, Z, ZGREYSCALE, ZHUE, NONE.
Default: shading=XYZ
style=s
This specifies how the surface is to be drawn, where s is one of POINT, HIDDEN, PATCH, WIREFRAME, CONTOUR, PATCHNOGRID, PATCHCONTOUR, or LINE.
Default: style=PATCHNOGRID

Remark: LINE is synonymous with WIREFRAME

thickness=n
This option defines the thickness (in pixels) of lines in the plots. n should be an integer from 0 to 10. 0 selects the default thickness.
Default: thickness=1
tickmarks=[l,n,m]
This option specifies reasonable numbers no less than l, n and m should be marked along the x-axis, y-axis, and z-axis, respectively. Each tickmarks value must be a positive integer or zero, in which case no tickmarks will drawn on the corresponding axis.
Default: tickmarks=[5,5,5]
title=t
This option specifies a title for the plot. The value of t must be a string. The two-character sequence n (that is, a backslash followed by n) acts as a line break within the title string, thus making multi-line titles possible. Each line of a multi-line title is horizontally centered within the window.
Default: no title
titlefont=l
This option defines the font for the title of the plot, specified in the same manner as font.
Default: titlefont=[HELVETICA,BOLDOBLIQUE,14]
tuberadius=r
This sets the radius of the tube in a tubeplot.
Default: tuberadius=1.0
tubepoints=n
This sets the number of points to use for drawing each cross-section of a tubeplot. Note that the circular cross section will appear to have only n-1 equally-spaced points on its circumference, because the first and last points coincide.
Default: tubepoints=16
view=zmin..zmax or view=[xmin..xmax,ymin..ymax,zmin..zmax]
This option indicates the minimum and maximum coordinates of the surface to be displayed on the screen.
Default: displays the entire surface

0

  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有