I have four data sets in the form {f(x),x} as, data1, data2, data3, data4.
Now, I am trying to plot the four datasets using ListLinePlot
. But I'm not able to get the desired result
ListPlot[{data1, data2, data3, data4}, AxesOrigin -> {0, 0},PlotStyle -> {Red,Blue,Orange,Brown},
PlotTheme -> "Detailed", LabelStyle -> Directive[Large, Plain, 24],
Frame -> {{True, False}, {True, False}},
FrameLabel -> {Style["x", 24, Plain, Black],
Style["f(x)", 24, Plain, Black]}, ImageSize -> {850, 550},
InterpolationOrder -> 2]
I wanted some of the curves to be dashed and some dotted, tried using Directive
, didn't know how to make it work.
Is there a way to show PlotExpression
(I tried it as well, didn't work), for e.g. red curve means Δ = 0
. Similarly, blue means Δ = -0.5
, brown means Δ = +0.5
, yellow means Δ =+1
. Kind of a research paper style on the right side of the figure?
Even AxesOrigin
didn't work here, I wanted to be at {0,0}
? Surely, I'm missing something.
Dashed
,Dotted
inside PlotStyle:PlotStyle -> {{Dashed,Red},{Dotted,Blue},Orange,Brown}
$\endgroup$PlotLegends -> {"\[CapitalDelta] = 0", "\[CapitalDelta] = -0.5", "\[CapitalDelta] = 0.5", "\[CapitalDelta] = 1.0" }
$\endgroup$PlotStyle
is not working, because these are not smooth curves but data points maybe? $\endgroup$Legend
. Can we have a thick color strip instead of a dot? dot is just too small $\endgroup$PlotLegends ->LineLegend[ {"\[CapitalDelta] = 0", "\[CapitalDelta] = -0.5", "\[CapitalDelta] = 0.5", "\[CapitalDelta] = 1.0" }]
$\endgroup$