nodeplotlib
nodeplotlib copied to clipboard
Responsive Chart Error
The plot only adjusts to the window size when the window is less than half of the screen width.
OS: Mac OS 12.4 Browser: Any
Window is aprx. 40% of screen width:

Window is full screen:

Hey, thanks for your report. It is already responsive, however the logic for the grid is the following:
:host {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
grid-gap: 8px;
margin: 12px;
grid-template-rows: auto;
}
This means it creates more columns the larger the window gets. What would you expect to happen? I could imagine to have a select in the toolbar or below the toolbar to adjust the number of columns manually.
Thank you for the reply.
Maybe creating columns makes sense only if there are multiple charts. Since when there is only one, it just doesn't use all the space available.
Or an option to adjust the number of columns manually is fine too.