Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #966
| Path | csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Dan Luecking <LookInSig@uark.edu> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Setting ticks marks for sine curve - pi to pi |
| Date | Tue, 06 Mar 2012 12:30:38 -0600 |
| Organization | A noiseless patient Spider |
| Lines | 38 |
| Message-ID | <2ilcl71fk3151pp0lqfd45rn4uuqovjekm@4ax.com> (permalink) |
| References | <225ca450-3623-4924-b7bd-067f1a8feda0@wb9g2000pbc.googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | mx04.eternal-september.org; posting-host="SenweEDukXwfyeby1XOOag"; logging-data="10860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zqFgLIL0BI4TKlsJESlpJAC+hNKXNkvA=" |
| X-Newsreader | Forte Free Agent 3.3/32.846 |
| Cancel-Lock | sha1:M29EkygX+o7X3Tk6RznLi3+wM1g= |
| Xref | csiph.com comp.graphics.apps.gnuplot:966 |
Show key headers only | View raw
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