Technology moves fast! ⚡ Don't get left behind.🚶 Subscribe to our mailing list to keep up with latest and greatest in open source projects! 🏆


Subscribe to our mailing list

ASCIIPlots.jl

Generate simple plots as ASCII art in Julia

Subscribe to updates I use ASCIIPlots.jl


Statistics on ASCIIPlots.jl

Number of watchers on Github 31
Number of open issues 2
Average time to close an issue 3 days
Main language Julia
Average time to merge a PR 2 days
Open pull requests 1+
Closed pull requests 1+
Last commit almost 4 years ago
Repo Created almost 6 years ago
Repo Last Updated almost 2 years ago
Size 137 KB
Organization / Authorjohnmyleswhite
Contributors5
Page Updated
Do you use ASCIIPlots.jl? Leave a review!
View open issues (2)
View ASCIIPlots.jl activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating ASCIIPlots.jl for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

ASCIIPlots.jl

Generate basic plots in Julia as ASCII art in the Julia REPL. This is based on code by Billou Bielour.

Usage Examples

We'll start with imagesc:

using ASCIIPlots

A = eye(10)
imagesc(A)

This evaluates to,

julia> imagesc(A)


    @#                  
      @#                
        @#              
          @#            
            @#          
              @#        
                @#      
                  @#    
                    @#  
                      @#

Then we'll change the data a bit and replot it:

A[10, 1] = 1
A[1, 10] = 1
imagesc(A)

This evaluates to,

julia> imagesc(A)


    @#                @#
      @#                
        @#              
          @#            
            @#          
              @#        
                @#      
                  @#    
                    @#  
    @#                @#

Now we'll make a lineplot and a scatterplot:

x = 2 * pi * rand(30)
y = sin(x) + 0.1 * randn(30)

lineplot(x, y)

This evaluates to,

julia> lineplot(x, y)

    -------------------------------------------------------------
    |             \                                              | 1.01
    |         \/                                                 |
    |          /                                                 |
    |     /  /                                                   |
    |                                                            |
    |  /                                                         |
    |                                                            |
    |                                                            |
    |/                                                           |
    |                                                            |
    |                                                          \ |
    |                               \                        \  \|
    |                              -                          /  |
    |                                                            |
    |                                   \                 /      |
    |                                    \               /       |
    |                                     \           /\         |
    |                                                   /        |
    |                                         -  \ /             |
    |                                      /       /             | -1.16
    -------------------------------------------------------------
    0.13                                                    6.19

Then we'll do a scatterplot:

scatterplot(x, y)

This evaluates to,

julia> scatterplot(x, y)

    -------------------------------------------------------------
    |             ^                                              | 1.01
    |         ^^                                                 |
    |          ^                                                 |
    |     ^  ^                                                   |
    |                                                            |
    |  ^                                                         |
    |                                                            |
    |                                                            |
    |^                                                           |
    |                                                            |
    |                                                          ^ |
    |                               ^                        ^  ^|
    |                              ^                          ^  |
    |                                                            |
    |                                   ^                 ^      |
    |                                    ^               ^       |
    |                                     ^           ^^         |
    |                                                   ^        |
    |                                         ^  ^ ^             |
    |                                      ^       ^             | -1.16
    -------------------------------------------------------------
    0.13                                                    6.19

We can control the glyph being used:

scatterplot(x, y, sym = '*')

This evaluates to,

julia> scatterplot(x, y, sym = '*')

    -------------------------------------------------------------
    |             *                                              | 1.01
    |         **                                                 |
    |          *                                                 |
    |     *  *                                                   |
    |                                                            |
    |  *                                                         |
    |                                                            |
    |                                                            |
    |*                                                           |
    |                                                            |
    |                                                          * |
    |                               *                        *  *|
    |                              *                          *  |
    |                                                            |
    |                                   *                 *      |
    |                                    *               *       |
    |                                     *           **         |
    |                                                   *        |
    |                                         *  * *             |
    |                                      *       *             | -1.16
    -------------------------------------------------------------
    0.13                                                    6.19
ASCIIPlots.jl open issues Ask a question     (View All Issues)
  • almost 4 years limits
  • almost 4 years Update to v 0.4
ASCIIPlots.jl open pull requests (View All Pulls)
  • replace deprecated ifloor(x) with floor(Int, x)
ASCIIPlots.jl list of languages used
Other projects in Julia