X Tutup
Skip to content

Horizontal lines in colorbars in PDF #5151

@astrofrog

Description

@astrofrog

If I make a plot with e.g.

import numpy as np
import matplotlib.pyplot as plt

image = np.random.random([256, 256])

fig = plt.figure()
ax = fig.add_axes([0.1, 0.1, 0.4, 0.4])
im = ax.imshow(image, cmap=plt.cm.gist_heat)
fig.colorbar(im)
fig.savefig('test.pdf')

The colorbar can contain white horizontal lines:

screen shot 2015-09-26 at 10 25 28 pm

This actually becomes much more obvious when printing, as this can cause some kind of resonant/ringing pattern (I can send a photo of a printout if needed), and really makes the printed colorbar look bad.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup