Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4001
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: space between sign and digit |
| Date | 2018-07-12 06:53 +0200 |
| Organization | solani.org |
| Message-ID | <pi6mrl$a76$1@solani.org> (permalink) |
| References | <pi49eq$a7$1@dont-email.me> <fqmv8hFmg36U1@mid.dfncis.de> |
Am 11.07.2018 um 20:06 schrieb Hans-Bernhard Bröker:
> Am 11.07.2018 um 08:52 schrieb Jörg Buchholz:
>> I would like to print a function in the key like this:
>>
>> f11(x) = -2.56·x - 103.63
>>
>> I use the following code in the plot command for that:
>>
>> f11(x) lt 2 lw 4 dt 4 t sprintf("f11(x) =%6.2f·x%+7.2f",a,b11)
>>
>> That means, that I use the sign from the format specifier as plus
>> sign
>> or minus sing in the printed function. But than I don't have a
>> space in
>> front of the second number. The second number can be positive or
>> negative.
>
> So what's so wrong with the simple
>
> sprintf("f11(x) = %6.2f·x + % 7.2f",a,b11)
>
> ? Yes, that means for negative bl1 you'll get "+ -103.63", but is
> that really such a problem?
Probably a matter of taste. ;-)
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
space between sign and digit Jörg Buchholz <bookwood4new@freenet.de> - 2018-07-11 08:52 +0200
Re: space between sign and digit Karl Ratzsch <mail.kfr@gmx.net> - 2018-07-11 10:00 +0200
Re: space between sign and digit Jörg Buchholz <bookwood4new@freenet.de> - 2018-07-11 14:16 +0200
Re: space between sign and digit Karl Ratzsch <mail.kfr@gmx.net> - 2018-07-11 15:16 +0200
Re: space between sign and digit Jörg Buchholz <bookwood4new@freenet.de> - 2018-07-12 07:36 +0200
Re: space between sign and digit Karl Ratzsch <mail.kfr@gmx.net> - 2018-07-12 20:42 +0200
Re: space between sign and digit Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2018-07-11 20:06 +0200
Re: space between sign and digit Karl Ratzsch <mail.kfr@gmx.net> - 2018-07-12 06:53 +0200
Re: space between sign and digit Jörg Buchholz <bookwood4new@freenet.de> - 2018-07-12 07:21 +0200
csiph-web