Problem with matplotlib.pyplot
Hi all,
I am using Ubuntu 16.04 and Yade-daily package.
I got this problem when I run a simple "plot":
a=[1,2,3]
b=[2,3,4]
import matplotlib.pyplot as plt
plt.plot(a,b)
-------
IndexError Traceback (most recent call last)
/home/son/
2 b=[2,3,4]
3 import matplotlib.pyplot as plt
----> 4 plt.plot(a,b)
/usr/lib/
2978 @_autogen_
2979 def plot(*args, **kwargs):
-> 2980 ax = gca()
2981 # allow callers to override the hold state by passing hold=True|False
2982 washold = ax.ishold()
/usr/lib/
801 """
802
--> 803 ax = gcf().gca(**kwargs)
804 return ax
805
/usr/lib/
448 return figManager.
449 else:
--> 450 return figure()
451
452 fignum_exists = _pylab_
/usr/lib/
421 frameon=frameon,
422 FigureClass=
--> 423 **kwargs)
424
425 if figLabel:
/usr/lib/
77 FigureClass = kwargs.
78 figure = FigureClass(*args, **kwargs)
---> 79 return new_figure_
80
81
/usr/lib/
85 """
86 _focus = windowing.
---> 87 window = Tk.Tk()
88 window.withdraw()
89
/usr/lib/
1760 if baseName is None:
1761 import os
-> 1762 baseName = os.path.
1763 baseName, ext = os.path.
1764 if ext not in ('.py', '.pyc', '.pyo'):
IndexError: list index out of range
Any help is greatly appreciate!
Thank you :)
Son.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
Can you help with this problem?
Provide an answer of your own, or ask Son Pham Thai for more information if necessary.