Scikit-optimize: Plot Objective Figure Size (PR)

Created on 29 Aug 2017  路  5Comments  路  Source: scikit-optimize/scikit-optimize

Could I make a PR where the user can easily change the figure size of this function? Maybe with something like plot_objective(cell_size=int) since depending on the matplotlib theme used 2 as a figure size multiplier is extremely small.

Thank you

Most helpful comment

Yeah absolutely. I was going to implement it the same way Seaborn allows changes in the size of their pair plots by using the arg size.

Since these facet style plots are complicated to deal with in the first place on the user end I thought this may actually be the most elegant solution.

All 5 comments

This would be a great PR. Not sure what the best way to implement this is though. Should we stop doing any explicit figure size settings in the function and ask the user to pass in a figure/axis if they want a different size?

However having a rectangular plot is probably not what anyone wants for a figure with a matrix of plots on it.

Do you have an idea how other libraries deal with: use a non default figure size and let the user override it?

Yeah absolutely. I was going to implement it the same way Seaborn allows changes in the size of their pair plots by using the arg size.

Since these facet style plots are complicated to deal with in the first place on the user end I thought this may actually be the most elegant solution.

Sounds like a good idea to me.

I've submitted the pull request. Tell me if there are any issues

Thanks for your contribution :)

Was this page helpful?
0 / 5 - 0 ratings