frame_layout = pg.GraphicsLayout()
main_subplot = frame_layout.addPlot()
img = pg.ImageItem()
img.setImage(self.displayed_data_set, padding=0)
Setting an image item in the plot area with 0 padding hides axis and ticks. Additionaly if grid is turned on it is not visible, as if the image item is "on top" of the plot and it covers all of the elements of the plot item.
If i set the style of ticks to points towards the text, then they are visible, but this is not the behaviour i want.
I have only tried one thing which is
main_subplot.setZValue(1000)
After that I really had no idea what to try so i came here for help.
Thanks, Luka.