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
Matplotlib does not render a data point when saving a figure in any vector graphics format when the individual data point is straddled by nan values.
The images are plotted correctly for any raster format or when using show.
Below is the same figure saved in png format or generated by show
The vector format produced the expected outcome in matplotlib 1.5 using qt4agg.
Strangely enough, the expected outcome can also be produced by doing the following:
Bug report
Bug summary
Matplotlib does not render a data point when saving a figure in any vector graphics format when the individual data point is straddled by
nan
values.The images are plotted correctly for any raster format or when using
show
.Code for reproduction
Actual outcome
Below is the figure saved in pdf format.
Expected outcome
Below is the same figure saved in png format or generated by
show
The vector format produced the expected outcome in matplotlib 1.5 using qt4agg.
Strangely enough, the expected outcome can also be produced by doing the following:
scatter
instead ofplot
nan
valuesMy assumption is that
plot
is trying to connect the dots, is unable to do so and so ignores the data point.Matplotlib version
python 3.5.2
matplotlib 2.0.0
numpy 1.11.1
pyqt 5.6.0
installed on Ubuntu 16.04 via anaconda 3
The text was updated successfully, but these errors were encountered: