I have four datasets (dataA, dataB, dataC, dataD), out of which two have the same plot range of X axis and rest two have different range of X axis.
Here is the code:
In(19):= dataA = {{0, 80}, {0.01, 40}, {0.02, 20}, {0.05, 10}};
In(20):= dataB = {{0, 80}, {0.01, 65}, {0.05, 10}, {0.1, 12}, {0.2,
020}, {0.3, 25}, {0.375, 51}};
In(21):= dataC = {{0, 80}, {0.5, 65}, {010, 89}, {50, 110}, {100,
121}, {300, 135}};
In(22):= dataD = {{0, 80}, {30, 200}, {150, 350}, {300, 470}};
In(29):= Plot1 =
ListPlot({dataA, dataB}, PlotRange -> Automatic,
PlotMarkers -> {(FilledCircle), (FilledDownTriangle)},
PlotStyle -> {Blue, Green})
Out(29)= !(*
GraphicsBox({{}, GraphicsComplexBox(CompressedData("
1:eJxTTMoPSmViYGAQA2IQjQpCHKpF1rk/rGqxh/BdoPwpUL6Jw6yZILASyldx
wKvfIQBDPYS/E8rXgPJPws03BoPLUL4l1PwbEH6DJ377BqF7AT03Tuo=
"), {
{RGBColor(0, 0, 1), InsetBox("(FilledCircle)", 12),
InsetBox("(FilledCircle)", 13),
InsetBox("(FilledCircle)", 14),
InsetBox("(FilledCircle)", 15)},
{RGBColor(0, 1, 0), InsetBox("(FilledDownTriangle)", 16),
InsetBox("(FilledDownTriangle)", 17),
InsetBox("(FilledDownTriangle)", 18),
InsetBox("(FilledDownTriangle)", 19),
InsetBox("(FilledDownTriangle)", 20),
InsetBox("(FilledDownTriangle)", 21),
InsetBox("(FilledDownTriangle)", 22)}, {}}), {}},
AspectRatio->0.6180339887498948,
Axes->True,
AxesLabel->{None, None},
AxesOrigin->{0, 0},
Method->{},
PlotRange->{{0, 0.375}, {0, 80.}},
PlotRangeClipping->True,
PlotRangePadding->{{0.0075, 0.0075}, {1.6, 1.6}}))
In(32):= Plot2 =
ListPlot({dataC, dataD}, PlotRange -> Automatic,
PlotMarkers -> {(FilledUpTriangle), (FilledSquare)},
PlotStyle -> {Gray, Red})
Out(32)= !(*
GraphicsBox({{}, GraphicsComplexBox(CompressedData("
1:eJxTTMoPSmViYGAQAWIQjQpCHCD0A3sw5RAA5atAaIcwKN8TQjdEQ/mRUPk4
CH2gCEI/SHDAbr4dlM6Eqk+Cqi9F1Z9Qi0P/4HEfANeZI9g=
"), {
{GrayLevel(0.5), InsetBox("(FilledUpTriangle)", 11),
InsetBox("(FilledUpTriangle)", 12),
InsetBox("(FilledUpTriangle)", 13),
InsetBox("(FilledUpTriangle)", 14),
InsetBox("(FilledUpTriangle)", 15),
InsetBox("(FilledUpTriangle)", 16)},
{RGBColor(1, 0, 0), InsetBox("(FilledSquare)", 17),
InsetBox("(FilledSquare)", 18),
InsetBox("(FilledSquare)", 19),
InsetBox("(FilledSquare)", 20)}, {}}), {}},
AspectRatio->0.6180339887498948,
Axes->True,
AxesLabel->{None, None},
AxesOrigin->{0, 0},
Method->{},
PlotRange->{{0, 300.}, {0, 470.}},
PlotRangeClipping->True,
PlotRangePadding->{{6., 6.}, {9.4, 9.4}}))
In(34):= Show(Plot2, Plot1)
Out(34)= !(*
GraphicsBox({{{}, GraphicsComplexBox(CompressedData("
1:eJxTTMoPSmViYGAQAWIQjQpCHCD0A3sw5RAA5atAaIcwKN8TQjdEQ/mRUPk4
CH2gCEI/SHDAbr4dlM6Eqk+Cqi9F1Z9Qi0P/4HEfANeZI9g=
"), {
{GrayLevel(0.5), InsetBox("(FilledUpTriangle)", 11),
InsetBox("(FilledUpTriangle)", 12),
InsetBox("(FilledUpTriangle)", 13),
InsetBox("(FilledUpTriangle)", 14),
InsetBox("(FilledUpTriangle)", 15),
InsetBox("(FilledUpTriangle)", 16)},
{RGBColor(1, 0, 0), InsetBox("(FilledSquare)", 17),
InsetBox("(FilledSquare)", 18),
InsetBox("(FilledSquare)", 19),
InsetBox("(FilledSquare)", 20)}, {}}), {}}, {{},
GraphicsComplexBox(CompressedData("
1:eJxTTMoPSmViYGAQA2IQjQpCHKpF1rk/rGqxh/BdoPwpUL6Jw6yZILASyldx
wKvfIQBDPYS/E8rXgPJPws03BoPLUL4l1PwbEH6DJ377BqF7AT03Tuo=
"), {
{RGBColor(0, 0, 1), InsetBox("(FilledCircle)", 12),
InsetBox("(FilledCircle)", 13),
InsetBox("(FilledCircle)", 14),
InsetBox("(FilledCircle)", 15)},
{RGBColor(0, 1, 0), InsetBox("(FilledDownTriangle)", 16),
InsetBox("(FilledDownTriangle)", 17),
InsetBox("(FilledDownTriangle)", 18),
InsetBox("(FilledDownTriangle)", 19),
InsetBox("(FilledDownTriangle)", 20),
InsetBox("(FilledDownTriangle)", 21),
InsetBox("(FilledDownTriangle)", 22)}, {}}), {}}},
AspectRatio->0.6180339887498948,
Axes->True,
AxesLabel->{None, None},
AxesOrigin->{0, 0},
Method->{},
PlotRange->{{0, 300.}, {0, 470.}},
PlotRangeClipping->True,
PlotRangePadding->{{6., 6.}, {9.4, 9.4}}))
Now when I merge both plots (Plot1 and Plot2 by using Show) some data sets are not visualised, Data points of plot1 are showing just like a point, I understand that I need to break X axis, but I could not do it in mathematica.
Any help will be great for me, i am using mathematica 9.