Skip to content

matplotlib dynamic plotting #7759

Closed
Closed
@MpCamp

Description

@MpCamp

Hi, after computer change, matplotlib don't work dynamically.
Before, it was able to update the figure at each iteration of a loop. Today only the last data are plotted.
Configuration :
HP zBook 15 G3 with NVidia Quadro

###Bug report

Bug summary

A figure inside a loop are not updated at each step

Code for reproduction

import matplotlib.pyplot as plt
import numpy as np

x = np.arange(128)
plt.figure(1)
plt.ion()
plt.hold(False)
for it in range(5):
    plt.plot(x, x+it)
    plt.draw()

plt.ioff()
plt.show()

Expected outcome

  • I expect to see one plot at each step of the for loop

Matplotlib version
1.5.1

Python version
3.5.2

OS
Ubuntu 16.04 LTS

  • All of them had been installed from Ubuntu repository using synaptic

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