title: Render OxyPlot graph in Windows Form
body: <p>I would like to dock an OxyPlot graph in my windows form and graph the function <code>y = 2x - 7</code>. I have downloaded OxyPlot and added the references to my project. I use the following code to add the plot to my form:</p>
  
  <pre><code>public partial class GraphForm : Form
  {
      public OxyPlot.WindowsForms.Plot Plot;
  
      public Graph()
      {
          InitializeComponent();
  
          Plot = new OxyPlot.WindowsForms.Plot();
          Plot.Model = new PlotModel();
          Plot.Dock = DockStyle.Fill;
          this.Controls.Add(Plot);
  
          Plot.Model.PlotType = PlotType.XY;
          Plot.Model.Background = OxyColor.FromRgb(255, 255, 255);
          Plot.Model.TextColor = OxyColor.FromRgb(0, 0, 0);
      }
  }
  </code></pre>
  
  <p>With this code I see the white background, the control has been created, but it's only a white background. I've looked around the members of the <code>OxyPlot.Plot</code> class but I couldn't find a way to plat my equation. How can I plot my equation in the graph?</p>