Skip to content

Double specifications of plot attributes #19275

@malinkallen

Description

@malinkallen

Describe the issue

As a part of a research project, me and two co-authors have been mining GitHub for Jupyter notebooks and studied a number of frequent function calls in the notebooks. It appears that color is specified both using fmt and color in 125 different calls to matplotlib.pyplot.plot. Out of these, 120 calls specify different colors using the two different parameters. In worst case, this could lead to users studying the wrong curve in their plots, drawing incorrect conclusions. I think it would be good if the user got an indication that the value is specified twice. A similar indication when both fmt and marker/linestyle are used to specify marker/line style could also be helpful!

Summary
Users may specify attributes using both fmtand color/linestyle/marker, without getting to know about it.

Proposed fix

Issue an error or a warning when the color/line style/marker is specified using both fmtand color/linestyle/marker.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy