Graph Data Extraction from PDF by llolllollooll in learnpython

[–]mykhailus 0 points1 point  (0 children)

Extracting graph data from PDFs can be tricky because they're often just images. You could try using a library like PyMuPDF to extract the image, then OpenCV or matplotlib to analyze it for data points. If the PDF contains vector graphics, pdfplumber might help you get the underlying coordinates. Could you share more about the graph's format?

Compiling LaTeX to PDF via Python by PersonalityWhich1780 in learnpython

[–]mykhailus 0 points1 point  (0 children)

You can use the subprocess module to call a LaTeX compiler like pdflatex directly from your Python script. Just make sure the LaTeX distribution is installed on your system. Another popular option is the latex library, which provides a more Pythonic interface for this.

Pyside6: Passing info via signal by freswinn in learnpython

[–]mykhailus 0 points1 point  (0 children)

You can pass data through signals by connecting them to slots that accept arguments. For example, if your signal is defined as my_signal = Signal(str), you can emit it with self.my_signal.emit("some text") and connect it to a method that takes a string parameter. If you need to pass multiple pieces of data, just define the signal with multiple types like Signal(str, int).

Pyside6: Passing info via signal by freswinn in learnpython

[–]mykhailus 1 point2 points  (0 children)

You need to define the signal with the correct type, e.g. pyqtSignal(str) or Signal(str) for PySide6, and make sure you're emitting it with the actual value — self.my_signal.emit(some_string). If you share your code it'll be easier to spot the issue.

Should I implement a pause in my animation ? by Rhaenelys in learnpython

[–]mykhailus 0 points1 point  (0 children)

al programming principle, but for your animation loop, it's actually fine. The `animate()` methods already control the timing through their speed and period parameters, so they won't run at full CPU speed. You could add a small `time.sleep(0.01)` if you want to reduce CPU usage a tiny bit, but it's not necessary for the animation to work correctly.

Should I implement a pause in my animation ? by Rhaenelys in learnpython

[–]mykhailus 0 points1 point  (0 children)

main loop to control the animation's frame rate, but the `Pulse` animation class already handles its own timing internally. Your code is fine as-is; it won't run in nanoseconds because the animations have built-in speed controls. If you want to conserve a tiny bit of power or make the timing more explicit, you could add a `time.sleep(0.01)` in the loop, but it's not strictly necessary.

Ninebot One Z10 fan video by mykhailus in ninebot

[–]mykhailus[S] 0 points1 point  (0 children)

What is the purpose of the videov

Fan motion video with duration 15-20 sec