First time here? Check out the FAQ!
0

autocomplete doesn't work

Hi expert,   

I try below codes, and autocomplete doesn't work.

import matplotlib.pyplot as plt
fig = plt.figure()
fig.add_subplot(2,2,1)

here in the last line, when I type fig.add , wing ide doesn't show the hint for autocompletion (expect it give hint to show add_subplot).

could you please help to comment?

by the way, I use Anaconda 4.4.0 64bits windows. (the project setting is Python Executable : D:\Software\Anaconda2\pythonPython Path: D:\Software\Anaconda2)

Thanks

Louis Liu's avatar
11
Louis Liu
asked 2017-07-31 05:28:00 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2019-03-13 09:42:37 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

In this case Wing's static analyzer is unable to determine the return type of plt.figure() and can't offer autocomplete suggestions.  An option in cases like this is to run to a breakpoint and then add code.  When a debug process is a active, Wing will inspect the runtime state of the debug process and use this information to determine the type of fig.More information on helping Wing analyze code is in the manual at https://wingware.com/doc/edit/helping-wing-analyze-code

Wingware Support's avatar
4k
Wingware Support
answered 2017-07-31 11:03:00 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer