8000 [Bug]: tripcolor ignores clim · Issue #22726 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Bug]: tripcolor ignores clim #22726
Closed
@anntzer

Description

@anntzer

Bug summary

from pylab import *
tripcolor(np.random.rand(100), np.random.rand(100), np.random.rand(100), clim=(0, 0.5))
colorbar()
show()

shows that tripcolor ignores clim.

Code for reproduction

See above.

Actual outcome

Colorbar/colormapping goes from nearly 0 to nearly 1.

Expected outcome

Colorbar/colormapping goes from 0 to 0.5.

Additional information

This is the same issue as #21146/#21525: kwargs should be handled a bit further down in the implementation of tripcolor() (just before calling _scale_norm).

Operating system

arch linux

Matplotlib Version

3.6.0.dev1920+gdfd83c2c5d

Matplotlib Backend

mplcairo

Python version

310

Jupyter version

ENOSUCHLIB

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0