Remove scrollbar in all tables subplots generated with plotly - python

I have a plot which contains subplots, this subplots are tables. My problem is that I need to export this plot into an image (.png, .jpg) but some of these tables have a scrollbar, so when I export the plot the tables with the scrollbar don't show all the data.
I need to export this plot with all the tables showing their data, is there any way that I can remove this scrollbar so the image can show the entire content??
Here is an example with one table that has this scrollbar (I have censored the content for legal reasons):

The data script is not presented either, so it may not be accurate, but you will need to manually set the height at which the scrolling does not appear in the layout update.
fig.update_layout(
autosize=False,
height=1200,
showlegend=False,
title_text="test",
)

Related

plotly dash graph error, my graph cutooff

Why my graph only see legend????
I think this data is long sentence so cut graph n just show legend
I want to graph clearly
Looks like you need to explicitly define the size of your figure, making it wide enough so the legend doesn't cover it. It might also help to create a shorter label in your legend or move the legend to the top or bottom so it doesn't cover your figure.
To change the size of your figure, you can do so in fig.update_layout() or when exporting the image in fig.write_image().
updating image:
fig.update_layout(
autosize=False,
width=1920,
height=1080)
exporting image:
fig.write_image('figure.pdf', width=1920, height=1080)

How do I show plot zoomed in?

I'm using matplotlib to show a plot with %matplotlib widget in jupyter lab. Almost every time I show the plot, next thing I have to do is zoom in and examine one of the sections of the plot. I would like to be able to show the plot zoomed into that section, and if I want to examine the rest of the plot, as I sometimes do, I would press back button and see all of it.
This is similar to showing subplot with relevant data or using plt.xlim, except I would like to do it in a single plot so the data I'm looking at can occupy more screen space, and plt.xlim just shows relevant stretch of data without possibility to zoom out again.
How do I do this is jupyter lab?

Is it possible to display matplotlib plots in columns without using subplots?

I'm creating an HTML report with a lot of plots and corresponding tables. It's quite big, so it would be great if the user could copy/paste the plot title into Find In Page to quickly find the associated table(s).
This answer made me realise that's not possible and that printing the title to the screen would help.
However, I want to display the charts in 2 columns.
Is it possible to print the title, display a plot, print a title to the right, display a plot to the right, begin next column, and so on, without using plt.subplots()?
If not in matplotlib, are there any plotting packages that could do this?

display hover text when hovering on labels too

I am making a dashboard using dash. The charts show hovertext when hovering on the points in the scatter plot. I want to see the same hovertext when the cursor is hovered on labels of points. Is it possible?
The only objects that can trigger hover text are the actual data points. So you will have to maneuver the point/label such that the your mouse would be hovering over the point and the label simultaneously, but it would still be the point that was triggering the hover text to appear.
https://plotly.com/python/text-and-annotations/

Align plots in Qt

I want to be able to nicely align the description and the plot of following configuration:
I want to achieve that every plot has the same size, i.e. they end all on the same imaginary vertical line. The channel names should be aligned. Currently, I'm using a QGridLayout. The plots were created using Qwt.

Categories