plots icon indicating copy to clipboard operation
plots copied to clipboard

Adaptive defaults

Open ocramz opened this issue 9 years ago • 1 comments

I've started using this library and I quite like it! But I feel some things could be smoothened out for a beginner: e.g. would sensible defaults that somehow match the input be possible?

I am tweaking a legend and the first thing I noticed is that it doesn't match the text width. Tweaking this by hand requires 1. importing Plots.Legend, 2. using some lensy trickery, 3. hardcoding the legend text length, which is a pain for throwaway analysis.

Thanks!

ocramz avatar Dec 17 '16 13:12 ocramz

Thanks for the feedback.

I agree, it is a pain. I'd like to have this feature but implement it would be difficult.

Most backends do have a way of calculating the text width of a bit of text and I'd like to use this for calculating the legend box width but it's not easy to implement it for multiple backends. I expect it'll take a while to do.

cchalmers avatar Dec 18 '16 17:12 cchalmers