[pyqtgraph] Override 'writeCsv' of PlotItem class

2017-12-06 Thread Guillaume William Bres
Hello, I think what I am trying to do should be doable, I would like to override the export to csv feature of a PlotWidget that I usally build this way: self.main_plot = pg.PlotWidget(name="main_plot") self.main_plot.seLogMode.. self.main_plot.showGrid.. because I would like the new functi

[pyqtgraph] log(x) axis with negative powers of ten

2018-02-27 Thread Guillaume William Bres
Hi, I'm building an application where I need to monitor frequency domain data and we use the log(x) feature all the time. My x (frequency) axis ranges from 1e6 (MHz) down to 1e-3 (mHz) and it seems like pyqtgraph is not capable of dealing with 1e^n as long as N<0, by "not dealing", I mean I am

[pyqtgraph] Re: log(x) axis with negative powers of ten

2018-03-07 Thread Guillaume William Bres
so it turned out the log(x) display was somehow corrupted by my xRange(xMin,xMax) values. My x values range from 0 to 1e7. My actual data ranges from 1e-3 to 1e7. I previously set xRange(1e-9 to 1e7) to avoid log(0) @xMin. In this setup I am no longer getting nicely logarithmically spaced verti

[pyqtgraph] Re: log(x) axis with negative powers of ten

2018-03-07 Thread Guillaume William Bres
so it turned out the log(x) display was somehow corrupted by my xRange(xMin,xMax) values. My x values range from 0 to 1e7 (0 to 10MHz). My actual data ranges from 1e-3 (1mHz) to 1e7 (10MHz). I previously set xRange(1e-9 to 1e7) to avoid log(0) @xMin and so the user can slightly scroll below th

[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