溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

qiime1 matplotlab繪圖報錯如何解決

發布時間:2022-03-21 10:31:50 來源:億速云 閱讀:167 作者:iii 欄目:開發技術

這篇文章主要介紹“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繪圖報錯如何解決”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續學習更多相關知識,請繼續關注億速云網站,小編會繼續努力為大家帶來更多實用的文章!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女