Skip to content

Commit

Permalink
Merge 6eeea34 into 8502c2e
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Apr 13, 2020
2 parents 8502c2e + 6eeea34 commit c3bd80d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# Showoff

[![Showoff](http://pkg.julialang.org/badges/Showoff_0.6.svg)](http://pkg.julialang.org/?pkg=Showoff)
[![Showoff](http://pkg.julialang.org/badges/Showoff_0.7.svg)](http://pkg.julialang.org/?pkg=Showoff)
[![Build Status](https://travis-ci.org/JuliaGraphics/Showoff.jl.svg?branch=master)](https://travis-ci.org/JuliaGraphics/Showoff.jl)
[![Coverage Status](https://coveralls.io/repos/github/JuliaGraphics/Showoff.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaGraphics/Showoff.jl?branch=master)

Showoff provides an interface for consistently formatting an array of n things,
e.g. numbers, dates, unitful values. It's used in Gadfly to
e.g. numbers, dates, unitful values. It's used in Gadfly, Plots and Makie to
label axes and keys.

It defines a function called `showoff` that takes an `AbstractArray` of some
type and returns an array of strings of the same length.
type, and returns an array of strings of the same length.

If you want your type to look nice when plotted, just define a `showoff`
function. Here's an example.
Expand All @@ -32,7 +30,7 @@ Now we (and more importantly, Gadfly) can print percentages like:
```julia
map(println, showoff([Percent(100 * rand()) for _ in 1:20]))
```
```
```julia
60.505943%
73.255897%
97.477079%
Expand Down

0 comments on commit c3bd80d

Please sign in to comment.