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
{{ message }}
Repository navigation
scatter not showing valid x/y points with invalid color #4354
scatter plots are removing points with valid x/y coordinates but invalid color value. As colormaps have a special setting for what color should be used in case of invalid data points (used e.g. in imshow array plots) maybe these points should indeed be plotted and plotted with the specified "bad value" color.
I.e. from matplotlib 3.1 on, you can use plt.scatter(...,, plotnonfinite=True) to include masked or invalid points be be colorized according to the set_bad color of the colormap.
Activity
tacaswell commentedon Jul 31, 2015
punted as not a blocker for 1.5.
fix scatter not showing points w/ valid x/y invalid color matplotlib#…
fix scatter not showing points w/ valid x/y invalid color matplotlib#…
fix scatter not showing points w/ valid x/y invalid color matplotlib#…
Merge branch 'colorfix-matplotlib#4354' of https://github.com/QiCuiHu…
fix scatter not showing points w/ valid x/y invalid color matplotlib#…
fix scatter not showing points w/ valid x/y invalid color matplotlib#…
fix scatter not showing points w/ valid x/y invalid color matplotlib#…
Better plots NaN values in dependence_plots
ImportanceOfBeingErnest commentedon May 3, 2019
Closing, as being fixed by #12422.
I.e. from matplotlib 3.1 on, you can use
plt.scatter(...,, plotnonfinite=True)to include masked or invalid points be be colorized according to theset_badcolor of the colormap.