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

Appearance settings

BUG: MatplotlibDeprecationWarning: The is_first_col function was deprecated in Matplotlib 3.4 #40714

Copy link
Copy link
Closed
@arnaujc91

Description

@arnaujc91
Issue body actions
import pandas as pd
from matplotlib import pyplot as plt

series = [pd.Series([1,2,3,4]) for _ in range(4)]

nrow, ncol = 2, 2
fig, axes = plt.subplots(nrow, ncol)
axes = axes.reshape(-1)
for i, s in enumerate(series):
    s.plot(ax=axes[i])

plt.tight_layout()

Problem description

After executing the previous code the following message from Matplotlib is shown:

The is_first_col function was deprecated in Matplotlib 3.4 and will be removed two minor releases later. Use ax.get_subplotspec().is_first_col() instead.
  if ax.is_first_col():

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugCIContinuous IntegrationContinuous IntegrationDependenciesRequired and optional dependenciesRequired and optional dependenciesVisualizationplottingplotting

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.