Aug-17-2022, 10:00 PM
(Aug-17-2022, 09:06 PM)deanhystad Wrote: Try posting your questions one at a time. I have no idea how to answer everything you've asked so far. I don't really understand what you are asking half the time.
Starting with you last edit. Python thinks ax[index] is indexing a value in a list or array and ax(index) is a function call.
This is where Python sees the error:
And this is what Python thinks the error is:
Error:---> 10 m = p(ax(p), ax(q))
For indexing use [], not ().
Error:TypeError: 'numpy.ndarray' object is not callable
In your first attempt at plotting you got an error because you called the plot function with an invalid argument.
This is where Python sees the error:
And this is what Python thinks the error is:
Error:---> 11 ax[row, col].plot(x, y, color="green", fontsize=18, ha='center')
If you look at the documentation you would see that it does't have a fontsize argument.
Error:AttributeError: 'Line2D' object has no property 'fontsize'
https://matplotlib.org/stable/api/_as_ge....plot.html
if you have additional questions please ask them as new posts to this thread. Do not edit your original post.
Sorry I've done exactly what you've said not to do, ask new questions and edited the original post. If you can, can you briefly explain why so I can post better in the future. I don't want a bad reputation and annoy responders.
Thanks.