From: Benny M. <ben...@gm...> - 2008-04-25 07:32:41
|
The plot is a built in function working on the Gnuplot.Data, eg: data[i] = Gnuplot.Data(self.grid_x, self.sol[i],with_='lines', title='Solution at t=%g' %(time)) where sol is a solution over a grid, then eg to plot a number of profiles: g.title('Concentration profiles') g.xlabel('x [1e-6 m]') g.ylabel('Conc [mol/mm^3]') g.plot(data[0]) for val in data[1:]: g.replot(val) So it does not work on polar, to do what you want, keep interacting with gnuplot commands, so: g('set terminal x11') > g('set output') > g('set polar') > g('unset border') > g('unset xtics') > g('unset ytics') > g('set size square') > g('set xrange[-2:2]') > g('set yrange[-2:2]') and not: g.plot(1.7) instead: g.('plot(1.7)') Benny > > |