Skip to content

The color of the 3D arrow head does not match that of the arrow body #11759

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

Closed
arthurzqhu opened this issue Jul 23, 2018 · 1 comment · Fixed by #27754
Closed

The color of the 3D arrow head does not match that of the arrow body #11759

arthurzqhu opened this issue Jul 23, 2018 · 1 comment · Fixed by #27754

Comments

@arthurzqhu
Copy link

arthurzqhu commented Jul 23, 2018

Bug report

Bug summary

The color of the 3D arrow head does not match that of the arrow body. (In fact, the two segments of head itself don't even match.)

Not sure if it is related to #11746, so I posted it separately just to make things clearer.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

x = np.zeros(10)
y = np.zeros(10)
z = np.arange(10.)
dx = np.zeros(10)
dy = np.arange(10.)
dz = np.zeros(10)

ax = plt.figure().add_subplot(projection='3d')

arrow_color = plt.cm.Reds(dy/dy.max())

ax.quiver(x, y, z, dx, dy, dz, colors=arrow_color)
ax.set_ylim(0,10)
plt.show()

Actual outcome

test_arrow_head_color

Expected outcome

The entire arrow should have a single color.

Matplotlib version

  • Operating system: macOS 10.13.6
  • Matplotlib version: 2.2.2
  • Matplotlib backend (print(matplotlib.get_backend())): MacOSX
  • Python version: 2.7.15
  • Jupyter version (if applicable): 5.6.0
  • Other libraries:

matplotlib and Python were installed with Anaconda.

raunM added a commit to raunM/matplotlib that referenced this issue Mar 23, 2019
Seperated arrow head bodies and arrow heads to be used for generating gradient lines seperately.
@github-actions
Copy link

This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

@github-actions github-actions bot added the status: inactive Marked by the “Stale” Github Action label May 10, 2023
@github-actions github-actions bot added the status: closed as inactive Issues closed by the "Stale" Github Action. Please comment on any you think should still be open. label Jun 9, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2023
@dstansby dstansby added status: confirmed bug keep Items to be ignored by the “Stale” Github Action and removed status: inactive Marked by the “Stale” Github Action status: closed as inactive Issues closed by the "Stale" Github Action. Please comment on any you think should still be open. labels Jan 6, 2024
@dstansby dstansby reopened this Jan 6, 2024
@QuLogic QuLogic added this to the v3.8.4 milestone Mar 5, 2024
@QuLogic QuLogic removed the keep Items to be ignored by the “Stale” Github Action label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants