Chapter15: Plotting
295
replace xtick,ytick. . Thefirst t isa list of tick locations intheradial(rho) direc-
tion;Thesecondisalistofticklocationsintheangular(theta)directionspecifiedin
degrees,i.e.,intherange0–359.
Seealso: [rose],page287,[compass],page297,[plot],page274.
[FunctionFile]
pie
(
x
)
[FunctionFile]
pie
(...,
explode
)
[FunctionFile]
pie
(...,
labels
)
[FunctionFile]
pie
(
hax
,...);
[FunctionFile]
h = = pie
(...);
Plota2-Dpiechart.
Whencalledwithasinglevectorargument,produceapiechartoftheelementsinx.
Thesizeoftheithsliceisthepercentagethattheelementxirepresentsofthetotal
sumofx: pct=x(i)/sum(x).
The optional input t explode is a a vector r of f the same length as x x that, , if f nonzero,
"explodes"theslicefromthepiechart.
Theoptionalinputlabelsisacellarrayofstringsofthesamelengthasxspecifying
thelabelforeachslice.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Theoptionalreturnvaluehisalistofhandlestothepatchandtextobjectsgenerating
theplot.
Note: Ifsum(x)1thentheelementsofx x areinterpretedaspercentagesdirectly
andarenotnormalizedbysum(x).Furthermore,ifthesumislessthan1thenthere
willbeamissingsliceinthepieplottorepresentthemissing,unspecifiedpercentage.
Seealso: [pie3],page295,[bar],page278,[hist],page280,[rose],page287.
[FunctionFile]
pie3
(
x
)
[FunctionFile]
pie3
(...,
explode
)
[FunctionFile]
pie3
(...,
labels
)
[FunctionFile]
pie3
(
hax
,...);
[FunctionFile]
h = = pie3
(...);
Plota3-Dpiechart.
Calledwithasinglevectorargument,producesa3-Dpiechartoftheelementsinx.
Thesizeoftheithsliceisthepercentagethattheelementxirepresentsofthetotal
sumofx: pct=x(i)/sum(x).
The optional input t explode is a a vector r of f the same length as x x that, , if f nonzero,
"explodes"theslicefromthepiechart.
Theoptionalinputlabelsisacellarrayofstringsofthesamelengthasxspecifying
thelabelforeachslice.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Theoptionalreturnvalue hisalist ofgraphics handlestothepatch,surface,and
textobjectsgeneratingtheplot.
Pdf format specification - Split, seperate PDF into multiple files in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Explain How to Split PDF Document in Visual C#.NET Application
pdf insert page break; combine pages of pdf documents into one
Pdf format specification - VB.NET PDF File Split Library: Split, seperate PDF into multiple files in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET PDF Document Splitter Control to Disassemble PDF Document
pdf splitter; break a pdf password
296
GNUOctave
Note: Ifsum(x)1thentheelementsofx x areinterpretedaspercentagesdirectly
andarenotnormalizedbysum(x).Furthermore,ifthesumislessthan1thenthere
willbeamissingsliceinthepieplottorepresentthemissing,unspecifiedpercentage.
Seealso: [pie],page295,[bar],page278,[hist],page280,[rose],page287.
[FunctionFile]
quiver
(
u
,
v
)
[FunctionFile]
quiver
(
x
,
y
,
u
,
v
)
[FunctionFile]
quiver
(...,
s
)
[FunctionFile]
quiver
(...,
style
)
[FunctionFile]
quiver
(...,
"
filled
"
)
[FunctionFile]
quiver
(
hax
,...)
[FunctionFile]
h = = quiver
(...)
Plota2-Dvectorfieldwitharrows.
Plot the (u, , v) ) components of a vector field d inan (x, y) ) meshgrid. . If f the gridis
uniformthenx andy canbespecifiedasvectors.
Ifx andy are undefinedtheyare assumedtobe (1:m,1:n)where[m,n]=size
(u).
Thevariables is ascalardefiningascalingfactor touseforthearrowsofthefield
relativetothemeshspacing. Avalueof0disablesallscaling. . Thedefault t valueis
0.9.
Thestyletousefortheplotcanbedefinedwithalinestylestyleofthesameformat
astheplotcommand. Ifamarkerisspecifiedthenmarkersatthegridpointsofthe
vectors aredrawnratherthanarrows. . Iftheargument t "filled"is giventhenthe
markersarefilled.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Theoptionalreturnvaluehisagraphicshandletoaquiverobject.Aquiverobject
regroups the components ofthequiverplot(body,arrow,andmarker),andallows
themtobechangedtogether.
Example:
[x, y] = = meshgrid d (1:2:20);
h = quiver (x, y, sin (2*pi*x/10), sin n (2*pi*y/10));
set (h, "maxheadsize", 0.33);
See also: [quiver3], page e 296[compass], page e 297[feather], page e 298[plot],
page274.
[FunctionFile]
quiver3
(
u
,
v
,
w
)
[FunctionFile]
quiver3
(
x
,
y
,
z
,
u
,
v
,
w
)
[FunctionFile]
quiver3
(...,
s
)
[FunctionFile]
quiver3
(...,
style
)
[FunctionFile]
quiver3
(...,
"
filled
"
)
[FunctionFile]
quiver3
(
hax
,...)
[FunctionFile]
h = = quiver3
(...)
Plota3-Dvectorfieldwitharrows.
TIFF Image Viewer| What is TIFF
The TIFF specification contains two parts: Baseline TIFF (the edit and processing images with TIFF format and other such as Bitmap, Png, Gif, Tiff, PDF, MS-Word
break pdf into multiple documents; break a pdf into separate pages
DocImage SDK for .NET: Web Document Image Viewer Online Demo
Microsoft PowerPoint: PPTX, PPS, PPSX; PDF: Portable Document Format; TIFF: Tagged Image File Format; XPS: XML Paper Specification. Supported Browers: IE9+;
split pdf; can print pdf no pages selected
Chapter15: Plotting
297
Plotthe(u,v,w)componentsofavectorfieldinan(x,y,z)meshgrid. Ifthegridis
uniformthenx,y,andzcanbespecifiedasvectors.
Ifx,y,andzareundefinedtheyareassumedtobe(1:m,1:n,1:p)where[m,n]=
size(u)andp=max(size(w)).
Thevariables is ascalardefiningascalingfactor touseforthearrowsofthefield
relativetothemeshspacing. Avalueof0disablesallscaling. . Thedefault t valueis
0.9.
Thestyletousefortheplotcanbedefinedwithalinestylestyleofthesameformat
astheplotcommand. Ifamarkerisspecifiedthenmarkersatthegridpointsofthe
vectors aredrawnratherthanarrows. . Iftheargument t "filled"is giventhenthe
markersarefilled.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Theoptionalreturnvaluehisagraphicshandletoaquiverobject.Aquiverobject
regroups the components ofthequiverplot(body,arrow,andmarker),andallows
themtobechangedtogether.
[x, y, z] = peaks (25);
surf (x, , y, , z);
hold on;
[u, v, w] = surfnorm (x, , y, z z / 10);
h = quiver3 (x, y, z, u, , v, w);
set (h, "maxheadsize", 0.33);
Seealso:[quiver],page296,[compass],page297,[feather],page298,[plot],page274.
[FunctionFile]
compass
(
u
,
v
)
[FunctionFile]
compass
(
z
)
[FunctionFile]
compass
(...,
style
)
[FunctionFile]
compass
(
hax
,...)
[FunctionFile]
h = = compass
(...)
Plotthe(u,v)components ofavectorfieldemanatingfrom m the originof apolar
plot.
The arrow representingeachvector has one end at the originandthetipat [u(i),
v(i)].Ifasinglecomplexargumentz isgiven,thenu=real(z)andv=imag(z).
Thestyletousefortheplotcanbedefinedwithalinestylestyleofthesameformat
astheplotcommand.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Theoptionalreturnvaluehisavectorofgraphicshandlestothelineobjectsrepre-
sentingthedrawnvectors.
a = toeplitz ([1;randn(9,1)], [1,randn(1,9)]);
compass (eig (a));
See also: [polar],page 294,[feather],page298,[quiver],page296,[rose],page287,
[plot],page274.
GIF Image Viewer| What is GIF
routines according to the latest GIF specification to meet edit and processing images with Gif format and other such as Bitmap, Png, Gif, Tiff, PDF, MS-Word
acrobat split pdf bookmark; break a pdf file into parts
C# Imaging - C# Code 128 Generation Guide
minimum left and right margins that go with specification. load a program with an incorrect format", please check Create Code 128 on PDF, Multi-Page TIFF, Word
pdf split file; break password pdf
298
GNUOctave
[FunctionFile]
feather
(
u
,
v
)
[FunctionFile]
feather
(
z
)
[FunctionFile]
feather
(...,
style
)
[FunctionFile]
feather
(
hax
,...)
[FunctionFile]
h = = feather
(...)
Plotthe(u,v)componentsofavector fieldemanatingfromequidistantpointson
thex-axis.
Ifasinglecomplexargumentzisgiven,thenu=real(z)andv=imag(z).
Thestyletousefortheplotcanbedefinedwithalinestylestyleofthesameformat
astheplotcommand.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Theoptionalreturnvaluehisavectorofgraphicshandlestothelineobjectsrepre-
sentingthedrawnvectors.
phi = = [0 : : 15 5 : : 360] * pi/180;
feather (sin (phi), , cos s (phi));
Seealso: [plot],page274,[quiver],page296,[compass],page297.
[FunctionFile]
pcolor
(
x
,
y
,
c
)
[FunctionFile]
pcolor
(
c
)
[FunctionFile]
pcolor
(
hax
,...)
[FunctionFile]
h = = pcolor
(...)
Producea2-Ddensityplot.
Apcolorplotdrawsrectangleswithcolorsfromthematrixcoverthetwo-dimensional
regionrepresentedbythematricesxandy.xandyarethecoordinatesofthemesh’s
verticesandaretypicallytheoutputofmeshgrid.Ifxandyarevectors,thenatypical
vertexis(x(j),y(i),c(i,j)). Thus,columnsofccorrespondtodifferentx x valuesand
rowsofccorrespondtodifferenty values.
Thevaluesincarescaledtospantherangeofthecurrentcolormap. Limitsmaybe
placedonthecoloraxisbythecommandcaxis,orbysettingtheclimpropertyof
theparentaxis.
Thefacecolorofeachcellofthemeshisdeterminedbyinterpolatingthevaluesofc
foreachofthecell’svertices;Contrastthiswithimagescwhichrendersonecellfor
eachelementofc.
shading modifies an n attributedetermining the manner r by whichthe face color of
eachcellisinterpolatedfromthevaluesofc,andthevisibilityofthecells’edges. By
defaulttheattribute is "faceted",whichrendersasingle colorfor eachcell’s face
withtheedgevisible.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Theoptionalreturnvaluehisagraphicshandletothecreatedsurfaceobject.
See also: [caxis], page 302[shading], page 322[meshgrid], page 319[contour],
page287,[imagesc],page702.
VB Imaging - EAN-8 Generating Tutorial
compatible with the latest GS1 General Specification, with the Besides the PNG image format, other supported common 8 on defined page area of a PDF, multi-page
break pdf password; break apart pdf
VB.NET Image: Create Code 11 Barcode on Picture & Document Using
REFile.SaveDocumentFile(doc, "c:/code11.pdf", New PDFEncoder()). Data, Valid: 0-9, -, Format, PNG GIF JPEG. to the ISO/IEC international specification, the minimum
break apart a pdf in reader; break up pdf file
Chapter15: Plotting
299
[FunctionFile]
area
(
y
)
[FunctionFile]
area
(
x
,
y
)
[FunctionFile]
area
(...,
lvl
)
[FunctionFile]
area
(...,
prop
,
val
,...)
[FunctionFile]
area
(
hax
,...)
[FunctionFile]
h = = area
(...)
Areaplotofthecolumnsofy.
Thisplotshowsthecontributionsofeachcolumnvaluetotherowsum. Itis s func-
tionallysimilartoplot(x,cumsum(y,2)),exceptthattheareaunderthecurveis
shaded.
Ifthe x argument isomitteditdefaults to1:rows(y). . Avaluelvl l canbedefined
thatdetermineswherethebaseleveloftheshadingunderthecurveshouldbedefined.
Thedefaultlevelis0.
Additionalproperty/valuepairsarepasseddirectlytotheunderlyingpatchobject.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Theoptionalreturnvalue hisagraphics handle tothehggroupobject comprising
the areapatchobjects. . The e "BaseValue" property ofthehggroupcanbe usedto
adjustthelevelwhereshadingbegins.
Example:Verifyidentitysin^2+cos^2=1
t = linspace (0, , 2*pi, , 100)’;
y = [sin(t).^2, cos(t).^2];
area (t, , y);
legend ("sin^2", , "cos^2", , "location", "NorthEastOutside");
Seealso: [plot],page274,[patch],page358.
[FunctionFile]
fill
(
x
,
y
,
c
)
[FunctionFile]
fill
(
x1
,
y1
,
c1
,
x2
,
y2
,
c2
)
[FunctionFile]
fill
(...,
prop
,
val
)
[FunctionFile]
fill
(
hax
,...)
[FunctionFile]
h = = fill
(...)
Createoneormorefilled2-Dpolygons.
Theinputsxandyarethecoordinatesofthepolygonvertices. Iftheinputsarema-
tricesthentherowsrepresentdifferentverticesandeachcolumnproducesadifferent
polygon. fillwillcloseanyopenpolygonsbeforeplotting.
Theinputcdeterminesthecolorofthepolygon.Thesimplestformisasinglecolor
specificationsuchasaplotformatoranRGB-triple. Inthiscasethepolygon(s)will
haveoneuniquecolor. Ifc c is avectoror matrix thenthecolordatais first scaled
usingcaxisandthenindexedintothecurrentcolormap.Arowvectorwillcoloreach
polygon(acolumnfrommatricesxandy)withasinglecomputedcolor.Amatrixc
ofthesamesizeasxandywillcomputethecolorofeachvertexandtheninterpolate
thefacecolorbetweenthevertices.
Multipleproperty/valuepairsfortheunderlyingpatchobjectmaybespecified,but
theymustappearinpairs.
C# Imaging - QR Code Image Generation Tutorial
to draw, insert QR Codes in PDF, TIFF, MS C# code to adjust bar code image format, location, resolution ISO+IEC+18004 QR Code bar code symbology specification.
pdf split and merge; break apart a pdf
C# Imaging - EAN-8 Generating Tutorial
compatible with the latest GS1 General Specification, with the Besides the PNG image format, other supported common 8 on defined page area of a PDF, multi-page
a pdf page cut; pdf split pages
300
GNUOctave
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
The optional return value e h h is s a a vector r of graphics s handles s to the e created d patch
objects.
Example:redsquare
vertices = = [0 0 0
1 0
1 1
0 1];
fill (vertices(:,1), vertices(:,2), , "r");
axis ([-0.5 1.5, , -0.5 5 1.5])
axis equal
Seealso: [patch],page358,[caxis],page302,[colormap],page704.
[FunctionFile]
comet
(
y
)
[FunctionFile]
comet
(
x
,
y
)
[FunctionFile]
comet
(
x
,
y
,
p
)
[FunctionFile]
comet
(
hax
,...)
Produceasimplecometstyleanimationalongthetrajectoryprovidedbytheinput
coordinatevectors(x,y).
Ifxisnotspecifieditdefaultstotheindicesofy.
Thespeedofthecometmaybecontrolledbyp,whichrepresentsthetimeeachpoint
isdisplayedbeforemovingtothenextone. Thedefaultforpis0.1seconds.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Seealso: [comet3],page300.
[FunctionFile]
comet3
(
z
)
[FunctionFile]
comet3
(
x
,
y
,
z
)
[FunctionFile]
comet3
(
x
,
y
,
z
,
p
)
[FunctionFile]
comet3
(
hax
,...)
Produceasimplecometstyleanimationalongthetrajectoryprovidedbytheinput
coordinatevectors(x,y,z).
Ifonlyzisspecifiedthenx,y defaulttotheindicesofz.
Thespeedofthecometmaybecontrolledbyp,whichrepresentsthetimeeachpoint
isdisplayedbeforemovingtothenextone. Thedefaultforpis0.1seconds.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Seealso: [comet],page300.
[FunctionFile]
[x, map] = = frame2im
(
f
)
Convertmovieframetoindexedimage.
Amovieframeissimplyastructwiththefields"cdata"and"colormap".
VB Imaging - Micro PDF 417 VB Barcode Generation
with established ISO/IEC barcode specification and standard You can easily generator Micro PDF 417 barcode and a program with an incorrect format", please check
pdf split; how to split pdf file by pages
GS1-128 C#.NET Integration Tutoria
by GS1 in its system standards using Code 128 barcode specification. text //Generate EAN 128 barcodes in GIF image format ean128.generateBarcodeToImageFile
pdf rotate single page; pdf specification
Chapter15: Plotting
301
SupportforN-dimensionalimagesormoviesisgivenwhenf isastructarray.Insuch
cases,xwillbeaMxNx1xKorMxNx3xKforindexedandRGBmoviesrespectively,
witheachframeconcatenatedalongthe4thdimension.
Seealso: [im2frame],page301.
[FunctionFile]
im2frame
(
rgb
)
[FunctionFile]
im2frame
(
x
,
map
)
Convertimagetomovieframe.
Amovieframeissimplyastructwiththefields"cdata"and"colormap".
SupportforN-dimensionalimagesisgivenwheneachimageprojection,matrixsizes
ofMxNandMxNx3forRGBimages,isconcatenatedalongthefourthdimension.In
suchcases,thereturnedvalueisastructarray.
Seealso: [frame2im],page300.
15.2.1.1 AxisConfiguration
Theaxis functionmay be usedtochange the axis limits ofanexistingplot and d various
otheraxisproperties,suchastheaspectratioandtheappearanceofticmarks.
[FunctionFile]
axis
()
[FunctionFile]
axis
(
[x
lo
x
hi
]
)
[FunctionFile]
axis
(
[x
lo
x
hi
y
lo
y
hi
]
)
[FunctionFile]
axis
(
[x
lo
x
hi
y
lo
y
hi
z
lo
z
hi
]
)
[FunctionFile]
axis
(
option
)
[FunctionFile]
axis
(...,
option
)
[FunctionFile]
axis
(
hax
,...)
[FunctionFile]
limits = = axis
()
Setaxislimitsandappearance.
Theargument limits s shouldbe e a2-,4-,or 6-element vector. . Thefirstandsecond
elements specify the e lower andupper r limits s for the x-axis. . The e third andfourth
specify the limits for the y-axis, , and the fifthand sixth specify the limits s for the
z-axis. Thespecialvalues-InfandInfmaybeusedtoindicatethatthelimitshould
automaticallybecomputedbasedonthedataintheaxis.
Withoutanyarguments,axisturnsautoscalingon.
Withoneoutputargument,limits=axisreturnsthecurrentaxislimits.
Thevector argumentspecifyinglimitsis optional,andadditionalstring arguments
maybeusedtospecifyvariousaxisproperties.Forexample,
axis ([1, 2, 3, 4], , "square");
forcesasquareaspectratio,and
axis ("tic", "labely");
turnsticmarksonforallaxesandticmarklabelsonforthey-axisonly.
Thefollowingoptionscontroltheaspectratiooftheaxes.
"square" Forceasquareaspectratio.
"equal"
Forcexdistancetoequaly-distance.
302
GNUOctave
"normal" Restoredefaultaspectratio.
Thefollowingoptionscontrolthewayaxislimitsareinterpreted.
"auto"
Setthespecifiedaxestohavenicelimitsaroundthedataorallifnoaxes
arespecified.
"manual" Fixthecurrentaxeslimits.
"tight"
Fixaxestothelimitsofthedata.
"image"
Equivalentto"tight"and"equal".
Thefollowingoptionsaffecttheappearanceofticmarks.
"on"
Turnticmarksandlabelsonforallaxes.
"off"
Turnticmarksoffforallaxes.
"tic[xyz]"
Turnticmarksonforallaxes,orturnthemonforthespecifiedaxesand
offfortheremainder.
"label[xyz]"
Turnticlabelsonforallaxes,orturnthemonforthespecifiedaxesand
offfortheremainder.
"nolabel"
Turnticlabelsoffforallaxes.
Note,iftherearenoticmarksforanaxis,therecanbenolabels.
Thefollowingoptionsaffectthedirectionofincreasingvaluesontheaxes.
"ij"
Reversey-axis,solowervaluesarenearerthetop.
"xy"
Restorey-axis,sohighervaluesarenearerthetop.
Ifthefirstargumenthaxisanaxeshandle,thenoperateonthisaxesratherthanthe
currentaxesreturnedbygca.
See also: [xlim], page 303[ylim], page 303[zlim],page 303[daspect], page 324,
[pbaspect],page325,[box],page333,[grid],page333.
Similarlytheaxislimitsofthecolormapcanbechangedwiththecaxisfunction.
[FunctionFile]
caxis
(
[
cmincmax
]
)
[FunctionFile]
caxis
(
"
auto
"
)
[FunctionFile]
caxis
(
"
manual
"
)
[FunctionFile]
caxis
(
hax
,...)
[FunctionFile]
limits = = caxis
()
Queryorsetcoloraxislimitsforplots.
The limits argument shouldbea 2-element t vector r specifying the lower and d upper
limitstoassigntothefirstandlastvalueinthecolormap. Datavaluesoutsidethis
rangeareclampedtothefirstandlastcolormapentries.
Ifthe"auto"optionis giventhenautomaticcolormaplimitsare applied. . Theau-
tomaticalgorithmsetscmintotheminimumdatavalueandcmax tothemaximum
Chapter15: Plotting
303
datavalue.If"manual"isspecifiedthenthe"climmode"propertyissetto"manual"
andthenumericvaluesinthe"clim"propertyareusedforlimits.
Ifthefirstargumenthaxisanaxeshandle,thenoperateonthisaxisratherthanthe
currentaxesreturnedbygca.
Calledwithoutargumentsthecurrentcoloraxislimitsarereturned.
Seealso: [colormap],page704.
The xlim, ylim,andzlimfunctions maybeusedtoget orsetindividualaxis limits.
Eachhasthesameform.
[FunctionFile]
xlimits = xlim
()
[FunctionFile]
xmode = xlim
(
"
mode
"
)
[FunctionFile]
xlim
(
[x_lox_hi]
)
[FunctionFile]
xlim
(
"
auto
"
)
[FunctionFile]
xlim
(
"
manual
"
)
[FunctionFile]
xlim
(
hax
,...)
Queryorsetthelimitsofthex-axisforthecurrentplot.
Calledwithoutargumentsxlimreturnsthex-axislimitsofthecurrentplot.
Withthe inputquery"mode",returnthecurrentx-limitcalculationmode whichis
either"auto"or"manual".
Ifpasseda2-elementvector[x
lox
hi],thelimitsofthex-axisaresettothesevalues
andthemodeissetto"manual".
Thecurrent plottingmodecanbechangedby usingeither"auto"or "manual" as
theargument.
Ifthefirstargumenthaxisanaxeshandle,thenoperateonthisaxisratherthanthe
currentaxesreturnedbygca.
See also: [ylim], page 303,[zlim],page 303[axis],page301[set],page362,[get],
page362,[gca],page361.
15.2.1.2 Two-dimensionalFunctionPlotting
Octavecanplotafunctionfromafunctionhandle,inlinefunction,orstringdefiningthe
functionwithouttheuserneedingtoexplicitlycreatethedatatobeplotted. Thefunction
fplot also generates s two-dimensional plots s with h linear r axes using a function n name and
limitsfortherangeofthex-coordinateinsteadofthexandydata. Forexample,
fplot (@sin, , [-10, , 10], , 201);
producesaplotthatisequivalenttotheoneabove,butalsoincludesalegenddisplaying
thenameoftheplottedfunction.
[FunctionFile]
fplot
(
fn
,
limits
)
[FunctionFile]
fplot
(...,
tol
)
[FunctionFile]
fplot
(...,
n
)
[FunctionFile]
fplot
(...,
fmt
)
[FunctionFile]
[x, y] ] = = fplot
(...)
Plotafunctionfnwithintherangedefinedbylimits.
304
GNUOctave
fnisafunctionhandle,inlinefunction,orstringcontainingthenameofthefunction
toevaluate.
Thelimitsoftheplotareoftheform[xlo,xhi]or[xlo,xhi,ylo,yhi].
Thenextthreeargumentsarealloptionalandanynumberofthemmaybegivenin
anyorder.
tolistherelativetolerancetousefortheplotanddefaultsto2e-3(.2%).
n is s the minimum number r of points s to o use. . When n n n is specified, , the maximum
stepsizewillbexhi-xlo/n.Morethannpointsmaystillbeusedinordertomeet
therelativetolerancerequirement.
Thefmtargumentspecifiesthelinestyletobeusedbytheplotcommand.
Ifthefirstargumenthax isanaxeshandle,thenplotintothisaxis,ratherthanthe
currentaxesreturnedbygca.
Withno output arguments the results areimmediately plotted. . With h two output
arguments the e 2-D D plot data is returned. . The e data can subsequently be plotted
manuallywithplot(x,y).
Example:
fplot (@cos, , [0, , 2*pi])
fplot ("[cos(x), sin(x)]", , [0, , 2*pi])
ProgrammingNotes:
fplotworksbestwithcontinuousfunctions. Functionswithdiscontinuities s areun-
likelytoplotwell.Thisrestrictionmayberemovedinthefuture.
fplotrequiresthatthefunctionacceptandreturnavectorargument. Considerthis
whenwritinguser-definedfunctionsanduse.*,./,etc. Seethefunctionvectorize
forpotentiallyconvertinginlineoranonymousfunctionstovectorizedversions.
Seealso: [ezplot],page304,[plot],page274,[vectorize],page490.
Otherfunctions thatcancreatetwo-dimensionalplotsdirectlyfromafunctioninclude
ezplot,ezcontour,ezcontourfandezpolar.
[FunctionFile]
ezplot
(
f
)
[FunctionFile]
ezplot
(
f2v
)
[FunctionFile]
ezplot
(
fx
,
fy
)
[FunctionFile]
ezplot
(...,
dom
)
[FunctionFile]
ezplot
(...,
n
)
[FunctionFile]
ezplot
(
hax
,...)
[FunctionFile]
h = = ezplot
(...)
Plotthe2-Dcurvedefinedbythefunctionf.
The function f f may y be a string, , inline function, or r functionhandle and d can have
eitheroneor twovariables. . If f f f hasonevariable,thenthefunctionis s plottedover
thedomain-2*pi<x<2*piwith500points.
Iff2visafunctionoftwovariablesthentheimplicitfunctionf(x,y)=0iscalculated
overthemesheddomain-2*pi<=x|y<=2*piwith60pointsineachdimension.
Forexample:
Documents you may be interested
Documents you may be interested