JuliaPlotFunctions¶
jplot.spad line 1 [edit on github]
low level plotting functions using the Plots module from Julia.
- jlBar!: (JuliaFloat64Vector, JuliaFloat64Vector) -> Void
jlBar!(x,y)
draws a bar plot ofy
vs
x
on the existing graph object.
- jlBar: (JuliaFloat64Vector, JuliaFloat64Vector) -> Void
jlBar(x,y)
draws a bar plot ofy
vs
x
.
- jlContour!: ((DoubleFloat, DoubleFloat) -> DoubleFloat, Segment Float, Segment Float) -> Void
jlContour!(f, a..b, c..d)
draws the contour plot ofy = f(x,y)
asx
ranges frommin(a, b)
tomax(a, b)
andy
ranges frommin(c, d)
tomax(c, d)
on the existing graph object.
- jlContour!: (JuliaFloat64Vector, JuliaFloat64Vector, JuliaFloat64Matrix) -> Void
jlContour!(x,y,mat)
draws the contour plot of surfacemat
on the existing graph object.
- jlContour: ((DoubleFloat, DoubleFloat) -> DoubleFloat, Segment Float, Segment Float) -> Void
jlContour(f, a..b, c..d)
draws the contour plot ofy = f(x,y)
asx
ranges frommin(a, b)
tomax(a, b)
andy
ranges frommin(c, d)
tomax(c, d)
.
- jlContour: (JuliaFloat64Vector, JuliaFloat64Vector, JuliaFloat64Matrix) -> Void
jlContour(x,y,mat)
draws the contour plot of surfacemat
.
- jlContourf!: ((DoubleFloat, DoubleFloat) -> DoubleFloat, Segment Float, Segment Float) -> Void
jlContourf!(f, a..b, c..d)
draws the contour plot ofy = f(x,y)
asx
ranges frommin(a, b)
tomax(a, b)
andy
ranges frommin(c, d)
tomax(c, d)
on the existing graph object. Fill area between contours.
- jlContourf!: (JuliaFloat64Vector, JuliaFloat64Vector, JuliaFloat64Matrix) -> Void
jlContourf!(x,y,mat)
draws the contour plot of surfacemat
on the existing graph object. Fill area between contours.
- jlContourf: ((DoubleFloat, DoubleFloat) -> DoubleFloat, Segment Float, Segment Float) -> Void
jlContourf(f, a..b, c..d)
draws the contour plot ofy = f(x,y)
asx
ranges frommin(a, b)
tomax(a, b)
andy
ranges frommin(c, d)
tomax(c, d)
. Fill area between contours.
- jlContourf: (JuliaFloat64Vector, JuliaFloat64Vector, JuliaFloat64Matrix) -> Void
jlContourf(x,y,mat)
draws the contour plot of surfacemat
. Fill area between contours.
- jlCurves!: (JuliaFloat64Vector, JuliaFloat64Vector) -> Void
jlCurves!(x,y)
draws a Bezier plot curve from (x
.1,y
.1) to (x
.end,y
.end) with control points (x
.2,y
.2),…, (x
.end-1,y
.end-1) and draws it on the existing graph object.
- jlCurves: (JuliaFloat64Vector, JuliaFloat64Vector) -> Void
jlCurves(x,y)
draws a Bezier plot curve from (x
.1,y
.1) to (x
.end,y
.end) with control points (x
.2,y
.2),…, (x
.end-1,y
.end-1) and draws it.
- jlDensity!: JuliaFloat64Vector -> Void
jlDensity!(x)
draws a line plot of a kernel density estimate ofx
on the existing graph object.
- jlDensity: JuliaFloat64Vector -> Void
jlDensity(x)
draws a line plot of a kernel density estimate ofx
.
- jlPlot!: ((DoubleFloat, DoubleFloat) -> DoubleFloat, Segment Float, Segment Float) -> Void
jlPlot!(f, a..b, c..d)
adds the graph ofz = f(x, y)
asx
ranges frommin(a, b)
tomax(a, b)
andy
ranges frommin(c, d)
tomax(c, d)
on the existing graph object.
- jlPlot!: (DoubleFloat -> DoubleFloat, Segment Float) -> Void
jlPlot!(f, a..b)
adds the graph ofy = f(x)
asx
ranges frommin(a, b)
tomax(a, b)
to the existing graph object.
- jlPlot!: (JuliaFloat64Vector, JuliaFloat64Vector) -> Void
jlPlot!(x,y)
draws a plot using elements ofx
andy
on the existing graph object.
- jlPlot!: (JuliaFloat64Vector, JuliaFloat64Vector, JuliaFloat64Vector) -> Void
jlPlot(
x
,y
,z
) draws a plot using elements ofx
,y
andz
on the existing graph object.
- jlPlot: ((DoubleFloat, DoubleFloat) -> DoubleFloat, Segment Float, Segment Float) -> Void
jlPlot(f, a..b, c..d)
draws the graph ofz = f(x, y)
asx
ranges frommin(a, b)
tomax(a, b)
andy
ranges frommin(c, d)
tomax(c, d)
- jlPlot: (DoubleFloat -> DoubleFloat, Segment Float) -> Void
jlPlot(f, a..b)
draws the graph ofy = f(x)
asx
ranges frommin(a, b)
tomax(a, b)
. For example: example{jlPlot(x+->sinc(x),-15..15)}
- jlPlot: (JuliaFloat64Vector, JuliaFloat64Vector) -> Void
jlPlot(x,y)
draws a plot using elements ofx
andy
.
- jlPlot: (JuliaFloat64Vector, JuliaFloat64Vector, JuliaFloat64Vector) -> Void
jlPlot(x,y,z)
draws a plot using elements ofx
,y
andz
.
- jlPlotTitle!: String -> Void
jlPlotTitle!(title)
draws title’ as plot ``title` in the current plot. For example: jlPlotTitle! “sin(x
)” if you have the LatexStrings Julia package example{jlPlotTitle! jlLatex latex sin(x)} For simple expressionstitle
will automatically be enclosed betweek $. So use: example{jlPlotTitle! jlLatex “sin(x)”} For normal text and equations insert dollar signs $ as needed. example{jlPlotTitle! jlLatex “Plot: $sin(x)$”}
- jlPlotXlabel!: String -> Void
jlPlotXlabel!(str)
setsx
label. See spadfunFromX{jlPlotTitle}{JuliaPlotFunctions} for more informations on the diffent supported formats.
- jlPlotXlims!: (JuliaFloat64, JuliaFloat64) -> Void
jlPlotXlims!(x1,x2)
setsx
plot limits.
- jlPlotYlabel!: String -> Void
jlPlotYlabel!(str)
setsy
label. See spadfunFromX{jlPlotTitle}{JuliaPlotFunctions} for more informations on the diffent supported formats.
- jlPlotYlims!: (JuliaFloat64, JuliaFloat64) -> Void
jlPlotYlims!(y1,y2)
setsy
plot limits.
- jlPlotZlabel!: String -> Void
jlPlotZlabel!(str)
setsz
label. See spadfunFromX{jlPlotTitle}{JuliaPlotFunctions} for more informations on the diffent supported formats.
- jlPlotZlims!: (JuliaFloat64, JuliaFloat64) -> Void
jlPlotZlims!(z1,z2)
setsz
plot limits.
- jlRange: (Segment Float, PositiveInteger) -> JuliaFloat64Vector
jlRange(range, n)
is a utility function that returns a JuliaFloat64Vector withn
points fromlow(range)
tohigh(range)
.
- jlRange: Segment Float -> JuliaFloat64Vector
jlRange(range)
is a utility function that returns a JuliaFloat64Vector with 250 points fromlow(range)
tohigh(range)
.
- jlSavePlot: String -> Void
jlSavePlot(file)
save the current plot infile
. Supported fomat by default:png
(default),PDF
,svg
and more. See https://docs.juliaplots.org/latest/output/#savefig-/-format
- jlSurface!: ((DoubleFloat, DoubleFloat) -> DoubleFloat, Segment Float, Segment Float) -> Void
jlSurface!(f, a..b, c..d)
draws the surface ofy = f(x,y)
asx
ranges frommin(a, b)
tomax(a, b)
andy
ranges frommin(c, d)
tomax(c, d)
on the existing graph object.
- jlSurface!: (JuliaFloat64Vector, JuliaFloat64Vector, JuliaFloat64Matrix) -> Void
jlSurface!(x,y,mat)
draws the plot surface ofmat
on the existing graph object.
- jlSurface: ((DoubleFloat, DoubleFloat) -> DoubleFloat, Segment Float, Segment Float) -> Void
jlSurface(f, a..b, c..d)
draws the surface ofy = f(x,y)
asx
ranges frommin(a, b)
tomax(a, b)
andy
ranges frommin(c, d)
tomax(c, d)
.
- jlSurface: (JuliaFloat64Vector, JuliaFloat64Vector, JuliaFloat64Matrix) -> Void
jlSurface(x,y,mat)
draws the plot surface ofmat
.
- jlWireframe!: ((DoubleFloat, DoubleFloat) -> DoubleFloat, Segment Float, Segment Float) -> Void
jlWireframe!(f, a..b, c..d)
draws add the wireframe ofy = f(x,y)
asx
ranges frommin(a, b)
tomax(a, b)
andy
ranges frommin(c, d)
tomax(c, d)
on the existing graph object.
- jlWireframe!: (JuliaFloat64Vector, JuliaFloat64Vector, JuliaFloat64Matrix) -> Void
jlWireframe!(x,y,mat)
draws the wireframe surface ofmat
on the existing graph object.
- jlWireframe: ((DoubleFloat, DoubleFloat) -> DoubleFloat, Segment Float, Segment Float) -> Void
jlWireframe(f, a..b, c..d)
draws the wireframe ofy = f(x,y)
asx
ranges frommin(a, b)
tomax(a, b)
andy
ranges frommin(c, d)
tomax(c, d)
.
- jlWireframe: (JuliaFloat64Vector, JuliaFloat64Vector, JuliaFloat64Matrix) -> Void
jlWireframe(x,y,mat)
draws the wireframe surface ofmat
.