Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #966
| From | Dan Luecking <LookInSig@uark.edu> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Setting ticks marks for sine curve - pi to pi |
| Date | 2012-03-06 12:30 -0600 |
| Organization | A noiseless patient Spider |
| Message-ID | <2ilcl71fk3151pp0lqfd45rn4uuqovjekm@4ax.com> (permalink) |
| References | <225ca450-3623-4924-b7bd-067f1a8feda0@wb9g2000pbc.googlegroups.com> |
On Mon, 5 Mar 2012 18:35:35 -0800 (PST), Mark Lim <mklim.77@gmail.com>
wrote:
>Hi
>
>My gnuplot 4.4 encounter this
>
>
>gnuplot> set xtics ('$-\pi$ -pi,\'$-frac{\pi}{2}$' -pi/2,\"0" 0,\'$
>\frac{\pi}{2}$' pi/2,\'$\pi$' pi)
> ^
> invalid complex constant
>
>
>2. Any ideas how to fix this?
>
>I got this command straight from the article by David Kotz entitled
>Latex and gnuplot Plotting Program 5 Feb2012.
You have run all the lines together. The actual code is
set xtics ('$-\pi$' -pi,\
'$-\frac{\pi}{2}$' -pi/2,\
"0" 0,\
'$\frac{\pi}{2}$' pi/2,\
'$\pi$' pi)
The backslashes at the end of those lines say to ignore
the end-of-line. If you run all these together as a
single line you have to remove the backslashes.
In your code, a \' indicates that ' should be taken literally
and not as a quote to start a string. This is probably where
gnuplot noted an error.
Dan
To reply by email, change LookInSig to luecking
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar
Setting ticks marks for sine curve - pi to pi Mark Lim <mklim.77@gmail.com> - 2012-03-05 18:35 -0800 Re: Setting ticks marks for sine curve - pi to pi Dan Luecking <LookInSig@uark.edu> - 2012-03-06 12:30 -0600
csiph-web