# Manipulate plot using solution from Solve [duplicate]

Hi I'm trying to visualize a 2D equation that I have previously solved as I vary a parameter 'b'. First I solve for 'y' in terms of 'x' and 'b', then I intend to use Manipulate.

sol = Solve[y+b==2*x,y]
Manipulate[Plot[y/.sol,{x,-1,1}],{b,-2,2}]


In this simplified example I'm expecting a line of slope 2 to move up and down as I vary 'b' but I just get a blank graph.

## marked as duplicate by Kuba♦ plotting StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Sep 30 '18 at 16:14

This is a tricky. The problem is that the argument b needs to appear explicitly in the Manipulate expression. One solution, perhaps not simplest, is as follows
sol = Solve[y + b == 2*x, y]