8000 [Bug]: On polar axis, stem plot with non-zero bottom has an extra red line. · Issue #29484 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Bug]: On polar axis, stem plot with non-zero bottom has an extra red line. #29484
Closed
@siyuanzou9

Description

@siyuanzou9

Bug summary

I'm tring to make stem plots on polar axis. When I set the stem bottom to non-zero values, I noticed an abnormal red line that connects the bottom of first and last stem. I don't think this is an expected behaviour.

Code for reproduction

import matplotlib.pyplot as plt
import numpy as np

# Fixing random state for reproducibility
np.random.seed(19680801)

# Compute areas and colors
N = 50
r = 2 * np.random.rand(N)
theta = 2 * np.pi * np.random.rand(N)

fig = plt.figure()
ax = fig.add_subplot(projection='polar')
c1 = ax.stem(
    theta, 
    r+4, 
    bottom=4,
)

Actual outcome

Image

Expected outcome

A plot without the red line connectting the bottom of first and last stem.

Additional information

No response

Operating system

No response

Matplotlib Version

3.10.0

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0