I found that position of the points are
(after plot_psdSRC.setLogMode(True,False)) reference to log10
I did this and worked:
for ii in range(len(l_pdf)):
val.append({'pos': [np.log10(xx[ii]),yy[ii]],'data':1,
'size':4.0,'brush':colors[ii]})
On Tuesday, February 14, 2017 at 2:46:19 PM UTC-7, Omar wrote:
>
> HI, I am trying to plot a line and a map (with scatterplotitem) both with
> log scale in the x-axis;
>
>
> ......
> plot_psdSRC = pg.PlotWidget()
> plot_psdSRC.setLogMode(True,False)
> spect=pg.ScatterPlotItem(size=10, pen=pg.mkPen(None),
> brush=pg.mkBrush(255, 255, 255, 120))
>
>
>
> plot_psdSRC.plot(freqvalS[1:],specS[1:],pen='m')
> val=[]
> val.append({'pos': [0.1,100],'data':1, 'size':8.0,'brush':'w'})
> spect.addPoints(val)
>
> ....
>
> this line plots fine:
> plot_psdSRC.plot(freqvalS[1:],specS[1:],pen='m')
>
> but
>
> spect.addPoints(val)
>
> puts the dot at x=1,y=100
>
> Any ideas?
>
>
>
>
--
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/a3e57c64-a709-4bc3-a9fe-a1026b9da7af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.