首页 > 其他分享 >Saving your Plot: Stylesheets and Layouts (STY, LAY, LPK)

Saving your Plot: Stylesheets and Layouts (STY, LAY, LPK)

时间:2023-08-26 15:33:22浏览次数:34  
标签:Plot style Saving frame Tecplot LAY file data STY

Description

We describe the uses and differences between Tecplot 360’s three different methods for saving the style and settings of your plot. These include stylesheets (STY files) linked data layouts (LAY files) and packaged data layouts (LPK files).

The Tecplot 360 stylesheet file type represents the style of your dataset in an individual Tecplot frame and has no link to any data. Stylesheets are useful if you want to apply a specific style to very similar data sets.

Whereas, a Tecplot linked layout file represents the style of ALL frames and ALL pages, including instructions and paths to retrieve and load the data. Use these when the layouts will always be near your data.

Finally, a Tecplot packaged layout file saves the same style settings except that a complete copy of the data is embedded in the file. This is good for sharing, but produces a larger file size as you are saving the data separately from the original data files.

To demonstrate how to use the style file and the two layout file options, we will be using two different data sets.

  1. Open the first data set file, zoom in on the area of interest, and do some quick style changes to the plot with the right click context menu. Once satisfied with the changes, Select Frame > Save frame style to save the style of this frame.
  2. Select the create frame tool to create a new frame and load in a new data set. Apply the stylesheet saved earlier to this new frame. Do this by going into Frame > Load frame style and selecting the STY file. Tile the frames so they can be seen together in a non-overlapping view. Notice how the angle and length of the contour differs by a slight amount in each frame.
  3. Comparing two data sets using the same stylesheet allows you to see subtle differences in your results.
  4. Now that there are two separate frames, a stylesheet will no longer capture the style of the entire workspace. For this, you’ll need to use a Layout file. Select File > Save Layout As. You will see the option to save as a Linked Data (*.lay) layout, or a Packaged Data (*.lpk) layout.
  5. For now, save as a Linked LAY file and open it in a text editor. For the Linked Data LAY file type, notice how the original data sets are referenced at the beginning of the file, and the commands to set up the Plots and Layout follow. This is different than the Packaged Data LPK file type, which contains copies of the original data sets as binary data, preceded by the Layout commands.

翻译:

说明
我们将介绍 Tecplot 360 保存绘图样式和设置的三种不同方法的用途和区别。这些方法包括样式表(STY 文件)、链接数据布局(LAY 文件)和打包数据布局(LPK 文件)。

Tecplot 360 样式表文件类型代表数据集在单个 Tecplot frame 中的样式,与任何数据都没有链接。如果要将特定样式应用于非常相似的数据集,Stylesheets就非常有用。

而 Tecplot 链接布局文件则代表ALL frames 和 ALL pages的样式,包括检索和加载数据的说明和路径。当布局总是靠近数据时,就可以使用这些布局文件。

最后,Tecplot 打包布局文件保存了相同的样式设置,但文件中嵌入了数据的完整副本。这有利于共享,但由于要将数据与原始数据文件分开保存,因此文件大小较大。

为了演示如何使用样式文件和两个布局文件选项,我们将使用两个不同的数据集。

  1. 打开第一个数据集文件,放大感兴趣的区域,然后使用右键右键菜单快速更改绘图样式。对更改满意后,选择 Frame > Save frame style 保存该框架的样式。
  2. 选择 "创建框架 "工具创建一个新框架,并载入一个新数据集。将之前保存的样式表应用到新框架中。方法是进入 Frame > Load frame style 并选择 STY file。将帧平铺在一起,这样就可以在不重叠的视图中看到它们。请注意每个帧中轮廓的角度和长度都略有不同。
  3. 使用相同的样式表比较两个数据集,可以看到结果的细微差别。
  4. 现在有了两个独立的帧,样式表就不能再捕捉整个工作区的样式了。为此,你需要使用布局文件。选择 File > Save Layout As。你会看到保存为Linked Data (*.lay) layout或Packaged Data (*.lpk) layout的选项。
  5. 现在,请将其保存为Linked LAY 文件,然后在文本编辑器中打开。对于Linked Data LAY 文件类型,请注意原始数据集是如何在文件开头被引用的,以及后面设置Plots 和 Layout的命令。这与Packaged Data LPK 文件类型不同,后者包含原始数据集的二进制数据副本,前面是Layout命令。

标签:Plot,style,Saving,frame,Tecplot,LAY,file,data,STY
From: https://www.cnblogs.com/swfu-cowboy/p/17658841.html

相关文章

  • openresty中几种重定向的差异比较(ngx.redirect、ngx.req.set_uri、ngx.exec)
    一.测试用的nginx.conf: userroot;worker_processes1;error_loglogs/error.log;events{worker_connections1024;}http{charsetutf-8;default_typeapplication/octet-stream; include/usr/local/openresty/nginx/conf/mime.typ......
  • Matplotlib Pyplot
    MatplotlibPyplotPyplot是Matplotlib的子库,提供了和MATLAB类似的绘图API。Pyplot是常用的绘图模块,能很方便让用户绘制2D图表。Pyplot包含一系列绘图函数的相关函数,每个函数会对当前的图像进行一些修改,例如:给图像加上标记,生新的图像,在图像中产生新的绘图区域等等。使用......
  • Nginx内置lua版OpenResty拦截转发请求Redis等操作
    Nginx内置lua版OpenResty拦截转发请求Redis等操作1下载并安装OpenRestyhttp://openresty.org/cn/download.html2下载lua-resty-http-0.17.1库以让openresty的lua支持外部http访问能力lua-resty-http-0.17.11下载lua-resty-http-0.17.12然后将文件中lua-resty-http......
  • Docker 安装 OpenResty教程
    Docker部署1.拉取镜像PSC:\Users\Administrator>dockerpullopenresty/openresty2.启动openrestyPSC:\Users\Administrator>dockerrun-d--nameopenresty-p9000:80openresty/openresty3.创建挂载目录PSC:\Users\Administrator>mkdir-p/docker/openre......
  • Matplotlib 轴标签和标题
    Matplotlib轴标签和标题设置轴标签和标题时,如果使用中文,可能会出现乱码情况,可以使用以下两行代码解决plt.rcParams['font.sans-serif']=[u'SimHei']#SimHei就是中文字体#因为设置了中文后,负号就乱码了,所以还要设置负号的编码plt.rcParams['axes.unicode_minus']=False#......
  • Matplotlib 网格线
    Matplotlib网格线我们可以使用pyplot中的grid()方法来设置图表中的网格线。grid()方法语法格式如下:matplotlib.pyplot.grid(b=None,which='major',axis='both',)b:可选,默认为None,可以设置布尔值,true为显示网格线,false为不显示,如果设置**kwargs参数,则值为true。which:......
  • Python matplotlib.axes对象常用属性(绘图方式、坐标轴、刻度等)
    目录一、绘图方式1.1基本绘图方式1.2跨度、频谱、填充、2D数组的绘图方式Axes类可以设置图片(或子图)中相关属性:绘图数据、坐标轴刻度/标签、标题、图例等。它是Python操作绘图的主要接口。Matplotlib定义了一个axes类(轴域类),在一个给定的画布(figure)中可以包含多个axes对象,但是同......
  • Matplotlib 绘制多图
    Matplotlib绘制多图我们可以使用pyplot中的subplot()和subplots()方法来绘制多个子图。subplot()方法在绘图时需要指定位置,subplots()方法可以一次生成多个,在调用时只需要调用生成对象的ax即可。1、subplotsubplot(nrows,ncols,index,**kwargs)subplot(pos,**kwar......
  • Matplotlib 散点图、柱形图、饼图绘制
    1、Matplotlib散点图我们可以使用pyplot中的scatter()方法来绘制散点图。scatter()方法语法格式如下:matplotlib.pyplot.scatter(x,y,s=None,c=None,marker=None,cmap=None,norm=None,vmin=None,vmax=None,alpha=None,linewidths=None,*,edgecolors=None,plot......
  • Python通过matplotlib包和gif包生成gif动画
    ✅作者简介:热爱科研的算法开发者,Python、Matlab项目可交流、沟通、学习。......