diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index ec210aab..4ae9370f 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -70,7 +70,7 @@ end function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend}) if !pgfx_plot.is_created the_plot = PGFPlotsX.TikzPicture(PGFPlotsX.Options()) - cols, rows = size(plt.layout.grid) + rows, cols = size(plt.layout.grid) bgc = plt.attr[:background_color_outside] == :match ? plt.attr[:background_color] : plt.attr[:background_color] if bgc isa Colors.Colorant cstr = plot_color(bgc)