Search code examples
juliaplots.jl

How to draw a 'proportion graph' in Julia?


Here is an example of what I am looking for:

example proportion plot

I've looked at all of the examples in the documentation and could not find a similar graph. Any help would be appreciated.


Solution

  • Following @sanidhya-singh's link also gives a built-in solution:

    julia> areaplot(1:3, [1 2 3; 7 8 9; 4 5 6], seriescolor = [:red :green :blue], fillalpha = [0.2 0.3 0.4])
    

    which gives

    enter image description here

    Maybe worth adding to the docs though!


    [EDIT] This example has been added to the Plots.jl docs