0
I’m learning to program in Python and is recurring in the following situation (this occurs in FDI pycharm, Atom and Spyder):
I imported the matplotlib
as follows:
import matplotlib.pyplot as plt
When I type: plt.
opens a window containing all the methods I can invoke. Then I select plt.axes()
. Type plt.axes()
no window is displayed with the methods I can call.
In the book I’m using it executes the command:
plt.axes().get_xaxis().set_visible(False)
I don’t understand why there is no window displaying the methods as shown above.
How to resolve such a situation?
You know which version of python the book is using ?
– Wictor Chaves
This is not only in Python, Ides in general do not give suggestions to return a function, basically because a lot can happen in a function and return numerous values or none. Chrome Devtools did not give feedback suggestions, but recently this has changed, now when you write on the JS console, for example,
document.body.getElementById('el')
and existing this element already has suggestions such asinnerHTML
,value
, etc.– Costamilam
I removed my answer as I misinterpreted the question.
– Wictor Chaves
It uses python version 3. So from what I understand it’s normal for the IDE to behave like this?
– Flavio Souza