现在的位置: 首页 > 综合 > 正文

matplotlib1.1以上版本没有pyplot模块,为什么?

2019年08月04日 ⁄ 综合 ⁄ 共 2401字 ⁄ 字号 评论关闭

matplotlib1.1.1在SLES11sp1 +python2.6上安装成功后,发现没有matplotlib.pyplot模块,同样matplotlib1.2+python3.3+win7情况一样,现在还不明情况。

---经过多次测试,发现只要调用pyplot( import matplotlib.pyplot as plt ),然后再敲入matplotlib.(tab键)就可以看到pyplot模块了。

bill131:/usr/lib64/python2.6/site-packages # ipython
Python 2.6 (r26:66714, May  5 2010, 14:02:39)
Type "copyright", "credits" or "license" for more information.

IPython 0.12 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import  matplotlib

In [2]: matplotlib.
matplotlib.RcParams               matplotlib.generators             matplotlib.rcParamsOrig
matplotlib.Verbose                matplotlib.get_backend            matplotlib.rc_file_defaults
matplotlib.cbook                  matplotlib.get_configdir          matplotlib.rc_params
matplotlib.checkdep_dvipng        matplotlib.get_data_path          matplotlib.rcdefaults
matplotlib.checkdep_ghostscript   matplotlib.get_example_data       matplotlib.rcsetup
matplotlib.checkdep_inkscape      matplotlib.get_home               matplotlib.re
matplotlib.checkdep_pdftops       matplotlib.get_py2exe_datafiles   matplotlib.s
matplotlib.checkdep_ps_distiller  matplotlib.interactive            matplotlib.shutil
matplotlib.checkdep_tex           matplotlib.is_interactive         matplotlib.subprocess
matplotlib.checkdep_usetex        matplotlib.is_string_like         matplotlib.sys
matplotlib.checkdep_xmllint       matplotlib.key                    matplotlib.tempfile
matplotlib.colors                 matplotlib.major                  matplotlib.test
matplotlib.compare_versions       matplotlib.matplotlib_fname       matplotlib.tk_window_focus
matplotlib.converter              matplotlib.minor1                 matplotlib.tmp
matplotlib.default                matplotlib.minor2                 matplotlib.use
matplotlib.defaultParams          matplotlib.numpy                  matplotlib.validate_backend
matplotlib.default_test_modules   matplotlib.os                     matplotlib.validate_cairo_format
matplotlib.distutils              matplotlib.pyparsing              matplotlib.validate_toolbar
matplotlib.expected_version       matplotlib.rc                     matplotlib.verbose
matplotlib.fontconfig_pattern     matplotlib.rcParams               matplotlib.warnings
matplotlib.found_version          matplotlib.rcParamsDefault       

In [2]: matplotlib.

 

抱歉!评论已关闭.