안녕하십니까,
고해상도, 벡터 형식으로 내보낼 수 있는 초보 JSL 사용자로 막대 차트 JSL 파일에 추가할 수 있는 비교적 간단한 스크립팅 언어가 있습니까? 선택 및 복사/붙여넣기와 함께 제공되는 모든 "추가 항목" 없이 선호 내가 현재 사용하는 접근 방식은? 제대로 작동하는 Illustrator에 붙여넣었지만 왼쪽 축 눈금 표시와 같은 이상한 일을 포함하여(이에 국한되지 않음) Illustrator에서 많은 정리 작업을 수행해야 합니다. 붙여넣기 단계에서 "변위"...?
붙여넣기(또는 그래프 빌더에서 직접 내보내기)가 이상적이지 않도록 만들어야 하는 몇 가지가 있습니다.
그렇지 않은 경우(그렇더라도), 최소한의 정리로 붙여넣는 가장 좋은 방법에 대한 조언을 주시면 감사하겠습니다!
감사 해요!
안녕하세요 @ReneeBay
이것이 당신을 위해 일할 수 있습니까?
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
// Launch platform: Distribution
output = Distribution(
Nominal Distribution( Column( :age ) ),
Nominal Distribution( Column( :sex ) ),
Continuous Distribution( Column( :height ) )
);
output << save picture ("C:\Users\Smart\Desktop\output1.svg");
그렇지 않으면 이 토론에서 참조를 살펴보십시오.
https://community.jmp.com/t5/Discussions/JSL-Saving-picture-in-SVG-format/td-p/253434
그것이 당신을 위해 작동하는지 알려주십시오
감사합니다.
실수로 "해결책"을 눌렀다고 생각하지만 실제로 이것은 아직 작동하지 않았지만 구문이 완벽하다고 확신할 수 없습니다. 내가 아래에 붙여 넣은 것은 맨 아래에 귀하의 제안과 함께 스크립트의 선택입니다. 쉼표와 세미콜론 등... 배치를 몇 번 반복해 보았지만 여전히 내보낼 파일을 얻지 못하고 그래프 빌더만 열렸습니다... 다른 제안 사항이 있습니까?
SendToReport(
Dispatch(
{},
"DataYear",
ScaleBox,
{Min( 2009.5 ), Max( 2019.5 ), Inc( 1 ), Minor Ticks( 1 ),
Label Row( {Automatic Font Size( 0 ), Set Font Size( 10 )} )}
),
Dispatch(
{},
"Polychaeta",
ScaleBox,
{Format( "Fixed Dec", Use thousands separator( 1 ), 15, 0 ), Max( 27000 ),
Label Row(
{Automatic Font Size( 0 ), Automatic Tick Marks( 0 ), Show Minor Ticks( 0 ),
Set Font Size( 10 )}
)}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
2,
Properties( 0, {Fill Color(RGB color(255,255,0))} ),
Properties( 1, {Fill Color(RGB color(137,68,68))} ),
Properties( 2, {Fill Color(RGB color(255,115,223) )} ),
Properties( 3, {Fill Color(RGB color(0,77,168))} ),
Properties( 4, {Fill Color(RGB color(169,0,230))} ),
Properties( 5, {Fill Color(RGB color(56,168,0))} ),
Properties( 6, {Fill Color(RGB color(230,0,0))} ),
Properties( 7, {Fill Color(RGB color(255,170,0))} ),
Properties( 8, {Fill Color(RGB color(115,223,255))} ),
Properties( 9, {Fill Color(RGB color(156,156,156))} )
)}
),
Dispatch( {}, "graph title", TextEditBox, {Set Font Size( 14 ), Set Text( "Chirikov" )} ),
Dispatch( {}, "X title", TextEditBox, {Set Font Size( 12 ), Set Text( "Year" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Font Size( 12 ), Set Text( "Abundance (#/m2)" )} )
)
)
(output << save picture ("P:\JMP\test.pdf"));
);
안녕하세요 @ReneeBay ,
당신이 제공하는 스크립트는 부분적입니다.
이 스크립트를 먼저 실행하여 사용 중인 플랫폼에서 svg 파일을 생성하는 측면에서 작동하는지 확인하십시오.
// Open Data Table: Big Class.jmp
Open( "$SAMPLE_DATA/Big Class.jmp" );
// create a graph
output = Graph Builder(
Size( 528, 458 ),
Show Control Panel( 0 ),
Fit to Window( "Off" ),
Variables( X( :weight ), Y( :height ) ),
Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);
// save output as SVG
output << save picture ("C:\Users\Smart\Desktop\output1.svg");
이 스크립트의 주요 구성 요소는 그래프 이름을 "출력 = 그래프..."로 지정합니다.
다음 명령을 사용하여 저장합니다. "출력<< 그림 저장...."