Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Text Items disappear #4

Open
darods opened this issue Apr 17, 2020 · 7 comments
Open

Text Items disappear #4

darods opened this issue Apr 17, 2020 · 7 comments

Comments

@darods
Copy link
Owner

darods commented Apr 17, 2020

Most of the times pyqtgraph's Text Items disappear, i don't know why, maybe a reimplementation using pyqt5 widgets instead of pyqtgraph will solve this.

@gabrielelara
Copy link

Hi, have you found a solution for this problem? I have the same problem with Text Items but I can´t solve it.

@darods
Copy link
Owner Author

darods commented Jul 5, 2020

No :c, sorry.

@darods
Copy link
Owner Author

darods commented Jul 5, 2020

What have you tried to fix it?

@gabrielelara
Copy link

Well I followed your advice about use pyqt5 widgets instead texts items, more exactly QLcdNumber and it works

@utkarshpandey12
Copy link

@gabrielelara Can you please share the code to bind Qlcdnumber inside the L2 layout . It will be of great help

@utkarshpandey12
Copy link

@gabrielelara I am facing the same issue of disappearing tets inside the textitem

@zwizw
Copy link

zwizw commented Oct 23, 2023

It seems that this issue has been solved several years ago.
https://stackoverflow.com/questions/46017022/textitem-added-to-viewbox-disappeare-after-a-couple-of-seconds
use "self.getViewBox().autoRange()" to auto scale graph's viewbox and "SetPos(.5,.5)" to place the TextItem in the center position

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants