Add PGFPlots support for the size kw.
This commit is contained in:
parent
9231da4610
commit
5196ce5263
@ -34,7 +34,7 @@ supportedArgs(::PGFPlotsBackend) = [
|
|||||||
# :pos,
|
# :pos,
|
||||||
# :smooth,
|
# :smooth,
|
||||||
# :show,
|
# :show,
|
||||||
# :size,
|
:size,
|
||||||
:title,
|
:title,
|
||||||
# :windowtitle,
|
# :windowtitle,
|
||||||
:x,
|
:x,
|
||||||
@ -366,7 +366,8 @@ function _make_pgf_plot(plt::Plot{PGFPlotsBackend})
|
|||||||
push!(os, _pgfplots_axis(plt_series))
|
push!(os, _pgfplots_axis(plt_series))
|
||||||
end
|
end
|
||||||
axisargs =_pgfplots_get_axis_kwargs(plt.plotargs)
|
axisargs =_pgfplots_get_axis_kwargs(plt.plotargs)
|
||||||
plt.o = PGFPlots.Axis([os...]; axisargs...)
|
w, h = map(px2mm, plt.plotargs[:size])
|
||||||
|
plt.o = PGFPlots.Axis([os...]; width = "$w mm", height = "$h mm", axisargs...)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Base.writemime(io::IO, mime::MIME"image/svg+xml", plt::AbstractPlot{PGFPlotsBackend})
|
function Base.writemime(io::IO, mime::MIME"image/svg+xml", plt::AbstractPlot{PGFPlotsBackend})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user