# Recipes with more inputs

**URL:** <https://discourse.julialang.org/t/recipes-with-more-inputs/22456>\
**Category:** New to Julia\
**Tags:** plots, recipe\
**Created:** [March 28, 2019, 1:27pm UTC](https://discourse.julialang.org/t/recipes-with-more-inputs/22456 "2019-03-28T13:27:17Z")\
**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:** [March 28, 2019, 1:27pm UTC](https://discourse.julialang.org/t/recipes-with-more-inputs/22456/1 "2019-03-28T13:27:18Z")

</div>

```julia
using Pkg
using Plots
using Interact
using RecipesBase

md=0:1:50;
gamma=rand(51,1).+104;
res=rand(51,1).+1300;
sp=rand(51,1).-100;
den=rand(51,1).+2.65
ntr=rand(51,1);

mutable struct omeg
       depth::Array{Float64}
       gammaray::Array{Float64}
        sp::Array{Float64}
        from::Float64
        to::Float64
end

@recipe f(t::omeg) = t.depth, t.gammaray, t.sp, t.from, t.to

@recipe function f(t::omeg)
    layout:= @layout [track1 track2]
   xlim := (t.from,t.to) 
        @series begin
        seriestype := :path
        seriescolor := :green
        subplot := 1
        t.depth, t.gammaray
    end
    
            @series begin
        seriestype := :path
        seriescolor := :red
        subplot := 2
        t.depth, t.sp
    end
    
end 

well1=omeg(md,gamma,sp,5,40)

plot(well1)

```

![aaaaa](https://global.discourse-cdn.com/julialang/original/3X/f/d/fd519854af53bcdb70aaca5bcef3081bc3f0faa4.jpeg)

How could I put some inputs/attributs directly to plot() function. For example modify the x lims like plot(well1,xlim=(10,30))
