안녕!
플롯을 SVG 형식으로 저장해야 합니다. 불행하게도 저는 종종 많은 양의 플롯을 생성해야 하므로 GUI 접근 방식을 사용하는 대안이 아닙니다. JSL에는 사진 저장 기능이 있습니다.
db<<SAVE picture=""></SAVE>
그러나 JSL Syntax Reference에 따르면 PDF, PNG, GIF, JPG 및 EMF만 지원합니다. JSL을 사용하여 SVG에 플롯을 저장하려면 어떻게 해야 합니까?
(누군가 이 게시물을 보고 GUI 접근 방식을 사용하고 싶지만 방법을 모르는 경우:
- 그림을 생성한 후 Alt 키를 누르십시오. 이렇게 하면 메뉴 표시줄이 나타납니다.
- 파일 > 다른 이름으로 저장 및 SVG 선택)
대답 해줘서 고마워! Save Picture() 문서에 SVG 파일을 저장할 수 있다는 언급이 없는 JMP13을 사용하고 있습니다. 그러나, @Craige_Hales 가능함을 보여주었다. 그 문제는 제쳐두고 내 코드에서 버그를 찾았습니다.
SVG에서 레이저 커터로 첨부 파일의 마지막 몇 줄을 참조하십시오. 파일 대상을 조정하고 JSL도 실행할 수 있습니다.
JMP 15에서 설명서에는 그림을 SVG 형식으로 저장할 수 있다고 나와 있습니다.다음은 JSL 구문 참조의 섹션입니다.
db<<Save Picture(<path>, <format>)
Description
Saves a picture of the display box in the quoted path and with the specified quoted format.
Notes
• If you omit the quoted path argument, you are prompted to name and save the file when running the script.
• Valid file formats include "PDF", "PNG", "GIF", "JPG" or "JPEG", "EPS", "SVG", and "EMF".
• On Windows, the Windows Specific preferences determine the resolution (or DPI), or you
can run the following script:
Pref( Save Image DPI( number ) );
• On macOS, the operating system determines the DPI.
• Use Save Picture to export a report as a PDF file with no headers or footers. Use Save PDF
to include these components.
db<<Save Presentation(<path>, <Template(path)>,
<Insert("Begin"|"End"|n)|Replace("Begin"|"End"|n)|Append>, <Outline
Titles(title location)>, <format>)
Saves display boxes in a Microsoft PowerPoint presentation. You can open the file in any presentation software program.
Optional Arguments
path Saves the file in the quoted path. You must include the .pptx extension in the filename. If you omit the path argument, you are prompted to name and save the file when running the script.
Template(path) Specifies the quoted path of a custom PowerPoint template. Without this argument, JMP uses the default template located in the pptx folder of the installation directory.
Include a simple table in your template, or a default table format is applied to report tables. For an example on Windows, see /pptx/JMPExportTemplate.pptx in the JMP installation folder.
Insert Determines where the slides are inserted in an existing presentation.
– n inserts the slides as the nth slide number.
– "Begin" inserts the slides at the beginning of the presentation.
– "End" inserts the slides at the end of the presentation.
Replace Determines which slides are replaced in an existing presentation. The arguments
are n, "Begin", and "End" as described for Insert.
Append The slides are inserted at the end of an existing presentation.
Outline Titles The location of the outline title and any parent outline titles on the slide.
By default, the immediate parent outline title appears as a slide title above the slide
content, with any parent outline titles positioned in the bottom left corner of the slide.
– "None" omits the slide title above the graphic and the outline titles.
– "Hide" omits the outline titles.
– "TopLeft", "TopRight", "BottomLeft", "BottomRight" determine the position of any of the parent outline titles on the slide.
format The format of the embedded graphics. Options are "Native", "EMF", "PNG", "JPG", "BMP", "GIF", "TIF". On Windows, the native format is EMF. On macOS, the native format is PDF. See “Notes” for compatibility issues. Without this argument, JMP applies the “Image Format for PowerPoint” General preference.
Notes
Windows does not support the native PDF graphics produced on macOS. macOS does not support the native EMF graphics produced on Windows. For cross-platform compatibility, specify "PNG", "JPG", "GIF", or "TIF".
If no arguments are provided, the user is prompted to name and save the file.