Thank you, Patrick.  I will give that a try.

On Monday, September 2, 2019 at 11:15:09 PM UTC-4, Patrick wrote:
>
> I think the function from ViewBox you are looking for is setMouseEnabled. 
> So something like:
>
> yourplot.getViewBox().setMouseEnabled(x=False, y=False)
>
> Patrick
>
> On Tuesday, 3 September 2019 10:31:04 UTC+9:30, [email protected] wrote:
>>
>> You also could:
>> - set it to desired value at end of every loop (before calling 
>> processEvents()) 
>> - set some parameters with setLimits() function,
>> - use disableAutoRange()
>> - use some other function from 
>> http://www.pyqtgraph.org/documentation/graphicsItems/viewbox.html#pyqtgraph.ViewBox
>>
>> On Mon, Sep 2, 2019 at 5:46 PM Gene Beidl <[email protected]> wrote:
>>
>>> Hi Vasilije,
>>>
>>> Thanks for the answer.  The set range functions will zoom in or out to 
>>> the dimensions given, but they don't stop the graph from being movable.  If 
>>> you click on the graph, you can still move it around, which is really 
>>> annoying to me.
>>>
>>> I think there must be some other function I need to set.
>>>
>>> On Sunday, September 1, 2019 at 7:59:19 PM UTC-4, [email protected] 
>>> wrote:
>>>>
>>>> Or even better with setRange():
>>>>
>>>> http://www.pyqtgraph.org/documentation/graphicsItems/viewbox.html#pyqtgraph.ViewBox.setRange
>>>>
>>>> On Sun, Sep 1, 2019 at 4:56 PM <[email protected]> wrote:
>>>>
>>>>> Hi Gene,
>>>>>
>>>>> You could try to do that with setXRange and setYRange functions:
>>>>>
>>>>> http://www.pyqtgraph.org/documentation/graphicsItems/viewbox.html#pyqtgraph.ViewBox.setXRange
>>>>>   
>>>>>
>>>>> Cheers,
>>>>> Vasilije
>>>>>
>>>>> On Sun, Sep 1, 2019 at 4:16 PM Gene Beidl <[email protected]> wrote:
>>>>>
>>>>>> When I click on any of the graphs with all the examples in the 
>>>>>> example code, the graphs move, updating the x and y axes.
>>>>>>
>>>>>> I want to lock the graph in place and not float all about.  How can I 
>>>>>> make it unmovable?
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> 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/f87d8b83-8c12-49a2-aa0c-571bb4ac9b82%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/pyqtgraph/f87d8b83-8c12-49a2-aa0c-571bb4ac9b82%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/e2be7377-d566-4a67-8295-14b0139c62e6%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/pyqtgraph/e2be7377-d566-4a67-8295-14b0139c62e6%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/967cecdb-1dd0-4069-80ba-f38e439523d0%40googlegroups.com.

Reply via email to