MCMCChains.jl icon indicating copy to clipboard operation
MCMCChains.jl copied to clipboard

StatsPlots appearance

Open rikhuijzer opened this issue 3 years ago • 4 comments

The StatsPlots.plot formatting contains mistakes when creating plots via Documenter and Franklin. For example,

image

For both automated builds, the default Plots backend is used in combination with the env variable

GKSwstype: nul

Without this, the appearance is usually worse and errors such as "GKS: can't connect to GKS socket application' errors" are thrown.

Visual improvements are also mentioned at https://github.com/TuringLang/MCMCChains.jl/issues/246, specifically, for many parameters. One example of how that looks is available at the varying intercepts Reedfrogs model:

image

@mkborregaard

rikhuijzer avatar Mar 27 '21 15:03 rikhuijzer

Is it better (or worse) if the output format is changed to png?

devmotion avatar Mar 27 '21 15:03 devmotion

Good question. I'm away from my desk for a few days. I will come back to this issue afterwards and answer your question.

rikhuijzer avatar Mar 27 '21 20:03 rikhuijzer

Is it better (or worse) if the output format is changed to png?

This is the TuringModels basic example as PNG:

image

and as SVG (screenshot):

image

So, I don't think that the output format makes much difference.

rikhuijzer avatar Mar 30 '21 12:03 rikhuijzer

According to discourse, the second issue can be solved by using the Plotly backend

rikhuijzer avatar Jun 05 '21 20:06 rikhuijzer