Kotlin / kandy

Kotlin plotting library.
https://kotlin.github.io/kandy/
Apache License 2.0
589 stars 15 forks source link

Add `plotInset` parameter to style #406

Open AndreiKingsley opened 2 months ago

AndreiKingsley commented 2 months ago

https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.7.1/theme_plot_inset.ipynb

lucas-watkins commented 1 month ago

Hello, if this issue is still available may I please try to solve it?

AndreiKingsley commented 1 month ago

Yes, you are welcome.

You need to add the inset property to the PlotCanvas custom style configuration. First you need to research its behavior in Lets-Plot and design API for it.

lucas-watkins commented 1 month ago

I have implemented an API that is very similar to the existing one that handles margins. However, I read in CONTRIBUTING.md that all new APIs must come with documentation. Is it appropriate to add documentation in the docs folder or the examples folder in this case?

AndreiKingsley commented 1 month ago

Custom style API is still unstable, we haven't done documentation and tests yet, so you can add it without them for now.