Hi all,
I’m trying to add zoomed insets to a figure that contains four panels. I’m not sure how to configure the lens
function to be added to a specific subplot in the layout.
My plot function looks like this:
#Adjust layout for two-column figure
sp = plot(layout=(2,2))
#Plot configuration
plot(sp[1], legend=:outerright, tickfontsize=tick_font_size, guidefontsize=guide_font_size, legendfontsize=legend_font_size)
plot!(sp[1], df_plots[1].time_s, df_plots[1].eps_nm, linewidth=1)
plot!(sp[1], df_plots[2].time_s, df_plots[2].eps_nm, linewidth=1)
plot!(sp[1], df_plots[3].time_s, df_plots[3].eps_nm, linewidth=1)
plot(sp[2], legend=:outerright, tickfontsize=tick_font_size, guidefontsize=guide_font_size, legendfontsize=legend_font_size)
plot!(sp[2], df_plots[1].time_s, df_plots[1].ε_f, linewidth=1)
plot!(sp[2], df_plots[2].time_s, df_plots[2].ε_f, linewidth=1)
plot!(sp[2], df_plots[3].time_s, df_plots[3].ε_f, linewidth=1, ylimit=(-750,150))
plot(sp[3], legend=:outerright, tickfontsize=tick_font_size, guidefontsize=guide_font_size, legendfontsize=legend_font_size)
plot!(sp[3], df_plots[4].time_s, df_plots[4].eps_nm, linewidth=1)
plot!(sp[3], df_plots[5].time_s, df_plots[5].eps_nm, linewidth=1)
plot!(sp[3], df_plots[6].time_s, df_plots[6].eps_nm, linewidth=1)
plot(sp[4], legend=:outerright, tickfontsize=tick_font_size, guidefontsize=guide_font_size, legendfontsize=legend_font_size)
plot!(sp[4], df_plots[4].time_s, df_plots[4].ε_f, linewidth=1)
plot!(sp[4], df_plots[5].time_s, df_plots[5].ε_f, linewidth=1)
plot!(sp[4], df_plots[6].time_s, df_plots[6].ε_f, linewidth=1, ylimit=(-750,150))
And I want to add zoomed-in sections only to sp[2]
and sp[4]
, and also make it without axes titles. Is this possible?
Thank you!