Show函数显示不全的问题
mathematica吧
全部回复
仅看楼主
level 4
N瓶老白干 楼主
import导入excle数据后 用ListLinePlot绘图最后用show函数绘到一个坐标系下图显示不全的问题。代码如下:
A1 = ListLinePlot[Import["D:\\1.xlsx"],
PlotStyle -> {Directive[Thickness[0.0075], Red]},
PlotLegends ->
Placed[LineLegend[{"1"},
LabelStyle -> {{FontFamily -> "Times New Roman", GrayLevel[0]},
Black, 30}], Scaled[{0.69, 0.9}]]];
A2 = ListLinePlot[Import["D:\\2.xlsx"],
PlotStyle -> {Directive[Thickness[0.0075], Blue]},
PlotLegends ->
Placed[LineLegend[{"2"},
LabelStyle -> {{FontFamily -> "Times New Roman", GrayLevel[0]},
Black, 30}], Scaled[{0.69, 0.9}]]];
A3 = ListLinePlot[Import["D:\\3.xlsx"],
PlotStyle -> {Directive[Thickness[0.0075], Green]},
PlotLegends ->
Placed[LineLegend[{"3"},
LabelStyle -> {{FontFamily -> "Times New Roman", GrayLevel[0]},
Black, 30}], Scaled[{0.69, 0.9}]]];
Show[A1, A2, A3, PlotRange -> {0, 25}, AxesLabel -> {"X", "Y"},
AxesStyle -> Directive[Arrowheads[0.025], Black, FontSize -> 30],
PlotLabel -> None,
LabelStyle -> {FontFamily -> "Times New Roman", GrayLevel[0]}]
得到的图为
2022年03月16日 10点03分 1
吧务
level 10
我没数据也无法运行啊。你自己查查是不是plotrange之类的问题
2022年03月18日 02点03分 3
我试了一下 把源文件另存为.xls格式就好了 然后xlsx格式就不行 [泪]原来mma没有出现这情况的啊
2022年03月19日 06点03分
1