JuliaPlots / StatsPlots.jl

Statistical plotting recipes for Plots.jl
Other
437 stars 89 forks source link

Corrplot cuts of labels #469

Open kertase opened 2 years ago

kertase commented 2 years ago

Hi, I tried to use corner plot, but it cuts of the labels. Here is my code

using Arrow
using DataFrames
#Setting up plotting
using StatsPlots
gr(size=(2560, 1440))
ENV["GKSwstype"]=100
df = DataFrame(Arrow.Table("filterMissingCrops.arrow"))

@df df corrplot([:altitude :aspect :wetidx :lst2020], grid = false)
savefig("cornerplotcropsLSTtopo.png")

cornerplotcropsLSTtopo

sethaxen commented 2 years ago

I believe this is a Plots.jl issue that sometimes happens with the GR backend, not specific to corrplot. Can you confirm by trying a different backend or a different plot?

kertase commented 2 years ago

I have tried it out now with another plot it seems to be the same case, but it can fixed by adding a margin. Adding a margin does work here.

I guess the issue lies with Plots.jl