Plots.jl: Axis label (guide?) needs padding

Created on 8 Apr 2019  路  5Comments  路  Source: JuliaPlots/Plots.jl

The y-axis label (in GR) is too close to the axis tick labels, and there doesn't appear to be an attribute to modify this.

label

Plotly PlotlyJS

Most helpful comment

I think wasting space is a lot better than overlap, though, if we have to choose. I think it should be possible to calculate the the labels from the ticks and tickfont, which are available in the plotattributes object at backend time.

All 5 comments

The same issue exists in plotlyjs, at least for logarithmic scales (which have tick labels that are wider than usual).

@mkborregaard : Yes, we need a solution that takes the effective/maximum length of the labels into account. Otherwise, we will always "waste space".

I think wasting space is a lot better than overlap, though, if we have to choose. I think it should be possible to calculate the the labels from the ticks and tickfont, which are available in the plotattributes object at backend time.

I think that's fixed for GR in #2018:

using Plots
plot([0, 1], yguide = "p(chance association)")

gr_guide

I agree that PlotlyJS with scientific format could use a little more space.
plotly_guide

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mkborregaard picture mkborregaard  路  3Comments

kersulis picture kersulis  路  5Comments

crstnbr picture crstnbr  路  3Comments

PallHaraldsson picture PallHaraldsson  路  4Comments

dancsi picture dancsi  路  4Comments