Skip to content

Min/max markers on box plot are not visible with 'dark_background' theme #19778

Closed
@sandyscott

Description

@sandyscott

Min/max markers on box plot are not visible with 'dark_background' theme

The min & max markers (the short lines at the ends of the whiskers) aren't visible with the 'dark_background' theme

Code for reproduction

import pandas as pd
import matplotlib.pyplot as plt

# Data is from the pandas plotting demo
# https://pandas.pydata.org/docs/getting_started/intro_tutorials/04_plotting.html
air_quality = pd.read_csv("air_quality_no2.csv", index_col=0, parse_dates=True)

plt.style.use('default')
air_quality.plot.box()

plt.style.use('dark_background')
air_quality.plot.box()

Actual outcome

boxplot_issue

Software versions

  • Matplotlib version: 3.3.1
  • Matplotlib backend: module://ipykernel.pylab.backend_inline
  • Python version: 3.8.6
  • Jupyterlab version: 3.0.12
  • Pandas: 1.2.3
  • Operating system: Sage Math 9.2 installation running on Ubuntu 20.10 on WSL in windows 10 64-bit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions