Hi Angela, Thank you for sending that. If you use angular/radial coordinates, do you know if there is a way to label the angles around the circular perimeter? I figured out how to turn off the Cartesian grid, but need to display angles from 0-360 or -180 to +180 around the circle instead of x-y coordinates.
Best regards, Gene L. Harding, PE Associate Professor of ECET Purdue University 574-520-4190 https://polytechnic.purdue.edu/south-bend/ From: LON-CAPA-users <lon-capa-users-boun...@mail.lon-capa.org> On Behalf Of Athanas, Angela Sent: Friday, May 1, 2020 7:28 PM To: Discussion list for LON-CAPA users <lon-capa-users@mail.lon-capa.org> Subject: [LON-CAPA-users] {Disarmed} Re: Polar Format gnuplots I have a couple of polar area problems. Here's one: <problem> <script type="loncapa/perl"> $a=&random(5,10,1); $a1=&random(1,3,1); $b=$a-1; for ($x = 0; $x<=2*3.141592654; $x+= 0.01) { push @X1, ($a+$b*sin($x))*cos($x); push @Y1, ($a+$b*sin($x))*sin($x); push @X2, ($a+$b*sin($x))*cos($x); push @Y2, 0; push @X3, 0; push @Y3, ($a+$b*sin($x))*sin($x); } $area=$a**2/2+$b**2/4; $area1="$area*$pi"; </script> <startouttext /> <br /> Determine the area of the right half of the cardioid formed by <m eval="on">\[ r = $a + $b \sin{\theta} \, \] </m> <p /> <endouttext /> <gnuplot width="400" grid="off" align="center" font="medium" height="300" border="on" alttag="dynamically generated plot" bgcolor="xffffff" fgcolor="x000000" transparent="off"> <curve linestyle="lines" name="" color="x8B0000" pointtype="1" pointsize="1"> <data>@X1</data> <data>@Y1</data> </curve> <curve linestyle="lines" name="" color="x000000" pointtype="1" pointsize="2"> <data>@X2</data> <data>@Y2</data> </curve> <curve linestyle="lines" name="" color="x000000" pointtype="1" pointsize="2"> <data>@X3</data> <data>@Y3</data> </curve> </gnuplot> <p /> <startouttext />Area of cardioid right half is <endouttext /> <formularesponse answer="$area1" samples="x,pi@3,$pi:9,$pi#4" id="11"> <responseparam name="tol" default="0.001" description="Numerical Tolerance" type="tolerance" /> <textline size="35" readonly="no" /> </formularesponse> </problem> ________________________________ From: LON-CAPA-users <lon-capa-users-boun...@mail.lon-capa.org<mailto:lon-capa-users-boun...@mail.lon-capa.org>> on behalf of Harding, Gene L <glhar...@purdue.edu<mailto:glhar...@purdue.edu>> Sent: Friday, May 1, 2020 6:03 PM To: Discussion list for LON-CAPA users <lon-capa-users@mail.lon-capa.org<mailto:lon-capa-users@mail.lon-capa.org>> Subject: [LON-CAPA-users] Polar Format gnuplots Hi, Has anyone done polar-format gnuplots in LON-CAPA? Would you be willing to share an example? This is my first foray into polar gnuplots. I am having trouble getting the angle to display around the perimeter. It's rendering x- and y-axis values instead of angle and radius values. Best regards, Gene L. Harding, PE Associate Professor of ECET Purdue University 574-520-4190 MailScanner has detected a possible fraud attempt from "nam05.safelinks.protection.outlook.com" claiming to be https://polytechnic.purdue.edu/south-bend/<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpolytechnic.purdue.edu%2Fsouth-bend%2F&data=02%7C01%7Cathanas%40pitt.edu%7Cfad47791d6c841b74f7908d7ee1bafef%7C9ef9f489e0a04eeb87cc3a526112fd0d%7C1%7C0%7C637239675012270173&sdata=BxFc6JckzEaHORzCXuu3bO3AgOEJyqxsirfeqygrBg0%3D&reserved=0>
_______________________________________________ LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users