Hello,

I have

x = [155, 255, 355, ...]
y = [555, 331, 777, ...]

And I plot them with

xdict = dict(enumerate(x))

self.plot = pg.PlotWidget()
axis = self.plot.getPlotItem().getAxis("bottom")
axis.setTicks([xdict.items()])

p = pg.PlotDataItem(list(xdict.keys()), y, axisItem={'bottom' : axis})

self.plot.addItem(p)

So now my whole x axis is crowded with ticks, how can I set them?
I have tried setTickSpacing with no help.

Thanks,
Tom

-- 
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/cb82330f-0684-4381-b1a2-dc5b57aa6254%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to