Skip to content

Commit 6742fd9

Browse files
authored
crop whitespace around displayed figures (#123)
1 parent 781d7fc commit 6742fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compat/multimedia.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function pyshow_rule_savefig(io::IO, mime::String, x::Py)
106106
fig = fig.figure
107107
end
108108
buf = pyimport("io").BytesIO()
109-
x.savefig(buf, format=format)
109+
x.savefig(buf, format=format, bbox_inches="tight")
110110
data = @pyconvert(Vector{UInt8}, buf.getvalue(), return false)
111111
write(io, data)
112112
plt.close(fig)

0 commit comments

Comments
 (0)