Ich habe ein Skript, das eine Graph Builder-Ausgabe mit einem Datensatz erstellt, der eine variable Anzahl von Elementen in der Legende und eine variable Anzahl von Frames enthält.Ich kann die Rahmenbaumstruktur abrufen und sie dann formatieren, aber die Legende kann ich nicht formatieren.Ich glaube, ich bin nah dran, aber irgendetwas funktioniert nicht in der allerletzten Zeile.
Hier ist ein Beispielskript.
Names Default To Here( 1 );
dt = Open("$SAMPLE_DATA/Solubility.jmp");
dtstack = dt << Stack(
columns(:Name( "1-Octanol" ),:Ether,:Chloroform,:Benzene,:Carbon Tetrachloride, :Hexane ),
Source Label Column( "Gas" ),
Stacked Data Column( "Solubility" )
);
gbname = dtstack << Graph Builder( Size( 668, 643 ), Show Control Panel( 0 ),
Variables( Y( :Solubility ), Wrap( :Gas ), Overlay( :Labels ) ),
Elements( Points( Y, Legend( 12 ) ) )
);
frames = gbname << xpath("//FrameBox"); //gets frames, works
frames << set background color( -16512221 ); //formats frames, works
LegendPallet = gbname << xpath("//LegendBox"); //gets legend, i think this works
LegendPallet << Color Theme( "Pastel" ); //formats color theme --doesn't work. I suspect an issue with my obj.Versuchen
<< Categorical Color Theme( "Pastel" );
Ein Beispiel finden Sie im Index zur Skripterstellung
Hilfe==>Scripting-Indexsuche auf Pastell