You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you, the problem is solved as well.I would also like to ask how the legend of the image is displayed? I tried to add the lable property but it doesn't seem to work.
The module does not currently have a way to display a color legend. If that is something you need, you could call spy.get_rgb instead, which accepts the same parameters, then render the returned image with matplotlib, and create your own legend using the colors indexed in spy.spy_colors. The color at position i in spy_colors corresponds to value i in gt.
Activity
tboggs commentedon Sep 28, 2021
What happens if you set the interpolation to "nearest"?
ccyycc-hash commentedon Sep 29, 2021
Thank you, the problem is solved as well.I would also like to ask how the legend of the image is displayed? I tried to add the lable property but it doesn't seem to work.
tboggs commentedon Sep 29, 2021
The module does not currently have a way to display a color legend. If that is something you need, you could call
spy.get_rgbinstead, which accepts the same parameters, then render the returned image with matplotlib, and create your own legend using the colors indexed inspy.spy_colors. The color at positioniin spy_colors corresponds to valueiingt.