Skip to content

plt.figure() throws if not immediately followed by more plotting #13

Open
@vadimkantorov

Description

@vadimkantorov

I need this to set up the report markup (ideally I'd just have <figure id="somematplotlibfigureid" /> in html and then fill them up later) and do the plotting later.

%% py
import numpy as np
import matplotlib.pyplot as plt

%% py
plt.figure('figfoo')
plt.plot(np.arange(10), np.arange(10))
plt.show()
# works

%% py
plt.figure('figbar')
# throws
# <Figure size 640x480 with 0 Axes>
# A value renderer encountered an error.
# TypeError: r.propertyIsEnumerable is not a function
#
#    in t
#    in t
#    in t
#    in t
#    in v
#    in div
#    in Styled(div)
#    in he
#    in qt
#    in div
#    in Styled(div)
#    in div
#    in Styled(div)
#    in bn
#    in jn
#    in p
#    in div
#    in div
#    in div
#    in ir
#    in p
#    in div
#    in u
#    in p
#    in lr
#    in p
#    in t
#    in p
# Please file a bug report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions