fix plot documentation (view is image-snip)
closes PR 10857
This commit is contained in:
parent
1473b7775f
commit
07db4277d1
|
@ -276,7 +276,7 @@ viewed in the DrRacket interactions window.
|
||||||
[#:bgcolor bgcolor (list/c byte? byte? byte) '(255 255 255)]
|
[#:bgcolor bgcolor (list/c byte? byte? byte) '(255 255 255)]
|
||||||
[#:lncolor lncolor (list/c byte? byte? byte) '(255 0 0)]
|
[#:lncolor lncolor (list/c byte? byte? byte) '(255 0 0)]
|
||||||
[#:out-file out-file (or/c path-string? output-port? #f) #f])
|
[#:out-file out-file (or/c path-string? output-port? #f) #f])
|
||||||
(is-a?/c snip%)]{
|
(is-a?/c image-snip%)]{
|
||||||
|
|
||||||
Plots @scheme[data] in 2-D, where @scheme[data] is generated by
|
Plots @scheme[data] in 2-D, where @scheme[data] is generated by
|
||||||
functions like @scheme[points] or @scheme[lines].
|
functions like @scheme[points] or @scheme[lines].
|
||||||
|
@ -284,7 +284,7 @@ functions like @scheme[points] or @scheme[lines].
|
||||||
A @scheme[data] value is represented as a procedure that takes a
|
A @scheme[data] value is represented as a procedure that takes a
|
||||||
@scheme[2d-view%] instance and adds plot information to it.
|
@scheme[2d-view%] instance and adds plot information to it.
|
||||||
|
|
||||||
The result is a @racket[snip%] for the plot. If an @racket[#:out-file]
|
The result is a @racket[image-snip%] for the plot. If an @racket[#:out-file]
|
||||||
path or port is provided, the plot is also written as a PNG image to
|
path or port is provided, the plot is also written as a PNG image to
|
||||||
the given path or port.}
|
the given path or port.}
|
||||||
|
|
||||||
|
@ -306,7 +306,7 @@ the given path or port.}
|
||||||
[#:fgcolor fgcolor (list/c byte? byte? byte) '(0 0 0)]
|
[#:fgcolor fgcolor (list/c byte? byte? byte) '(0 0 0)]
|
||||||
[#:bgcolor bgcolor (list/c byte? byte? byte) '(255 255 255)]
|
[#:bgcolor bgcolor (list/c byte? byte? byte) '(255 255 255)]
|
||||||
[#:lncolor lncolor (list/c byte? byte? byte) '(255 0 0)])
|
[#:lncolor lncolor (list/c byte? byte? byte) '(255 0 0)])
|
||||||
(is-a?/c snip%)]{
|
(is-a?/c image-snip%)]{
|
||||||
|
|
||||||
Plots @scheme[data] in 3-D, where @scheme[data] is generated by a
|
Plots @scheme[data] in 3-D, where @scheme[data] is generated by a
|
||||||
function like @scheme[surface]. The arguments @scheme[alt] and
|
function like @scheme[surface]. The arguments @scheme[alt] and
|
||||||
|
@ -556,7 +556,7 @@ produces a list of @scheme[_z] column values.}
|
||||||
|
|
||||||
@; ----------------------------------------
|
@; ----------------------------------------
|
||||||
|
|
||||||
@defclass[plot-view% object% ()]{
|
@defclass[plot-view% image-snip% ()]{
|
||||||
|
|
||||||
@defmethod[(get-x-min) real?]{
|
@defmethod[(get-x-min) real?]{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user