您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
这篇文章主要介绍“qiime1 matplotlab绘图报错如何解决”,在日常操作中,相信很多人在qiime1 matplotlab绘图报错如何解决问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”qiime1 matplotlab绘图报错如何解决”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!
qiime1 matplotlab绘图报错解决:_tkinter.TclError: no display name and no $DISPLAY environment variable
Command run was: plot_taxa_summary.py -i /share/nas1/huangls/test/ampliseq-q1/16s2/4.Qiime_analysis/taxa_summary_plot/otu_table_no_singletons_rare_sorted_L2.txt,/share/nas1/huangls/test/ampliseq-q1/16s2/4.Qiime_analysis/taxa_summary_plot/otu_table_no_singletons_rare_sorted_L3.txt,/share/nas1/huangls/test/ampliseq-q1/16s2/4.Qiime_analysis/taxa_summary_plot/otu_table_no_singletons_rare_sorted_L4.txt,/share/nas1/huangls/test/ampliseq-q1/16s2/4.Qiime_analysis/taxa_summary_plot/otu_table_no_singletons_rare_sorted_L5.txt,/share/nas1/huangls/test/ampliseq-q1/16s2/4.Qiime_analysis/taxa_summary_plot/otu_table_no_singletons_rare_sorted_L6.txt,/share/nas1/huangls/test/ampliseq-q1/16s2/4.Qiime_analysis/taxa_summary_plot/otu_table_no_singletons_rare_sorted_L7.txt -o /share/nas1/huangls/test/ampliseq-q1/16s2/4.Qiime_analysis/taxa_summary_plot/taxa_summary_plots/ --x_width 8 --chart_type bar --bar_width 0.5 Command returned exit status: 1 Stdout: Stderr Traceback (most recent call last): File "/share/work/biosoft/python/Python-v2.7.11/bin/plot_taxa_summary.py", line 278, in <module> main() File "/share/work/biosoft/python/Python-v2.7.11/bin/plot_taxa_summary.py", line 274, in main resize_nth_label, label_type, include_html_legend) File "/share/work/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/qiime/plot_taxa_summary.py", line 1142, in make_all_charts resize_nth_label, label_type, include_html_legend)) File "/share/work/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/qiime/plot_taxa_summary.py", line 1077, in get_counts label_type, include_html_legend)) File "/share/work/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/qiime/plot_taxa_summary.py", line 865, in make_HTML_table props={'title': title}) File "/share/work/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/qiime/plot_taxa_summary.py", line 470, in make_area_bar_chart fig = figure(figsize=(plot_width, plot_height)) File "/share/work/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/matplotlib/pyplot.py", line 535, in figure **kwargs) File "/share/work/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 81, in new_figure_manager return new_figure_manager_given_figure(num, figure) File "/share/work/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 89, in new_figure_manager_given_figure window = Tk.Tk() File "/share/work/biosoft/python/Python-v2.7.11/lib/python2.7/lib-tk/Tkinter.py", line 1814, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment variable
以上为报错信息,解决办法为设置matplotlib默认绘图输出:
运行以下命令:
mkdir -p ~/.config/matplotlib && echo "backend : Agg" > ~/.config/matplotlib/matplotlibrc
到此,关于“qiime1 matplotlab绘图报错如何解决”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注亿速云网站,小编会继续努力为大家带来更多实用的文章!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。