Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Flexibility in displaying multiple plots #154

Open
contradictioned opened this issue Nov 11, 2019 · 2 comments
Open

Flexibility in displaying multiple plots #154

contradictioned opened this issue Nov 11, 2019 · 2 comments

Comments

@contradictioned
Copy link

If I understand correctly, a cell in a Jupyter notebook can only render one output. In case of Daru this can be done by calling my_graph.show_in_iruby. In order to render multiple (n) plots in a single output, there's Daru::View::PlotList which constructs a table with n columns and a single row. If the individual plots are too big, this table would overflow and the user needs to scroll sideways (see attached screenshot).

Is there a better way to display multiple plots, especially without horizontal scrolling?
If not (and you are interested) I'd also take look into that, not sure if it suffices to give a num_cols parameter for the construction of the table to limit the number of columns, or wrap the individual plots inside a flexbox container.

Screenshot 2019-11-11 at 09 57 02

@Shekharrajak
Copy link
Member

wrap the individual plots inside a flexbox container.

This idea is good. Feel free to work on it. I would love to help you with that.

@Shekharrajak
Copy link
Member

I think we need to have a css in our iruby template which generate the HTML code for the cell. It should not be much difficult but need to have bit knowledge of js, css dependency daru-view is using, so that in built css can be used here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants