You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to run the pork_chop.py test. I'm running Python 3.7.3 and Matplotlib 3.1.1 in the current Anaconda distribution.
Now the first issue encountered had to do with the removal of get_axes() from Matplolib. Commit 9288ba8 referenced in cphyc/matplotlib-label-lines#1 showed me that replacing line.get_axes() with line.axes would solve that problem, and it did. A copy of the modified code has been attached to this note. Now I have a different problem.
Presently, when I run pork_chop.py I get the following error message.
(base) Samuels-Mac-Pro:pork_chop user$ python3 pork_chop.py
Traceback (most recent call last):
File "pork_chop.py", line 229, in <module>
draw_all_flight_time_lines()
File "pork_chop.py", line 155, in draw_all_flight_time_lines
draw_flight_time_line(t0[:,np.size(t0,1)/4],tf[:,np.size(t0,1)/4],'r')
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
(base) Samuels-Mac-Pro:pork_chop user$ python3
Note: in their infinite wisdom, matplotlib also changed their reference epoch in 3.3, so that would also need to be updated, or the dates on the axes will be wrong.
I am attempting to run the pork_chop.py test. I'm running Python 3.7.3 and Matplotlib 3.1.1 in the current Anaconda distribution.
Now the first issue encountered had to do with the removal of get_axes() from Matplolib. Commit 9288ba8 referenced in cphyc/matplotlib-label-lines#1 showed me that replacing line.get_axes() with line.axes would solve that problem, and it did. A copy of the modified code has been attached to this note. Now I have a different problem.
Presently, when I run pork_chop.py I get the following error message.
Any suggestions?
Please advise.
Sam Dupree.
pork_chop.py.txt
The text was updated successfully, but these errors were encountered: