Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected outcome with matplotlib.pyplot.pcolor() #12373

Closed
strpeter opened this issue Oct 2, 2018 · 2 comments
Closed

Unexpected outcome with matplotlib.pyplot.pcolor() #12373

strpeter opened this issue Oct 2, 2018 · 2 comments

Comments

@strpeter
Copy link

strpeter commented Oct 2, 2018

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
@strpeter strpeter changed the title The code Unexpected outcome with matplotlib.pyplot.pcolor() Oct 2, 2018
@WeatherGod
Copy link
Member

WeatherGod commented Oct 2, 2018 via email

@jklymak
Copy link
Member

jklymak commented Oct 2, 2018

This seems like a bug to report to matplotlibtikz. But feel free to comment here if there is something for us to do.

@jklymak jklymak closed this as completed Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants