Here's one way to do it, using parametric equations found at Math World: Heart Curve.
New Table( "heart",
New Column( "t", Set Values( Index( 0, 2 * Pi(), 0.1 ) ) ),
New Column( "x", Formula( 16 * Power( Sin(t), 3 ) ) ),
New Column( "y", Formula( 13 * Cos(t) - 5 * Cos(2 * t) - 2 * Cos(3 * t) - Cos(4 * t) ) )
);
Graph Builder( Show Control Panel( 0 ), Variables( X( :x ), Y( :y ), Legend( 1 )), Elements( Formula( X, Y ) ),
SendToReport( Dispatch( {}, "400", ScaleBox,
{Legend Model( 1, Properties( 0, {Line Color( "Red" ), Line Width( 4 )} ) )})
)
);
27 条回复27
已创建:
Feb 12, 2019 10:10 AM
| 上次修改时间: Feb 12, 2019 7:20 AM
(8750 浏览量)
| Posted in reply to message from arati_mejdal 02-12-2019
This way of drawing a heart isn't new, but making it interactive with the help of JMP Public is new.
Press the play button and sliders at the bottom and use the menu beside 'Animated Heart' to change bubbleplot settings. See it on public.JMP.com.
已创建:
Feb 14, 2019 08:48 AM
| 上次修改时间: Feb 14, 2019 5:50 AM
(8619 浏览量)
| Posted in reply to message from arati_mejdal 02-12-2019
Time has created many shapes on Earth's surface. Here's a hearty one. There must be more out there?
nw = New Window("Galešnjak Island", Graph Box());
nw[AxisBox(1)] << Scale("Geodesic") << Min(43.9761119) << Max(43.9806944);
nw[AxisBox(2)] << Scale("Geodesic") << Min(15.379375) << Max(15.387375);
nw[framebox(1)] << Background Map(Images("street map service"));
已创建:
Feb 12, 2019 02:15 PM
| 上次修改时间: Feb 12, 2019 12:00 PM
(8705 浏览量)
| Posted in reply to message from XanGregg 02-14-2017
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << colorByColumn(:sex);
dt<<New Column( "Heart Column",
Expression,
"None",
Formula(
Text Box(
"♡",
<<FontColor( If( :sex == "F", "RED", "BLUE" ) ),
<<setFontSize( 30 )
) << getpicture
),
Use for Marker
);
dt << Graph Builder(
Size( 845, 669 ),
Show Control Panel( 0 ),
Variables( X( :height ), Y( :age ), Group X( :sex ) ),
Elements( Points( X, Y, Legend( 16 ) ) ),
SendToReport(
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Height by Age/Gender" )}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "Height" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "Age" )} )
)
);
Hearts ...