better default
This commit is contained in:
parent
85bd571d0f
commit
d6b9a5709f
@ -104,14 +104,12 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
end
|
end
|
||||||
|
|
||||||
for sp in plt.subplots
|
for sp in plt.subplots
|
||||||
bb = bbox(sp)
|
bb1 = sp.plotarea
|
||||||
sp_width = width(bb)
|
bb2 = bbox(sp)
|
||||||
sp_height = height(bb)
|
sp_width = (width(bb1) + width(bb2)) / 2
|
||||||
|
sp_height = (height(bb1) + height(bb2)) / 2
|
||||||
dx, dy = bbox(sp).x0
|
dx, dy = bbox(sp).x0
|
||||||
# TODO: does this hold at every scale?
|
|
||||||
# if sp[:legend] in (:outertopright, nothing)
|
|
||||||
# dx *= 1.2
|
|
||||||
# end
|
|
||||||
cstr = plot_color(sp[:background_color_legend])
|
cstr = plot_color(sp[:background_color_legend])
|
||||||
a = alpha(cstr)
|
a = alpha(cstr)
|
||||||
fg_alpha = alpha(plot_color(sp[:foreground_color_legend]))
|
fg_alpha = alpha(plot_color(sp[:foreground_color_legend]))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user