Hi, I solved this issue with something like this, hopefully it works for you:
self.overview = self.overview_graphicsLayoutWidget.addPlot() [ self.overview.getAxis(ax).setZValue(10) for ax in self.overview.axes ] # Draw axes and ticks above image/data Patrick On Tuesday, 19 February 2019 03:11:58 UTC+10:30, Luka Drmic wrote: > > 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. > -- 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/d47222ce-bda0-48ed-921e-67bcae868fb9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
