10000 Program quit unormally without reporting error · Issue #12545 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Program quit unormally without reporting error #12545
Closed
@SunflowerColor

Description

@SunflowerColor

Bug report

Bug summary

My program is ran correctly with matplotlib2.2.2 ,but it quits unnormally without reporting error when matplotlib is upgrade to 3.0.

Code for reproduction

import matplotlib

matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure

    def createWidgets(self):
        fig = Figure(figsize=(8, 6), dpi=100)
        self.ax_vp = fig.add_subplot(231)
        self.lines_vp, = self.ax_vp.plot([], [])
        self.ax_ip = fig.add_subplot(232)
        self.lines_ip, = self.ax_ip.plot([], [])
        self.ax_pp = fig.add_subplot(233)
        self.lines_pp, = self.ax_pp.plot([], [])
        self.ax_vb = fig.add_subplot(234)
        self.lines_vb, = self.ax_vb.plot([], [])
        self.ax_ib = fig.add_subplot(235)
        self.lines_ib, = self.ax_ib.plot([], [])
        self.ax_pwm = fig.add_subplot(236)
        self.lines_pwm, = self.ax_pwm.plot([], [])
        self.canvas = FigureCanvasTkAgg(fig, master=self)
        self.canvas.get_tk_widget().pack(side=tk.TOP, fill=tk.BOTH, expand=1)
        self.canvas._tkcanvas.pack(side=tk.TOP, fill=tk.BOTH, expand=1)

    def draw(self):
        self.update_draw(self.lines_vp,self.ax_vp,self.datas['Vpv'])
        self.update_draw(self.lines_ip,self.ax_ip,self.datas['Ipv'])
        self.update_draw(self.lines_pp,self.ax_pp,self.datas['Ppv'])
        self.update_draw(self.lines_vb,self.ax_vb,self.datas['Vboost'])
        self.update_draw(self.lines_ib,self.ax_ib,self.datas['Iboost'])
        self.update_draw(self.lines_pwm,self.ax_pwm,self.datas['PWM'])
        self.canvas.draw()

Actual outcome

#this program quit without any outcome

# If applicable, paste the console output here
#
#

Expected outcome

Matplotlib version

  • Operating system:Windows10
  • Matplotlib version: 3.0
  • Matplotlib backend (print(matplotlib.get_backend())):TkAgg
  • Python version:3.5.2
  • Jupyter version (if applicable):
  • Other libraries: pyserial3.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0