admin管理员组文章数量:1567920
2024年7月20日发(作者:)
xtickmarksxtickmarks =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
ax
or
view=[ax]
This option indicates the minimum and maximum coordinates of the surface to be displayed on the screen.
Default: displays the entire surface
/~rouben/dynagraph/
版权声明:本文标题:[转载]maple之绘图篇~by 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1721417474a876701.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论