|
From: Propane13 <joh...@gm...> - 2010-05-07 15:14:45
|
Hello! I am currently using gp440win32. For a project, I'm using polar coordinates, and I want to try to make a graph that has 2 arcs. Here's my current program: set angles degrees #set angles radians set polar set size square set xrange [-10:10] set yrange [-10:10] set grid polar set xtics 1 set polar plot [0:90] 4 replot [180:270] 5 I get this error: "Cannot set range with replot" Ideally, this program would allow me to have 2 arcs drawn. I can change the "replot" to "plot", and it'll work, but I lose the first data plot. I'm guessing this is a constraint on the way the system is set up. I did some google searching for awhile, and I found out that someone tried to do something similar, and had a workaround that worked for cartesian coordinates: http://objectmix.com/graphics/139526-plotting-part-sinusoid.html I was wondering if such a solution should also work for polar coordinates? Or, perhaps there is a way to remove this constraint from gnuplot? Another solution I guess would be for me to have an equation where: r=4 0<t<90, r=5, 180<t<270 But I haven't been able to get such commands to work successfully. Does anyone know if I'm doing something simple incorrectly? Any help would be appreciated. Note that I tried some searching online, and of the forums before turning here, as I don't want to waste anyone's time if I could help it. Best regards, -John -- View this message in context: http://old.nabble.com/Gnuplot---changing-ranges-on-replot-%28polar-coordinates%29--tp28487415p28487415.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |