英文:
fail to display block element correctly in terminal
问题
当我在通过SSH连接的Linux终端中使用plotext
来绘制图形时,我发现它无法正确显示块元素。
以下是我使用的命令:
python3 -c "import plotext as plt; y = plt.sin(); plt.scatter(y); plt.title('Scatter Plot'); plt.show()"
一些块元素,例如▝、▖,显示为问号。
是否有什么办法可以解决这个问题?我的终端设置是TERM=xterm-256color
。
更新
原来是ConEmu的问题。
英文:
When I use plotext
to plot graph in Linux terminial which is connected via ssh, I find that it fails to display block elements correctly.
Here is the command I use
python3 -c "import plotext as plt; y = plt.sin(); plt.scatter(y); plt.title('Scatter Plot'); plt.show()"
Some of the block elements, for examples ▝,▖ are displayed as question mark.
Is there anything I can do to make it right? My terminal setting is TERM=xterm-256color
Update
Turn out to be the problem of ConEmu
答案1
得分: 1
这是翻译好的部分:
"Turn out to be a problem of ConEmu, it can be fixed by the method provided here: https://github.com/Maximus5/ConEmu/issues/1381
- Install DejaVu font family: https://dejavu-fonts.github.io/
- In ConEmu's Setting -> Font page, set both font and alternative font to
DejaVu Sans Mono
"
英文:
Turn out to be a problem of ConEmu, it can be fixed by the method provided here: https://github.com/Maximus5/ConEmu/issues/1381
- Install DejaVu font family: https://dejavu-fonts.github.io/
- In ConEmu's Setting -> Font page, set both font and alternative font to
DejaVu Sans Mono
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论