Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mplot3d failed to clip bar charts if zlim is set. #8902

Open
Labels
Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesNew featurekeepItems to be ignored by the “Stale” Github Actiontopic: mplot3d
@a113n

Description

@a113n

Bug report

Bug summary

mplot3d failed to clip bar charts if zlim is set.

Code for reproduction

# Adapter from http://matplotlib.org/2.0.2/examples/mplot3d/bars3d_demo.htmlfrommpl_toolkits.mplot3dimportAxes3Dimportmatplotlib.pyplotaspltimportnumpyasnpfig=plt.figure()ax=fig.add_subplot(111,projection='3d')forc,zinzip(['r','g','b','y'], [30,20,10,0]):xs=np.arange(20)ys=np.random.rand(20)# You can provide either a single color or an array. To demonstrate this,# the first bar of each set will be colored cyan.cs= [c]*len(xs)cs[0]='c'ax.bar(xs,ys,zs=z,zdir='y',color=cs,alpha=0.8)ax.set_xlabel('X')ax.set_ylabel('Y')ax.set_zlabel('Z')# Set zlim3dax.set_zlim3d(bottom=0.2,top=1)plt.show()

Actual outcome

test

Expected outcome
The z-axis would be clipped according to the zlim_3d parameters properly

Matplotlib version

  • Operating System: Windows 10 1703
  • Matplotlib Version: 2.0.2
  • Python Version: 3.6
  • Jupyter Version (if applicable):
  • Other Libraries:

Matplotlib installed from pip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesNew featurekeepItems to be ignored by the “Stale” Github Actiontopic: mplot3d

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp