From: Juho S. <juh...@as...> - 2005-02-08 07:31:32
|
Hi, When I need to plot both lines and points (data and fitted model) I use something like this: plt1 = Gnuplot.Gnuplot() plt1.plot(Gnuplot.Data(MJD,most_flux,most_err,with='yerrorbars 1')) plt1.replot(Gnuplot.Data(MJD,flux_fit,with='lines 1')) -- Juho Schultz e-mail: juh...@as... www.astro.helsinki.fi/~jschultz Observatory P.O. Box 14 FIN-00014 University of Helsinki FINLAND On Mon, 7 Feb 2005, Jette Krause wrote: >Hallo, > >I need to plot some curves and a data point into one diagram. I can't >find out how to tell Gnuplot to use different linestyles for different >items ("lines" for the curves and "points" for data) when plotting from >a python script. > >E.g., if I write > >g=Gnuplot.Gnuplot() >g('set data style lines'), > >the plotting command for the point is not executed (naturally...). >But is there a way to give a data style different from the general on, >e.g in the plotting command? > >I tried things like >g.plot(a,b,c,k with points) >where a to c are the curves and k should be the point, but it does not work. > >I would be grateful for any help. > >Greetings, Jette > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gnuplot-py-users mailing list >Gnu...@li... >https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > |