# \`UnicodePlots\` can't well display on Windows10 command-line interface

**URL:** <https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019>\
**Category:** General Usage\
**Tags:** question, package, plotting, unicodeplots\
**Created:** [January 19, 2024, 4:40pm UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019 "2024-01-19T16:40:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [January 19, 2024, 4:40pm UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019/1 "2024-01-19T16:40:46Z")

</div>

Write the following code in a Julia script and double click it on Win10:

```julia
using UnicodePlots: lineplot, scatterplot, barplot

lineplot(randn(10)) |> display
scatterplot(randn(10)) |> display
barplot([1:10;], rand(10)) |> display

readline()

```

The command-line interface shows:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/4/24a5a2fd195b8a8dd21d54bef31dcb5d81189469.png)

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 19, 2024, 4:47pm UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019/2 "2024-01-19T16:47:29Z")

</div>

Here’s what I see:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/0/906184c77054bc01fb1bc4b18023b0f091b38373.png)

Or to put differently: this is a font issue, not a Windows issue. Make sure to use the Windows Terminal (or some other terminal that’s not cmd, I use [WezTerm](https://wezfurlong.org/wezterm/install/windows.html) and a font that has the glyphs you need (I use [JuliaMono](https://juliamono.netlify.app/download/#windows)).

---

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [January 20, 2024, 4:08am UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019/3 "2024-01-20T04:08:28Z")

</div>

Thanks, that’s really a very nice solution!

But what if I want to send the script to someone else to run? After all, I can’t expect others to use the same terminal and font as me. In other words, how to change the font of the default Windows terminal, especially set it directly using Julia code?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 20, 2024, 6:13am UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019/4 "2024-01-20T06:13:04Z")

</div>

I mean you probably could write a script that downloads and installs WezTerm and JuliaMono and edits the WezTerm conduit file but that’s taking things a little far. Ultimately people have to use reasonably modern setups if they want reasonable unicode display, so the best you can do is probably warn them in advance that they’ll need this.

---

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [January 20, 2024, 6:15am UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019/5 "2024-01-20T06:15:21Z")

</div>

Well, I see. Thanks a lot! 🤝 🤝

---

<div class="post-metadata">

**Author:** ![goerz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerz/32/3269_2.png) [@goerz](https://discourse.julialang.org/u/goerz)\
**Post date:** [January 20, 2024, 6:44am UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019/6 "2024-01-20T06:44:31Z")

</div>

> [@nilshg](#):
>
> a script that downloads and installs WezTerm and JuliaMono and edits the WezTerm conduit file but that’s taking things a little far.

Not just “a little” 😉. If someone sent me a script that started installing and configuring system software, I’d be less than amused. (In fact, I’d consider it malware, despite their possible best intentions).

Please never do anything like that. Just give some helpful instructions in a README on how your user should set up their system.

---

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [January 20, 2024, 3:43pm UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019/7 "2024-01-20T15:43:28Z")

</div>

😀 Thanks for your kind suggestion! 🤝 🤝

---

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [January 20, 2024, 4:49pm UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019/8 "2024-01-20T16:49:41Z")

</div>

> [@nilshg](#):
>
> a font that has the glyphs you need (I use [JuliaMono](https://juliamono.netlify.app/download/#windows)).

I’ve tried to install the `JuliaMono` series fonts and set the font of the Windows’ default command-line interface to be `JuliaMono`, but it still couldn’t display the unicode plots. Must the font be used together with `WezTerm`? Can’t I expect unicode plots to display properly in Windows’ default command line terminal? (Although it works well in vscode)

---

<div class="post-metadata">

**Author:** ![t-bltg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-bltg/32/25526_2.png) [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Post date:** [January 20, 2024, 4:51pm UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019/9 "2024-01-20T16:51:01Z")

</div>

See also [known-issues](https://github.com/JuliaPlots/UnicodePlots.jl#known-issues).

And the related issues:  
[Plots don't look good on windows powershell · Issue #110 · JuliaPlots/UnicodePlots.jl · GitHub](https://github.com/JuliaPlots/UnicodePlots.jl/issues/110), or  
[Default canvas shows question marks only (windows) · Issue #44 · JuliaPlots/UnicodePlots.jl · GitHub](https://github.com/JuliaPlots/UnicodePlots.jl/issues/44).

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 20, 2024, 11:20pm UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019/10 "2024-01-20T23:20:40Z")

</div>

Windows default terminal at least in Windows 10 is pretty horrible, and I think in Win 11 has been replaced by the windows Terminal, which you should probably also use in win 10
