協助為 JSL 腳本新增圖表/圖形匯出指令:高解析度、向量格式你好,
是否有相對簡單的腳本語言,我可以作為JSL 新手用戶添加到我的條形圖JSL 文件中,並將其導出為高分辨率矢量格式...最好沒有選擇和複製/粘貼帶來的所有“額外內容”我目前使用的方法? 我貼到 Illustrator 中,它工作正常,但我仍然需要在 Illustrator 中進行大量清理,包括(但不限於)奇怪的事情,例如左軸刻度線,在它們似乎得到之後需要移回原來的位置。在貼上階段「移位」......?
我需要製作其中一些,因此貼上(甚至直接從圖形生成器導出)並不理想。
如果沒有(或即使是),有關以最少的清理進行粘貼的最佳方法的建議將不勝感激!
謝謝!
大規模客製化回覆:幫助在 JSL 腳本新增圖表/圖形匯出指令:高解析度、向量格式乍一看,您似乎在上次調度後漏掉了結束語“)”。
很難判斷是否存在其他問題,因為您沒有包含所有平台聲明。
回覆:幫助在 JSL 腳本新增圖表/圖形匯出指令:高解析度、向量格式你好,
該腳本獨立運行! 我能夠在 Illustrator 中開啟 SVG,但圖表內容不可見,所以我嘗試了 PDF,結果成功了。 但是當我嘗試將其添加到我的腳本中時,出現以下錯誤。 我嘗試將腳本的輸出部分放在我的腳本的幾個不同位置,雖然繞過了錯誤訊息,但它沒有生成圖形...
我將它放在腳本的末尾並帶有足夠的括號,這樣就不會收到錯誤訊息,但也不會收到圖形...
錯誤:「意外的」輸出」。 可能缺少“,”或“)”
感謝您持續的幫助!
)}
),
派遣(
{},
“400”,
秤盒,
{圖例模型(
2、
屬性( 0, {填滿顏色(RGB 顏色(255,255,0))} ),
屬性( 1, {填滿顏色(RGB顏色(137,68,68))} ),
屬性( 2, {填滿顏色(RGB 顏色(255,115,223) )} ),
屬性( 3, {填滿顏色(RGB顏色(0,77,168))} ),
屬性( 4, {填滿顏色(RGB顏色(169,0,230))} ),
屬性( 5, {填滿顏色(RGB顏色(56,168,0))} ),
屬性( 6, {填滿顏色(RGB顏色(230,0,0))} ),
屬性( 7, {填滿顏色(RGB顏色(255,170,0))} ),
屬性( 8, {填滿顏色(RGB顏色(115,223,255))} ),
屬性( 9, {填滿顏色(RGB顏色(156,156,156))} )
)}
),
Dispatch( {}, "圖表標題", TextEditBox, {設定字體大小( 14 ), 設定文字( "Chirikov" )} ),
Dispatch( {}, "X 標題", TextEditBox, {設定字體大小( 12 ), 設定文字( "年份" )} ),
Dispatch( {}, "Y 標題", TextEditBox, {設定字體大小( 12 ), 設定文字( "豐度 (#/m2)" )}
// 將輸出儲存為 PDF
(輸出<<儲存圖片("P:\Graphics\JMP\test1.pdf"));
)
)
)
);
回覆:幫助在 JSL 腳本新增圖表/圖形匯出指令:高解析度、向量格式你好@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");
該腳本中的關鍵組件為圖形命名:“輸出=圖形...”
然後使用以下命令保存它“輸出<<儲存圖片....”
回覆:幫助在 JSL 腳本新增圖表/圖形匯出指令:高解析度、向量格式謝謝,你好,
我想我不小心點擊了“解決方案”,但實際上這對我來說還不起作用,但我不確定我的語法是否完美。 我在下面貼上的是腳本的選擇,底部有您的建議。 我已經嘗試了幾次逗號和分號等的迭代...放置但我仍然沒有導出文件,只是打開了圖形生成器...還有其他建議嗎?!
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"));
);
回覆:幫助在 JSL 腳本新增圖表/圖形匯出指令:高解析度、向量格式你好@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
讓我們知道它是否適合您