[pyqtgraph] Re: linearregionitems in log plots are returning unexpected values

2018-03-09 Thread Guillaume William Bres
I face the same problem all the time because I also work with 
logarithmically spaced frequency axis

but we can easily work around it by testing whether log(x) is being used or 
not:

log_state = my_plot.plotItem.ctrl.logXCheck.isChecked()

[x,y] = my_curve.getData() 

if (log_state):
  x = 10**x

   
 

-- 
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 pyqtgraph+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/6801a709-1c16-4736-92bf-0f408229d6dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[pyqtgraph] Re: linearregionitems in log plots are returning unexpected values

2018-03-09 Thread Jeremy Webster
yes, and similar for the set methods

perhaps in the next release, this will behave as expected.



On Friday, March 9, 2018 at 1:58:24 AM UTC-7, Guillaume William Bres wrote:
>
> I face the same problem all the time because I also work with 
> logarithmically spaced frequency axis
>
> but we can easily work around it by testing whether log(x) is being used 
> or not:
>
> log_state = my_plot.plotItem.ctrl.logXCheck.isChecked()
>
> [x,y] = my_curve.getData() 
>
> if (log_state):
>   x = 10**x
>
>
>  
>

-- 
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 pyqtgraph+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/6e921d11-9ee1-493d-ba66-28dc5a826200%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.