Code Monkey home page Code Monkey logo

Comments (10)

Evizero avatar Evizero commented on May 18, 2024

Thanks for posting.

Well, the BrailleCanvas (which is the default canvas) is a hit or miss thing. The utilized Unicode characters are not widely supported and if they are they are treated very differently from application to application and font to font (even in Linux).

I'm not a windows user, so the best suggestion I can offer is to use a canvas that works for you. Both the AsciiCanvas and the DotCanvas use only ASCII characters, so they should more or less always work. There is also the BlockCanvas, which is Unicode-based, but might be more visually pleasing.

One thing I could do is introduce a way to overwrite the default.

from unicodeplots.jl.

Evizero avatar Evizero commented on May 18, 2024

One thing you could try to make the BrailleCanvas work is change the font (if cmd has such an option)

from unicodeplots.jl.

mmagnuski avatar mmagnuski commented on May 18, 2024

I tried changing the font (tested all three (!) font options) but all fonts gave some sort of question-mark-plot. BlockCanvas doesn't display well too.
Well, just another reason to stop using Windows 😬
A way to overwrite the default canvas would be very nice! 😀

from unicodeplots.jl.

tkelman avatar tkelman commented on May 18, 2024

You can try starting Julia inside mintty, see JuliaLang/julia#7267 (comment)

mintty has better unicode support by default, and a better selection of fonts you can change to. deja vu sans mono has reasonable unicode coverage.

from unicodeplots.jl.

mmagnuski avatar mmagnuski commented on May 18, 2024

I've had some troubles running mintty and starting Julia under Cygwin gives me errors:

stty: standard input: Inappropriate ioctl for device
ERROR: failed process: Process(`stty raw -echo onlcr -ocrnl opost`, ProcessExited(1)) [1]
 in pipeline_error at process.jl:555

But I came back to cmder (I have downloaded the mini version hoping it will be faster than full cmder) and the plots work beautifully now!

from unicodeplots.jl.

tkelman avatar tkelman commented on May 18, 2024

That should be fixed in 0.4.2.

from unicodeplots.jl.

mmagnuski avatar mmagnuski commented on May 18, 2024

Oh, I didn't notice that you've released 0.4.2 already, cool!

from unicodeplots.jl.

Evizero avatar Evizero commented on May 18, 2024

But I came back to cmder (I have downloaded the mini version hoping it will be faster than full cmder) and the plots work beautifully now!

Could you give a brief summary what exactly you did to fix the problem for you? So that the next person is saved the troubles of figuring it out by him/herself. Was it a specific version of cmder/mintty that you downloaded?

from unicodeplots.jl.

mmagnuski avatar mmagnuski commented on May 18, 2024

I don't think it is because of a specific version of cmder - I didn't use Julia from cmder before, because cmder can be horribly slow sometimes (waiting a few seconds for results of ls). So I'd say that generally cmder works well with UnicodePlots.
Concerning mintty - can't say much too; I downloaded mintty and Cygwin but mintty didn't seem to see cygwin on my machine so I went on to cmder.

from unicodeplots.jl.

Evizero avatar Evizero commented on May 18, 2024

Thanks! I'll leave this issue open for a bit for others to see

from unicodeplots.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.