Skip to content

Commit

Permalink
Merge pull request #3350 from daschw/gr-aspect
Browse files Browse the repository at this point in the history
fix aspect_ratio in GR with legend=:outertopright
  • Loading branch information
daschw authored Mar 16, 2021
2 parents 2199395 + 66db3ce commit f76390c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/gr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -908,9 +908,9 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
viewport_plotarea = gr_viewport_from_bbox(sp, plotarea(sp), w, h, viewport_canvas)

# update viewport_plotarea
gr_update_viewport_ratio!(viewport_plotarea, sp)
leg = gr_get_legend_geometry(viewport_plotarea, sp)
gr_update_viewport_legend!(viewport_plotarea, sp, leg)
gr_update_viewport_ratio!(viewport_plotarea, sp)

# fill in the plot area background
gr_fill_plotarea(sp, viewport_plotarea)
Expand Down

0 comments on commit f76390c

Please sign in to comment.