如何在Mathematica中的一张图片中绘制几幅图形?

ilo*_*ahz 1 matlab wolfram-mathematica

就像hold on在Matlab中一样.
当我想在一张照片中画几行时,我遇到了这个问题.
线数各不相同.

Dr.*_*ius 9

Mathematica有许多结构,允许您组合图,图形和图像.
我会举几个例子.您可以搜索帮助系统以了解更多信息,并了解以下示例的细微之处:

在此输入图像描述

编辑

如果您想从/向文件读/写,以下代码可以作为入门指南:

(*Create data*)
data = RandomReal[1, {8, 2}];
(*Put into a file*)
Export["c:\\test.tab", data, "Table"];
(*Read the file into another list*)
rdat = Import["c:\\test.tab", "Table"];
(*And Plot it like before*)
Graphics[{Line@#, Red, PointSize[Large], Point /@ #} &@rdat]
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述


sak*_*kra 5

Mathematica 8引入了一种新的通用函数Overlay,可用于以图形方式覆盖任何类型的表达式:

Overlay[{Graphics[{Yellow, Disk[]}], "Sun"}]
Run Code Online (Sandbox Code Playgroud)