I am trying to plot 3 sets of points. For example consider
Xfinal={{79.7752, -4.5745}, {79.7752, -4.57458}, {79.7751, -4.57453},
{79.8622, -4.36018}, {79.8621, -4.36023}, {79.8623, -4.36031},
{79.5962, -4.39891}, {79.5962, -4.39893}, {79.5962, -4.3989}}
I am making it into three sets:
Xfinala = Xfinal[[1 ;; 3, All]]
Xfinalb = Xfinal[[4 ;; 6, All]]
Xfinalc = Xfinal[[7 ;; 9, All]]
I am using the following commands to plot:
Plotx = ListPlot[Xfinala, PlotStyle -> {Thick, Red}]
Ploty = ListPlot[Xfinalb, PlotStyle -> {Thick, Green}]
Plotz = ListPlot[Xfinalc, PlotStyle -> {Thick, Blue}]
Plot1 = Show[Plotx, Ploty, Plotz]
Further, let
βa={-157.767, 1.42204, -9.90731}
βb={-649.437, 7.96711, -3.24825}
Now I am trying to plot the following lines together with points using the following codes:
Plotsvma =
Plot[-(1/βa[[2]])*(βa[[2]]*x + βa[[1]]) , {x, -10, 10}]
Plotsvmb =
Plot[-(1/βb[[3]])*(βb[[2]]*x + βb[[1]]) , {x, -10, 10}]
and finally:
Plotx = Show[Plot1, Plotsvma , Plotsvmb ]
But it is not displaying all the plots... Am I doing something wrong?
PlotRange->All
toShow
. $\endgroup$ – kglr Jul 22 '18 at 8:52Plot
s andListPlot
s all three points overlap in the output ofShow
. $\endgroup$ – kglr Jul 22 '18 at 8:53