Remove padding around ImageItem placed inside of a PlotItem

33 views
Skip to first unread message

Luka Drmic

unread,
Dec 20, 2018, 9:20:48 AM12/20/18
to pyqtgraph
By default there is padding around the image item added to the plot item. How would i remove this padding.

padding.PNG



I have tried:

Setting margins and spacing to 0.

Pass padding=0 when adding image item to plot.

None of the above worked.

Thx for help, Luka.

Patrick

unread,
Dec 20, 2018, 9:02:55 PM12/20/18
to pyqtgraph

Luka Drmic

unread,
Dec 21, 2018, 4:07:51 AM12/21/18
to pyqt...@googlegroups.com
I does help a little. But it also disables moving the visible area. Which is not necessarily bad.

Thank you for your replay. Luka.

--
You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyqtgraph/0qO4YuGGIjU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/08f5d9ac-3ed8-48a3-b443-0a999b149a1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages