|
From: Thomas S. <t.s...@fz...> - 2010-05-07 15:36:17
|
# full range set trange [0:360] # points at integer values set samples 361 plot t<=90.?4.:((t>=180.&&t<=270.)?5.:0/0) Propane13 wrote: > > 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--tp28487415p28487719.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |