Aug-17-2022, 09:06 PM
(This post was last modified: Aug-17-2022, 09:06 PM by deanhystad.)
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:
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:
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.
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:
Error:---> 10 m = p(ax(p), ax(q))
And this is what Python thinks the error is:Error:TypeError: 'numpy.ndarray' object is not callable
For indexing use [], not ().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:
Error:---> 11 ax[row, col].plot(x, y, color="green", fontsize=18, ha='center')
And this is what Python thinks the error is:Error:AttributeError: 'Line2D' object has no property 'fontsize'
If you look at the documentation you would see that it does't have a fontsize argument.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.