I'm trying to implement a spectrograph following This question for guidance.
However, one of the called function of ImageItem seems to be "missing".
In the linked question, there is this line (img is a ImageItem):
img.scale(t[-1] / np.size(Sxx, axis=1),
f[-1] / np.size(Sxx, axis=0))
But, when I try to use the same line, I get the error:
TypeError: ImageItem.scale() takes no arguments (4 given)
Looking at the source, it appears the scale() function from Qt's QGraphicsItem is being called, which returns the current scale, and printing a call without arguments confirms it, printing 1.0.
Is there a different function I need to call to set the ImageItem scale?