update plot_title for multiple subplots, fix GR warning
This commit is contained in:
parent
6cc37ff049
commit
481e7d8fb5
@ -286,7 +286,7 @@ function _add_plot_title!(plt)
|
|||||||
plot_title = plt[:plot_title]
|
plot_title = plt[:plot_title]
|
||||||
if plot_title != ""
|
if plot_title != ""
|
||||||
the_layout = plt.layout
|
the_layout = plt.layout
|
||||||
plt.layout = grid(2,1, heights = [0.0,1.0])
|
plt.layout = grid(2, 1, heights=(.01, .99))
|
||||||
plt.layout.grid[2, 1] = the_layout
|
plt.layout.grid[2, 1] = the_layout
|
||||||
subplot = Subplot(backend(), parent = plt.layout[1, 1])
|
subplot = Subplot(backend(), parent = plt.layout[1, 1])
|
||||||
subplot.plt = plt
|
subplot.plt = plt
|
||||||
|
|||||||
@ -159,6 +159,7 @@ function plot!(plt1::Plot, plts_tail::Plot...; kw...)
|
|||||||
cmdidx += 1
|
cmdidx += 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
_add_plot_title!(plt)
|
||||||
|
|
||||||
# first apply any args for the subplots
|
# first apply any args for the subplots
|
||||||
for (idx,sp) in enumerate(plt.subplots)
|
for (idx,sp) in enumerate(plt.subplots)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user