Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Mathplotlib grid
-
Hi,
I tried a simple plot via plt.plot and have trouble with plt.grid(True). Result is 'TypeError: bool object is not callable'. Same code works fine on MacOs.
Any hints?
Regards
Tom -
plt.grid = True
__ EDIT: This is wrong. See the correct answer from OMZ below__.
-
It seems likely that you used
plt.grid = True
somewhere, replacing thegrid
method with a boolean value. The easiest would be to restart Pythonista (quit from task switcher) and then useplt.grid(True)
. -
You are absolute correct. My fault. Restarting Pythonista helps. Many thanks!