Thanks to visit codestin.com
Credit goes to github.com

Skip to content

webagg_core silently dropping draw-time exceptions #9296

Closed as not planned
Closed as not planned
@jklymak

Description

@jklymak

Bug report

Bug summary

webagg silently drops draw-time exceptions and stops drawing.

Code for reproduction

If you run the following in a jupyter notebook:

import matplotlib.pyplot as plt
import numpy as np

fig, ax = plt.subplots(1, 2)

for axx in ax:
    axx.text(1., 2., 'boo')
    axx.text(np.NaN, np.NaN, 'boo!')

it doesn't draw the second axis after the failure caused by the NaN in the first axis. Note this error may not exist if #9295 gets merged, but its possible there are other silent failures as well.

Expected outcome

An error message should be passed somewhere!

See discussion by @anntzer at #9281 (comment) for a more learned discussion of whats going on.

Matplotlib version

  • Matplotlib version: Master
  • Matplotlib backend (print(matplotlib.get_backend())): webagg
  • Jupyter version (if applicable): recent release

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUI: webaggstatus: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github Action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions