ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* gnuplot: `! Undefined control sequence.` with format specifier %
@ 2011-12-11 23:51 Paul Menzel
  2011-12-12  0:02 ` Mojca Miklavec
  2011-12-12  0:13 ` gnuplot: `! Undefined control sequence.` with format specifier % Mojca Miklavec
  0 siblings, 2 replies; 8+ messages in thread
From: Paul Menzel @ 2011-12-11 23:51 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1867 bytes --]

Dear Mojca and ConTeXt folks,


I compiled gnuplot 4.5 from source (master) and got everything running.
Mojca, thank you so much!

Trying the example from the gnuplot page in the Wiki [1]

        \usemodule[gnuplot]
        
        \setupGNUPLOT[terminal=mp,option=color]
        
        % general settings for the whole document
        \startGNUPLOTinclusions
        
           # you may use TeX commands to format the titles and axes
           set title '\bf Trigonometry'
           set xlabel '$x$'
           set ylabel '$y$'
           set format y '\%.1f'
        \stopGNUPLOTinclusions
        
        \startGNUPLOTscript[tan]
           plot tan(x) t '$\tan(x)$'
        \stopGNUPLOTscript
        
        \startGNUPLOTscript[sin]
           plot 4*sin(x)+x t '$4\sin(x)+x$', x t '$x$' lt 3
        \stopGNUPLOTscript
        
        \useGNUPLOTgraphic[tan]
        \useGNUPLOTgraphic[sin][width=10cm]

even with the comments removed as above I get the following though.

        [1.1] [1.1] [1.1]
        ! Undefined control sequence.
        l.66 \0
               .0%
        ? 
        [1.1]
        ! Undefined control sequence.
        l.71 \1
               0.0%
        ? 
        [1.1]
        ! Undefined control sequence.
        l.76 \2
               0.0%
        ? 
        [1.1]
        ! Undefined control sequence.
        l.81 \3
               0.0%
        ? ^C! Interruption.
        <to be read again> 
                           0
        l.81 \30
                .0%
        ?

I hope that is not related to the used ConTeXt version.

        ConTeXt  ver: 2011.11.25 21:29 MKII  fmt: 2011.11.25  int: english/english

Actually I hope that it is since then upgrading would fix my issue. ;-)


Thanks,

Paul


[1] http://wiki.contextgarden.net/Gnuplot

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-12-12  8:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-11 23:51 gnuplot: `! Undefined control sequence.` with format specifier % Paul Menzel
2011-12-12  0:02 ` Mojca Miklavec
2011-12-12  0:20   ` Paul Menzel
2011-12-12  0:27     ` Mojca Miklavec
2011-12-12  0:28     ` [solved] gnuplot: mpost: Not writing to .log (openout_any = p). (was: `! Undefined control sequence.` with format specifier %) Paul Menzel
2011-12-12  8:55       ` [solved] gnuplot: mpost: Not writing to .log (openout_any = p) Hans Hagen
2011-12-12  0:13 ` gnuplot: `! Undefined control sequence.` with format specifier % Mojca Miklavec
2011-12-12  0:30   ` Paul Menzel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).