您好,登錄后才能下訂單哦!
這篇文章主要介紹“qiime1 matplotlab繪圖報錯如何解決”,在日常操作中,相信很多人在qiime1 matplotlab繪圖報錯如何解決問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”qiime1 matplotlab繪圖報錯如何解決”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!
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
以上為報錯信息,解決辦法為設(shè)置matplotlib默認(rèn)繪圖輸出:
運(yùn)行以下命令:
mkdir -p ~/.config/matplotlib && echo "backend : Agg" > ~/.config/matplotlib/matplotlibrc
到此,關(guān)于“qiime1 matplotlab繪圖報錯如何解決”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注億速云網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬?shí)用的文章!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。