Replies: 1 comment
-
ax2.vb.win.addItem(ax2, col=1, row=0) # auto-remove and add ax2 as first (replacing ax0)
ax3.vb.win.addItem(ax3, col=1, row=1) # auto-remove and add ax3 as second It needs to take overlays into consideration, so it takes some consideration to implement inside |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to hide a plot based on a condition?
I would like to dynamically show or hide a bottom plot (with studies) in PyQt.
This would be similar to the QT hide() and show() methods for widgets:
https://doc.qt.io/qtforpython/PySide6/QtWidgets/QWidget.html?highlight=qwidget#PySide6.QtWidgets.PySide6.QtWidgets.QWidget.hide
I have tested the ax.hide() but it just clears the data and it still occupies the space.
Example: would like to hide the plot in the red rectangle below:

Beta Was this translation helpful? Give feedback.
All reactions