Skip to content

Commit fb13b94

Browse files
committed
remove margin when repldisplay-ing plot
1 parent f48cf5c commit fb13b94

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PlotlyLight"
22
uuid = "ca7969ec-10b3-423e-8d99-40f33abb42bf"
33
authors = ["joshday <[email protected]>"]
4-
version = "0.9.0"
4+
version = "0.9.1"
55

66
[deps]
77
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"

src/PlotlyLight.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ function html_iframe(o::Plot; height=settings.height, width=settings.width, styl
106106
end
107107
Base.show(io::IO, ::MIME"text/html", o::Plot) = show(io, MIME"text/html"(), html_iframe(o))
108108
Base.show(io::IO, ::MIME"juliavscode/html", o::Plot) = show(io, MIME"text/html"(), o)
109-
Base.display(::REPL.REPLDisplay, o::Plot) = Cobweb.preview(o, reuse=settings.reuse_preview)
109+
110+
Base.display(::REPL.REPLDisplay, o::Plot) = Cobweb.preview(h.html(h.body(o, style="margin: 0px;")), reuse=settings.reuse_preview)
110111

111112
#-----------------------------------------------------------------------------# preset
112113
# `preset_template_<X>` overwrites `settings.layout.template`

0 commit comments

Comments
 (0)