Hi,
I had to make a few modifications to the code to get it to run, but the
1-button mode seems to work just fine for me...
Patrick
On Friday, 10 June 2022 at 2:11:03 am UTC+9:30 [email protected] wrote:
> Hi Luke! I send the code and file ECG. Thanks for all =' ) !
>
> Valen
> El sábado, 28 de mayo de 2022 a las 15:27:32 UTC-3, [email protected]
> escribió:
>
>> Hi Valentina,
>> It's still not clear what problem you are having. Usually the easiest way
>> to help us understand your problem is to send some code that we can run, so
>> we can see the problem ourselves. Can you provide code that demonstrates
>> the problem?
>>
>> On Mon, May 23, 2022, 11:26 Valentina Colmenarez <[email protected]>
>> wrote:
>>
>>>
>>> I want to turn rubber band for zooming in viewbox on and off when I
>>> don't want to use it. But when I click on leftButtonPan': True, it doesn't
>>> work, as you can see on the image attached.[image: zoom.jpg]
>>> El domingo, 8 de mayo de 2022 a las 16:19:00 UTC-3, [email protected]
>>> escribió:
>>>
>>>> Generally zoom out behavior is done by the mouse wheel, or whatever
>>>> gesture is needed to scroll on a touchpad. Can you provide a small
>>>> example
>>>> demonstrating scrolling not working?
>>>>
>>>> On Sat, May 7, 2022 at 8:10 PM Valentina Colmenarez <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi! How can I zoom out a graphic-pyqtgraph. I used setConfigOption()
>>>>> but the option zoom out doesn't work :'(
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "pyqtgraph" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/pyqtgraph/bb5ca47a-3c1f-41e4-83c3-b7cefcb056d9n%40googlegroups.com
>>>>>
>>>>> <https://groups.google.com/d/msgid/pyqtgraph/bb5ca47a-3c1f-41e4-83c3-b7cefcb056d9n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "pyqtgraph" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/pyqtgraph/2ff3fc42-85f3-4f17-b315-cfd86c87d817n%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/pyqtgraph/2ff3fc42-85f3-4f17-b315-cfd86c87d817n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/2bc8280e-efa7-49ed-a3ae-c0c75a2d9420n%40googlegroups.com.
from PySide6 import QtCore, QtWidgets
import pyqtgraph as pg
pg.setConfigOption('leftButtonPan',False) # Zoom
app = QtWidgets.QApplication([])
w = QtWidgets.QWidget()
pw = pg.PlotWidget()
plot = pw.plot([-1, 1, 3, 5], [0, 3, 1, 2])
btn = QtWidgets.QPushButton('Preprocesar')
btn1 = QtWidgets.QPushButton('Salir')
layout = QtWidgets.QGridLayout()
w.setLayout(layout)
## Add widgets to the layout in their proper positions
layout.addWidget(btn, 0, 0) # button goes in upper-left
layout.addWidget(btn1, 1, 0) # button goes in upper-left
#layout.addWidget(btn2, 2, 0) # button goes in upper-left
layout.addWidget(pw, 0, 1, 3, 1) # plot goes on right side, spanning 3 rows
## Display the widget as a new window
w.show()
## Start the Qt event loop
app.exec_()