# Multiple Axis Plot

**URL:** <https://discourse.julialang.org/t/multiple-axis-plot/25869>\
**Category:** General Usage\
**Created:** [June 30, 2019, 9:31pm UTC](https://discourse.julialang.org/t/multiple-axis-plot/25869 "2019-06-30T21:31:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santiago\_Cuervo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/santiago_cuervo/32/7403_2.png) [@Santiago\_Cuervo](https://discourse.julialang.org/u/Santiago_Cuervo)\
**Post date:** [June 30, 2019, 9:31pm UTC](https://discourse.julialang.org/t/multiple-axis-plot/25869/1 "2019-06-30T21:31:12Z")

</div>

I’m trying to make a recipe for multiple axis plot, but I don’t know how. The twinx() keyword does not work.

Here is the recipe i’m working on.

I’d like to have another one or more axis to visualize this data in a better way

```julia
@userplot espplott

@recipe function f(h::espplott; 
        n=15, stg=false, fq=false)
     Esp, x = h.args
     
   CapRange, HeadRef, EspPower, η, Cone, Stages, Freq = EspPerformance(Esp,ns=n,stgs=stg, fqs=fq)
    
    title := " ESP Performance Curve \n $(Esp.Manufacter) Series $(Esp.Series) Model $(Esp.Model) \n at $(Freq) Hz and $(Stages) Stages"
    titlefontsize := 8
    xlabel := "Liquid Rate [bbl/d]"
    legend := :topright
    
    
  
    @series begin
        seriestype := :path
        linewidth := 2
        linecolor := :blue
        label := "Head"
        ylabel := "Head [ft] & Efficiency [%]"
        CapRange, HeadRef
    end
    
    @series begin
        seriestype := :path
        linewidth := 1 
        linecolor := :black
        label := "Efficiency"
        CapRange, η
    end
            
     @series begin
        seriestype := :vline
        linewidth := 1        
        linestyle := :dash
        linecolor := :red 
        Cone.caps
    end
 #             
      @series begin
        seriestype := :path
        link := :x
        linewidth := 2
        linecolor := :darkgreen
        CapRange,EspPower
    end
    
end

```

![Capture](https://global.discourse-cdn.com/julialang/original/3X/4/1/41eecee6b9ac3ad25e482dff2e323b1c3262f4f4.png)
