Try

plot.getPlotItem().getAxis('left').setWidth(80)

The 80 is the number of pixels wide you want the axis labels to have. I 
tend to find a value that works and hard code that, but you could calculate 
the width of the tick strings and set it to the widest string if you wanted.



-- 
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/f10c8fe7-6f4f-421c-8dfe-8480a954113b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to