Hi,

It's not on the documentation for ImageItem, since it is an indirect 
descendant of a Qt QGraphicsObject, but all the QGraphicsObject methods 
<https://doc.qt.io/qt-5/qgraphicsobject-members.html> also apply to an 
ImageItem. So you will want to do a img.resetTransform() before applying a 
new set of scale/translate transforms.

Patrick


On Friday, 3 May 2019 23:15:47 UTC+9:30, Denis Vasyukov wrote:
>
> I am writing a GUI for scanning probe microscopy.
> I am displaying the images in the ImageItems inside GraphicsLayoutWidget, 
> which also has a PlotItem.
> To match the axes of the PlotItem to the images I have to scale them, and 
> it works fine, until I need to
> change the scale for a new image.
> It seems that a consecutive scale command is like applying the scale with 
> the squared X and Y values.
> So, I probably have to restore the scale somehow to the original value, 
> but I cannot read out scale. What are my options?
>

-- 
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/0e31ef4d-df07-48b2-b2fd-f538b901dd74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to