어두운 배경에 밝은 텍스트를 png 이미지로 내보내려고 하면 텍스트가 검은색으로 나오는 것을 발견했습니다.
이 게시글을 늦게 발견했는데, 고민하다가 JMP 15에서 밝은 텍스트와 어두운 배경에 대한 해결책을 찾았습니다(스크립트 맨 마지막에 있습니다. 죄송합니다).
누구든지 개선 사항이 있거나 png로 내보낼 때 고정하는 방법을 알고 있다면 도와주세요. 저는 어둠 속에서 이것저것 쑤시고 있습니다.
감사해요!
gb = Graph Builder(
Size( 1103, 679 ),
Show Control Panel( 0 ),
Level Text Color( "Medium Dark Yellow" ),
Page Level Text Color( "Medium Dark Yellow" ),
Variables(
X( :SampleDate ),
Y( :Name( "EWMA(Melvin'sIndex(N1))" ) ),
Y( :Name( "EWMA(Melvin'sIndex(N2))" ), Position( 1 ) ),
Y( :Name( "EWMA(Melvin'sIndex(PMMoV))" ), Position( 1 ) )
),
Elements(
Points( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 1 ), Summary Statistic( "Mean" ) ),
Smoother(
X,
Y( 1 ),
Y( 2 ),
Y( 3 ),
Legend( 2 ),
Lambda( 0.0000332659553294004 ),
Confidence of Fit( 1 )
)
),
Where( :Facility == "Albert_Lea" ),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Text Color( -15856113 )} ),
Dispatch(
{},
"SampleDate",
ScaleBox,
{Min( 3692217600 ), Max( 3700300973 ), Interval( "Week" ), Inc( 1 ),
Minor Ticks( 6 ), Label Row(
{Label Orientation( "Angled" ), Set Font Size( 24 )}
)}
),
Dispatch(
{},
"EWMA(Melvin'sIndex(N1))",
ScaleBox,
{Format( "Fixed Dec", 12, 2 ), Min( 0 ), Max( 1.1 ), Inc( 0.25 ),
Minor Ticks( 0 ), Label Row(
{Major Grid Line Color( 32 ), Show Major Grid( 1 ),
Set Font Size( 24 )}
)}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
1,
Base( 0, 0, 0, Item ID( "EWMA(Melvin'sIndex(N1))", 1 ) ),
Base( 1, 0, 1, Item ID( "EWMA(Melvin'sIndex(N2))", 1 ) ),
Base( 2, 0, 2, Item ID( "EWMA(Melvin'sIndex(PMMoV))", 1 ) ),
Properties(
0,
{Line Color( -28927 ), Marker( "Circle" )},
Item ID( "EWMA(Melvin'sIndex(N1))", 1 )
),
Properties(
1,
{Line Color( -14989329 ), Marker( "Plus" )},
Item ID( "EWMA(Melvin'sIndex(N2))", 1 )
),
Properties(
2,
{Line Color( -5635840 ), Marker( "Diamond" )},
Item ID( "EWMA(Melvin'sIndex(PMMoV))", 1 )
)
), Legend Model(
2,
Level Name( 0, "N1", Item ID( "Smooth(EWMA(Melvin'sIndex(N1)))", 1 ) ),
Level Name( 1, "N2", Item ID( "Smooth(EWMA(Melvin'sIndex(N2)))", 1 ) ),
Level Name(
2,
"PMMoV",
Item ID( "Smooth(EWMA(Melvin'sIndex(PMMoV)))", 1 )
),
Properties(
0,
{Line Color( -28927 ), Line Width( 5 )},
Item ID( "Smooth(EWMA(Melvin'sIndex(N1)))", 1 )
),
Properties(
1,
{Line Color( -14989329 ), Line Width( 5 )},
Item ID( "Smooth(EWMA(Melvin'sIndex(N2)))", 1 )
),
Properties(
2,
{Line Color( -5635840 ), Line Width( 5 )},
Item ID( "Smooth(EWMA(Melvin'sIndex(PMMoV)))", 1 )
)
)}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Font Size( 36 ), Font Color( 25 ), Set Text( "" )}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "", AxisBox, {Background Color( -2368548 ), Text Color( 25 )} ),
Dispatch(
{},
"Y title",
TextEditBox,
{Set Font Size( 36 ), Font Color( 25 ), Set Text( "Melvin's Index" )}
),
Dispatch(
{},
"",
AxisBox( 2 ),
{Background Color( -2368548 ), Text Color( 25 )}
),
Dispatch(
{},
"Graph Builder",
FrameBox,
{Background Color( -2368548 ),
Add Text Annotation(
Text( "Updated April 1" ),
Fixed Size( 0 ),
Text Box( {722, 7, 891, 34} ),
Filled( 0 ),
Text Color( "White" ),
"Font"("Helvetica Neue", 18, "Plain")
)}
),
Dispatch(
{},
"400",
LegendBox,
{Set Title( "" ), font( "Helvetica Neue", 24, "Plain" ), Sides( "Left" ),
Legend Position( {1, [-1, -1, -1], 2, [0, 1, 2, -3, -3, -3]} ),
Position( {-1, -1, -1, 0, 1, 2, -3, -3, -3} )}
)
)
);
Report( gb )[Outline Box( 1 )] << Text Color( -15856113 );
Report( gb )[GraphBuilderContainerBox( 1 )] << background color( -2368548 );
Report( gb )[GraphBuilderContainerBox( 1 )] << Font Color( -15856113 );
Report( gb )[FrameBox( 1 )] << background color( -2368548 );
Report( gb )[FrameBox( 1 )] << Text Color( -15856113 );
Report( gb )[GraphBuilderTitleBox( 1 )] << Text Color( -15856113 );
Report( gb )[Text Edit Box( 1 )] << background color( -2368548 );
Report( gb )[Text Edit Box( 1 )] << Font Color( white );
Report( gb )[Text Edit Box( 4 )] << background color( -2368548 );
Report( gb )[Text Edit Box( 4 )] << Font Color( white );
Report( gb )[AxisBox( 1 )] << background color( -2368548 );
Report( gb )[AxisBox( 1 )] << Text Color( white );
Report( gb )[AxisBox( 2 )] << background color( -2368548 );
Report( gb )[AxisBox( 2 )] << Text Color( white );
Report( gb )[LegendBox( 1 )] << background color( -2368548 );
Report( gb )[LegendBox( 1 )] << Text Color( white );