Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[MNT]: validate linewidth #30323

Closed
Closed
Milestone
@story645

Description

@story645

Summary

I accidentally set linewidth as'2' instead of 2 and the resulting error message is of no help:

 [/usr/local/lib/python3.11/dist-packages/matplotlib/backends/backend_agg.py](https://localhost:8080/#) in draw_path(self, gc, path, transform, rgbFace)128else:129try:--> 130                 self._renderer.draw_path(gc, path, transform, rgbFace)131exceptOverflowError:132                 cant_chunk=''RuntimeError:Unable to cast Python instance of type <class 'tuple'> to C++ type '?' (#define PYBIND11_DETAILED_ERROR_MESSAGES or compile in debug mode for details)

Proposed fix

Other parameters like color get validated real time, so if it's not too expensive I think validating that linewidth is a number could save some debugging frustration.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp