|
From: Jon <dev...@gm...> - 2009-11-26 03:21:30
|
On Wed, Nov 25, 2009 at 5:27 PM, Thomas Sefzick <t.s...@fz...>wrote: > > sure, the plot ranges are determined and are accessible via some > variables, e.g. GPVAL_Y_MIN, GPVAL_Y_MAX, a.s.o. > Thanks for the information, I don't know this ... > > but, these variables are set after all functions/data are evaluated, > not before. > > otherwise it would be easy: > > plot "datafilename" using 1:2, \ > "" using 3:\ > (GPVAL_Y_MIN+0.5*(GPVAL_Y_MAX-GPVAL_Y_MIN)):\ > (0.5*(GPVAL_Y_MAX-GPVAL_Y_MIN)) > > but this doesn't work, because at the time these variable are > used here, they are unset - because autoranging is done after > all functions/data are evaluated > See, since autoranging is done after all functions/data are evaluated, why not exclude the special case *,u 3:(?)(?),* from evaluating the GPVAL parameters, which I don't think is a problem to realize, then the system automaticall assign the GPVAL_Y_MIN+0.5*(GPVAL_Y_MAX-GPVAL_Y_MIN) and 0.5*(GPVAL_Y_MAX-GPVAL_Y_MIN) to the two question marks, and then return back to the normal path >> you could do a dummy plot (set term dumb), where you plot >> everything except the vertical lines. this would set the axis ranges. >> and then you would do the real plot, this time with the (errorbars >> as) vertical lines: >> >> set term push >> set term dumb >> plot "datafilename" using 1:2 >> set term pop >> plot "datafilename" using 1:2, \ >> "" using 3:\ >> (GPVAL_Y_MIN+0.5*(GPVAL_Y_MAX-GPVAL_Y_MIN)):\ >> (0.5*(GPVAL_Y_MAX-GPVAL_Y_MIN)) with errorbars pointtype 0 >> >> >> bsmile wrote: >> > >> > Thanks, this should serve the purpose. >> > >> > But still if could the system automatically determine the range of the y >> > values, say >> > >> > u 3:(?):(?), then system automatically determines ( ...y=? ...) = mean >> of >> > the y range in the other plots, or in default at 0, (...yerr=? ...) = >> > standard deviation of y values in the other plots, or in default at 1. >> > >> > it seems to me the above functionality is not hard to implement since >> > there >> > has been use of (), if there could be a check for ? during syntax >> sparse, >> > then accumulate mean and/or std from other column of output. It seems to >> > me >> > adding this functionality does not interfere with other existing >> > functionalities .. >> > >> > >> > >> > On Wed, Nov 25, 2009 at 4:24 AM, Thomas Sefzick >> > <t.s...@fz...>wrote: >> > >> >> >> >> plot large errorbars: >> >> >> >> unset bars >> >> set yrange [ ... give some reasonable values here ... ] >> >> plot 'kkk' u 1:2 w l,'' u 3:(0):(1.e9) with errorbars pointtype 0 >> >> >> >> explanation: >> >> using 3:( ... middle of your y-interval ... ):( ... half errorbar >> >> length, long enough to cover the whole y-range ...) >> >> >> >> >> >> bsmile wrote: >> >> > >> >> > sure, but what I mean is to set up a special symbol to mimic a >> vertical >> >> > line, e.g. >> >> > >> >> > plot 'kkk' u 1:2 w l,'' u 3:(whatever) w l >> >> > >> >> > I know that the third column has identical value say at 5, then I >> hope >> >> the >> >> > whatever is the special symbol which draws a vertical line through >> x=5 >> >> > within the range of column 2. Even if column 3 has dispersed data, if >> >> > whatever is used, it will still draw a vertical line through x_mean >> for >> >> > column 3. >> >> > >> >> > Thanks, >> >> > >> >> > >> >> > >> >> > On Tue, Nov 24, 2009 at 3:03 PM, Thomas Sefzick >> >> > <t.s...@fz...>wrote: >> >> > >> >> >> >> >> >> because a function assigns one (or no) y-value to a x-value. >> >> >> a vertical line can not be described by a function. >> >> >> >> >> >> >> >> >> bsmile wrote: >> >> >> > >> >> >> > say, vertical line, which can draw a vertical line at specific x >> >> >> position >> >> >> > automatically ranging through the plotted region? So far, vertical >> >> >> lines >> >> >> > can be drawn, but have to be tricky, if not lengthy. Since gnuplot >> >> is >> >> >> > famous for its convenience, why not introduce a simple function to >> >> >> > accomplish plotting vertical lines? >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://old.nabble.com/could-gnuplot-provide-some-specific-functions--tp26500089p26500366.html >> >> >> Sent from the Gnuplot - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> >> >> 30-Day >> >> >> trial. Simplify your report design, integration and deployment - and >> >> >> focus >> >> >> on >> >> >> what you do best, core application coding. Discover what's new with >> >> >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> >> >> _______________________________________________ >> >> >> Gnuplot-info mailing list >> >> >> Gnu...@li... >> >> >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> >> >> >> >> > >> >> >> ------------------------------------------------------------------------------ >> >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> >> > 30-Day >> >> > trial. Simplify your report design, integration and deployment - and >> >> focus >> >> > on >> >> > what you do best, core application coding. Discover what's new with >> >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july >> >> > _______________________________________________ >> >> > Gnuplot-info mailing list >> >> > Gnu...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/could-gnuplot-provide-some-specific-functions--tp26500089p26509658.html >> >> Sent from the Gnuplot - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> >> 30-Day >> >> trial. Simplify your report design, integration and deployment - and >> >> focus >> >> on >> >> what you do best, core application coding. Discover what's new with >> >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> >> _______________________________________________ >> >> Gnuplot-info mailing list >> >> Gnu...@li... >> >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> >> >> > >> ------------------------------------------------------------------------------ >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> > 30-Day >> > trial. Simplify your report design, integration and deployment - and >> focus >> > on >> > what you do best, core application coding. Discover what's new with >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july >> > _______________________________________________ >> > Gnuplot-info mailing list >> > Gnu...@li... >> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/could-gnuplot-provide-some-specific-functions--tp26500089p26521375.html >> Sent from the Gnuplot - User mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gnuplot-info mailing list >> Gnu...@li... >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> > |