-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.backend: pdfbackend: psbackend: svg
Milestone
Description
Dear developers,
when plotting single points surrounded by np.nan values, points are shown in a regular plot, but are omitted when saved via pdf backend. Minimal example:
import numpy as np
import matplotlib.pyplot as plt
a = np.array([1,np.nan,2,np.nan,3,3.5,4])
plt.plot(a, marker='o')
plt.show()
generates a perfect plot with the 5 points shown:
but directly saving it via pdf backend omitts the values isolated by np.nans:
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.backends.backend_pdf as pdf
a = np.array([1,np.nan,2,np.nan,3,3.5,4])
fig1 = plt.figure()
sub = fig1.add_subplot(1,1,1)
sub.plot(a,marker='o')
pp1 = pdf.PdfPages('foo.pdf')
fig1.savefig(pp1, format='pdf')
pp1.close()
like so:
I would be glad for any help.
System:
Ubuntu 14.02
Python 2.7.6
Numpy 1.11.2
Matplotlib 1.5.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.backend: pdfbackend: psbackend: svg

