Subscribe Bookmark RSS Feed

SVG export problem

I've been trying to export a graph from JMP 8 (GraphBuilder platform) as SVG, and the problem is that there are no data points/lines in the exported file. I tried this on both Mac and PC versions we have in house to no avail. The exported SVG simply shows blank plots with axes and labels.

My workaround was to print to PDF on the Mac (CutePDF on PC doesn't preserve vectors), but this is a pain due to our set up (mostly PCs). And it seems JMP Save As SVG *should* work just fine.

Anyone else seen this or have any tips? Thanks!
3 REPLIES
mpb

Super User

Joined:

Jun 23, 2011

Using the Fitness data I made a simple Y versus X plot with a smoother in graph builder interactively and then with the following script. I saved the report as an SVG file and was able to open it in Firefox 3.6.8 (all this on a PC). I saw everything I expected but the axis text was not in the same font as in JMP.


style="margin-bottom: 0.0001pt; line-height: normal;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">Graph
Builder(



style="margin-bottom: 0.0001pt; line-height: normal;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
Show
Control Panel(

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">
)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">



style="margin-bottom: 0.0001pt; line-height: normal;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
Variables(
X(

style="font-size: 10pt; font-family: "Courier New"; color: navy;">:

style="font-size: 10pt; font-family: "Courier New"; color: black;">Runtime
)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Y(

style="font-size: 10pt; font-family: "Courier New"; color: navy;">:

style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
)
)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">



style="margin-bottom: 0.0001pt; line-height: normal;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
Elements(
Points(
X

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Y

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Legend(

style="font-size: 10pt; font-family: "Courier New"; color: teal;">8

style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Smoother(
X

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Y

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Legend(

style="font-size: 10pt; font-family: "Courier New"; color: teal;">7

style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
)
)



style="font-size: 10pt; line-height: 115%; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; line-height: 115%; font-family: "Courier New"; color: navy;">;



I'm thinking that maybe your graph is more complicated and that there may be some level of complexity or some specific feature that does not get correctly rendered as an SVG file. It might be instructive to simplify your plot down until it does render correctly, if it does at all. Then you could report the issue to JMP support if it still is an issue.
Thanks for the tip, mbp. I did what you suggested, and slowly added complexity and other parameters. It exported fine with all my groups and overlays and wraps, etc, but it broke when I switched the y-axis to a log-scale. Some overlay groups disappeared at the switch to log (but not all), and then they all disappeared in the exported SVG after adjusting the Min and Max of the log-scale. (All JMP 8 on an XP PC, view SVG in Chrome, also see different fonts.) I pasted in the script, in case it helps.

Thoughts? Reportable bug?

Thanks!
-Sam

Graph Builder(
Size( 686, 688 ),
Variables(
X( :Timept ),
Y( :BkSub_ID93, Size( 44 ) ),
Wrap( :Analyte ),
Overlay( :Group )
),
Elements(
Line( X, Y, Legend( 7 ), Row order( 0 ), Summary Statistic( "Mean" ) )
),
SendToReport(
Dispatch(
{},
"BkSub_ID93",
ScaleBox,
{Scale( "Log" ), Format( "Best", 10 ), Min( 0.5 ), Max( 15000 ),
Inc( 1 ), Minor Ticks( 8 ), Label Minor Tick Marks On Log Axis( 0 )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
7,
Properties( 0, {Line Style( "Dotted" ), Line Width( 2 )} ),
Properties( 1, {Line Width( 2 )} ),
Properties( 2, {Line Width( 2 )} ),
Properties( 3, {Line Width( 2 )} )
)}
)
)
)

Message was edited by: spine009
mpb

Super User

Joined:

Jun 23, 2011

Yes, report it to JMP support.