8000 Unexpected outcome with matplotlib.pyplot.pcolor() · Issue #12373 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Unexpected outcome with matplotlib.pyplot.pcolor() #12373
Closed
@strpeter

Description

@strpeter

Bug report

The entire 3d plot after latex compilation has the same color, i.e. a bug similar to #7243 also applies also to the command matplotlib.pyplot.pcolor().

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt
from matplotlib2tikz import save as tikz_save

pa = np.linspace(.1, 1, num=11)
pb = np.linspace(.1, 1, num=11)
pa, pb = np.meshgrid(pa, pb)
q = 1/(pa+pb)

plt.pcolor(pa, pb, q)
plt.colorbar()
tikz_save('test_tikz.tikz')

Actual outcome

The pdf generated with latex containing the 3d plot is supposed to be of variable color but the entire 3d plot has the same color.

Versions

Operating System: Linux 4.18.9-arch1-1-ARCH
Python = 3.7.0 (installed from pacman)
numpy = 1.15.2
matplotlib = 2.2.3
matplotlib2tikz = 0.6.18

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

      0