lets put this in mr0. util and use it everywhere, this is an used in phantom.plot
also fft everywhere!
def MR_imshow(data, *args, *kwargs): # plt.imshow shows the matrix (x,y) as (col,rows)
try: # Attempt to transpose data
transposed_data = np.transpose(data) # util.MR_imshow transposes to (rows,col)
except TypeError as e:
print(f"Error transposing data: {e}")
transposed_data=data
plt.imshow(transposed_data, args,origin="lower", **kwargs) # also the origin is set to lower!
lets put this in mr0. util and use it everywhere, this is an used in phantom.plot also fft everywhere!
def MR_imshow(data, *args, *kwargs): # plt.imshow shows the matrix (x,y) as (col,rows) try: # Attempt to transpose data transposed_data = np.transpose(data) # util.MR_imshow transposes to (rows,col) except TypeError as e: print(f"Error transposing data: {e}") transposed_data=data plt.imshow(transposed_data, args,origin="lower", **kwargs) # also the origin is set to lower!