Open OrbitalMechanic opened 5 years ago
I guess they changed something in python or matplotlib? It used to work. I'll try to take a look when I get a chance.
Taking a deeper dive into the issue I cited, I found on https://stackoverflow.com/questions/34952651/only-integers-slices-ellipsis-numpy-newaxis-none-and-intege that the problem can be caused by expressions such as np.size(t0,1)/4 result in a float type as opposed to an int. So I replaced statement like np.size(t0,1)/4) with int(np.size(t0,1)/4)) (lines 155 thru 158 in pork_chop.py), the program now works.
A text file containing the modified version of pork_chop.py is attached to this note.
Hope this helps. Sam Dupree.
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 https://github.com/cphyc/matplotlib-label-lines/issues/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