|
From: Mahmood N. <nt_...@ya...> - 2013-09-27 18:11:57
|
Thanks a lot. I was writing a python script to preprocess the values! Just want to know how someone should conclude "%.sG" for such formatting? From the manual http://gnuplot.sourceforge.net/docs_4.2/node184.html, we read: If the format string is omitted, the format will be returned to the default "% g" ... %e or %E exponential notation; an "e" or "E" before the power %g or %G the shorter of %e (or %E) and %f ... The default format for both axes is "% g", but other formats such as "%.2f" or "%3.0em" are often desirable .... Characters not preceded by "%" are printed verbatim. Thus you can include spaces and labels in your format string, such as "%g m", which will put " m" after each number. If you want "%" itself, double it: "%g %%". Regards, Mahmood ________________________________ From: BBands <bb...@gm...> To: gnuplot <gnu...@li...> Sent: Friday, September 27, 2013 9:11 PM Subject: Re: [Gnuplot-info] formatting ytics I sort of hate it when I hear can't be done... set format y "%.sG" John On Fri, Sep 27, 2013 at 10:25 AM, Mahmood Naderan <nt_...@ya...> wrote: > Yes I know that but these specifiers are good for hex and scientific numbers > (for example 0x7F, 0x7f, 2E+2, e2+2). None of them convert a 3,000,000,000 > number to 3G. > I think I have to write a script to preprocess that. Thanks ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ gnuplot-info mailing list gnu...@li... Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |