如何解决Gnuplot:多个窗口中的多个图
我想绘制与同一文件的不同数据列相关的多个图,但我想要每个图都有一个新窗口。我不想要与命令 import { Collapse } from 'antd';
const { Panel } = Collapse;
const text = `
A dog is a type of domesticated animal.
Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.
`;
ReactDOM.render(
<Collapse accordion defaultActiveKey={['1']}>
<Panel header="This is panel header 1" key="1">
<p>{text}</p>
</Panel>
<Panel header="This is panel header 2" key="2">
<p>{text}</p>
</Panel>
<Panel header="This is panel header 3" key="3">
<p>{text}</p>
</Panel>
</Collapse>,mountNode,);
关联的附加图。
这个想法由以下伪代码表示:
set multiplot layout 1,2
解决方法
您没有写下您使用的是哪个终端。我知道您想要两个相邻的窗口,而不是两个图形作为磁盘上的文件。在 gnuplot 控制台中检查例如:help wxt
。如果您想要磁盘上的两个文件,您必须选择另一个终端,例如
set term pngcairo
set output 'myOutput1.png'
plot x
set output 'myOutput2.png'
plot x**2
set output
因此,对于交互式 wxt 终端,以下对我有用:
代码:
### several terminals
reset session
set term wxt 1 size 500,400
plot sin(x)
set term wxt 2 size 500,300
plot cos(x)
set term wxt 3 size 300,200
plot x**2
### end of code
结果:
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。