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
When downscaling causes visualization problems, it would be useful for a user to control the interpolation method and/or for us to set a default other than antialiased potentially. I think there are three potential solutions we could consider.
Option 1: Document setting the method using matplotlib
importmatplotlibmatplotlib.rcParams["image.interpolation"] ="nearest"# or None, etc.
Option 2: Add a configuration option interpolation to the Params class
Option 3: Use **kwargs in pcv.plot_image and pcv.print_image for matplotlib plots in addition to xarrayDataArray plots
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I think in older versions of
matplotlib
the default method for interpolation (which occurs when images are downsized for display in Jupyter or when plots likepcv.visualize.pseudocolor
are created) wasNone
or nearest neighbor but now is "antialiased" https://matplotlib.org/stable/gallery/images_contours_and_fields/interpolation_methods.htmlWhen downscaling causes visualization problems, it would be useful for a user to control the interpolation method and/or for us to set a default other than antialiased potentially. I think there are three potential solutions we could consider.
Option 1: Document setting the method using
matplotlib
Option 2: Add a configuration option
interpolation
to theParams
classOption 3: Use
**kwargs
inpcv.plot_image
andpcv.print_image
formatplotlib
plots in addition toxarray
DataArray
plotsBeta Was this translation helpful? Give feedback.
All reactions