Hello Luke, I was wondering if this option (interpret axes in the opposite order) is available in the current pyqtgraph version. (Did not find in the documentation).
Thanks in advance, Nico. On Thursday, March 6, 2014 at 2:19:04 AM UTC+1, Luke Campagnola wrote: > > Probably the image was transposed, not rotated. PyQtGraph interprets the > axes of image data as [width, height], which is the opposite of most other > standards. Unfortunately this behavior must be kept for backward > compatibility, but I will be adding a config option soon that will cause it > to interpret axes in the opposite order. > > For now, simply transposing the image data before giving it to pyqtgraph > should suffice: pg.image( img_data.T ) > This operation does not incur any performance overhead. > > > On Wed, Mar 5, 2014 at 7:36 PM, <[email protected] <javascript:>> > wrote: > >> Hi, I am newbie to pyqtgraph.I opened the image file with >> scipy.misc.imread which stored the image data into numpy array and then >> attached the numpy array to the imageItem. Then, I found that the image was >> displayed with 90 degree rotation counter-clockwise. If I used the >> matplotlib.imshow, the image would be displayed correctlly. Is there any >> difference between the imageItem and the imshow function in matplotlib? >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pyqtgraph/c126bba3-1a44-4759-a50e-f36e811c3ade%40googlegroups.com >> >> <https://groups.google.com/d/msgid/pyqtgraph/c126bba3-1a44-4759-a50e-f36e811c3ade%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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/be17da6b-71e3-439c-98af-bd3614fb3d7f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
