8000 units with matplotlib 1.3.1 · Issue #245 · brian-team/brian2 · GitHub
[go: up one dir, main page]

Skip to content
units with matplotlib 1.3.1 #245
@thesamovar

Description

@thesamovar

Plotting an array with units causes matplotlib to go into an infinite recursion.

A workaround is to plot without units, using any of these three options, shown for a StateMonitor:

plot(mon.t_, mon.v_)  # unitless values
plot(mon.t/ms, mon.v/mV)  # divide by units
plot(np.asarray(mon.t), np.asarray(mon.v))  # explicit conversion to numpy array

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0