In [83]:
using Gadfly
using Interact
Make pretty Gadfly theme
In [84]:
plot_theme = Theme(line_width=1mm,
default_color=color("green"),
panel_fill=color("lightgray"),
grid_color=color("white"));
In [85]:
P = linspace(0, 1, 200)
@manipulate for K = .1:.1:100, M = 1.:.1:3.
plot(x=P, y=M*K*P./(1+K*P),
Geom.line,
Scale.y_continuous(maxvalue=3), Scale.x_continuous(maxvalue=1),
Guide.xlabel("P (bar)"), Guide.ylabel("N (mmol/g)"),
Guide.title("Langmuir isotherm"),
plot_theme
)
end
Out[85]: