Skip to content

Cannot configure matplotlib rcparams for plot color #16434

Closed
@PalashSharma15

Description

@PalashSharma15

According to official documentation below code snippet should return a plot with red lines
Documentation is here

import matplotlib as mpl
import matplotlib.pyplot as plt
data = np.random.randn(50)
mpl.rcParams['lines.color'] = 'r'
plt.plot(data)

Actual outcome

image

Expected outcome

image

Matplotlib version

  • Operating system: Windows 10
  • Matplotlib version: 3.1.2
  • Matplotlib backend (print(matplotlib.get_backend())): TkAgg
  • Python version: 3.7.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions