Skip to content

pcolormesh in log polar coordinates #12803

@yoichi-kazama

Description

@yoichi-kazama

Bug report

Bug summary

radius range setting does not work for pcolormesh() in log polar coodinates.

Code for reproduction

%matplotlib inline

import numpy as np
import matplotlib.pyplot as plt

r = np.geomspace(1, 100, num=10)
th = np.linspace(0, 360, num=50)
th = np.radians(th)
v = np.random.rand(len(r), len(th))

ax = plt.subplot(1, 1, 1, projection='polar')
ax.set_rlim(1, 100)
ax.set_rscale('log')
plt.pcolormesh(th, r, v)

Actual outcome

pcolormesh_polar

Expected outcome

I think the pixels should spread to the outer edge of the circle, and no warnings should be shown.

Matplotlib version

  • Operating system: Windows 8.1
  • Matplotlib version: 2.2.3
  • Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline
  • Python version: 3.6.6
  • Jupyter version (if applicable): Jupyterlab 0.34.1
  • Other libraries:

Python, jupyterlab numpy and matplotlib were installed with conda.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions