Skip to content

bar graph with nan values leads to "No current point in closepath" in evince  #7154

@e-dschungel

Description

@e-dschungel

I want to plot a bar graph which contain some nan values and save it to PDF. If I open the file in evince it shows several errors like "Syntax Error (596): No current point in closepath" on the console but plot is shown as expected. This only happens with the pdf backend, cairo pdf backend works. I think this is related to #3654.

I'm on Matplotlib 1.5.1 (installed via pip), python 2.7.6, Linux

Example code:

#!/usr/bin/env python

import matplotlib.pyplot as mpl

fig = mpl.figure()
ax = fig.add_subplot(111)
bars = ax.bar([1], [float("NaN")], 0.2)
mpl.savefig("test.pdf")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions