Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2837 > unrolled thread
| Started by | giacomo boffi <pecore@pascolo.net> |
|---|---|
| First post | 2015-03-21 19:44 +0100 |
| Last post | 2015-03-30 06:49 -0700 |
| Articles | 7 — 3 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
[cairolatex] 4.6 -> 5.0 regression giacomo boffi <pecore@pascolo.net> - 2015-03-21 19:44 +0100
Re: [cairolatex] 4.6 -> 5.0 regression Ethan A Merritt <EAMerritt@gmail.com> - 2015-03-21 21:40 -0700
sensible defaults? (was: [cairolatex] 4.6 -> 5.0 regression) giacomo boffi <pecore@pascolo.net> - 2015-03-22 09:33 +0100
Re: sensible defaults? giacomo boffi <pecore@pascolo.net> - 2015-03-22 10:30 +0100
Re: sensible defaults? (was: [cairolatex] 4.6 -> 5.0 regression) Ethan A Merritt <EAMerritt@gmail.com> - 2015-03-22 11:20 -0700
Re: sensible defaults? (was: [cairolatex] 4.6 -> 5.0 regression) Alex A <alexandreychenko@gmail.com> - 2015-03-30 06:07 -0700
Re: sensible defaults? (was: [cairolatex] 4.6 -> 5.0 regression) Alex A <alexandreychenko@gmail.com> - 2015-03-30 06:49 -0700
| From | giacomo boffi <pecore@pascolo.net> |
|---|---|
| Date | 2015-03-21 19:44 +0100 |
| Subject | [cairolatex] 4.6 -> 5.0 regression |
| Message-ID | <87a8z6favz.fsf@pascolo.net> |
I have the following test file
|set terminal cairolatex pdf standalone mono dashed
|set output 'test.tex'
|test
|set output
when I use gnuplot 4 ("gnuplot 4.6 patchlevel 6", i.e., the version
packaged in Debian testing) I get the expected results, when I use
gnuplot 5 ("gnuplot 5.0 patchlevel 0" that I downloaded and installed
today by a simple "./configure ; make ' make install") things are
different... a "test.tex" and a "test-inc.pdf" are produced as well
but when I try to process "test.tex" things are not OK
|$ pdflatex -interaction nonstopmode test.tex
|This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) (preloaded format=pdflatex)
| restricted \write18 enabled.
|entering extended mode
|(./test.tex
|LaTeX2e <2014/05/01>
|Babel <3.9l> and hyphenation patterns for 5 languages loaded.
|(/usr/share/texlive/texmf-dist/tex/latex/base/minimal.cls
|Document Class: minimal 2001/05/25 Standard LaTeX minimal class
|) (/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo)
|(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
|(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
|(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
|(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
|(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
|(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
|(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
|(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
|(/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty
|(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg))
|(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
|(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
|(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
|(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
|Using configuration file gnuplot.cfg
|(/usr/local/share/texmf/tex/latex/gnuplot/gnuplot.cfg
|(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
|(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def))) (./test.aux)
|(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
|[Loading MPS to PDF converter (version 2006.09.02).]
|) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
|(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty))
|(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
|(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
|(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))
|(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
|(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
|(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
|(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
|*geometry* detected driver: pdftex
|<test-inc.pdf, id=1, 361.35pt x 216.81pt> <use test-inc.pdf>
|! Missing $ inserted.
|<inserted text>
| $
|l.216 \gplfronttext
|
|! Extra }, or forgotten $.
|<argument> \strut {}Enhanced text: {x@_{0}^{n+1}}
|
|l.216 \gplfronttext
|
|! Extra }, or forgotten $.
|\@imakepicbox ...t@ #1\unitlength {\mb@l #4\mb@r }
| \mb@b \kern \z@ }
|l.216 \gplfronttext
|
|! Missing $ inserted.
|<inserted text>
| $
|l.216 \gplfronttext
|
|! Missing } inserted.
|<inserted text>
| }
|l.216 \gplfronttext
|
|! Missing } inserted.
|<inserted text>
| }
|l.216 \gplfronttext
|
|! Misplaced alignment tab character &.
|<argument> \strut {}&
| {Enhanced text: }{/:Bold Bold}{/:Italic Italic}
|l.216 \gplfronttext
|
|[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <./test-inc.pdf>]
|(./test.aux) )
|(see the transcript file for additional information){/usr/share/texmf/fonts/enc
|/dvips/cm-super/cm-super-t1.enc}</usr/share/texlive/texmf-dist/fonts/type1/publ
|ic/amsfonts/cm/cmmi8.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsf
|onts/cm/cmr8.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1095.pfb>
|Output written on test.pdf (1 page, 43845 bytes).
|--
|$
I can see the resulting file "test.pdf" that looks correct except for
a non trivial aspect, i.e., all the different line types are the same
(the same problem is of course present also in the "test-inc.pdf"
file, directly produced by gnuplot)
Summarizing, using "cairolatex pdf mono dashed" there are two
problems, both introduced by 5.0 and not present in 4.6
1. in the PDF file, using the options "mono dashed" all the lines are
of the same, undashed type
2. in the TeX file there is a minor error, that doesn't prevent the
compilation of the source but it's still an error
I add that these misbehaviors are not an artifact of the "test" command
but has been observed first during _normal_ operations
Thank you,
g
ps: I had almost forgot to check... also the "pdfcairo mono dashed"
terminal is affected by the same regression, i.e., all the lines are
not dashed
[toc] | [next] | [standalone]
| From | Ethan A Merritt <EAMerritt@gmail.com> |
|---|---|
| Date | 2015-03-21 21:40 -0700 |
| Message-ID | <melh2c$o7a$1@dont-email.me> |
| In reply to | #2837 |
giacomo boffi wrote:
> I have the following test file
>
> |set terminal cairolatex pdf standalone mono dashed
> |set output 'test.tex'
> |test
> |set output
Version 5.0 differs from earlier versions in several ways.
This is why it got a new major version number (4->5) rather
than just a bump from 4.6 to 4.8.
The keyword "dashed" is no longer needed, and indeed is ignored.
Instead you can set dashed lines at any time. Please read the
Release Notes and the section on significant changes in the
user manual.
Having said that, the error you report below doesn't seem related
to dashed lines. I believe the issue is that the "test" command
demonstrates a number of gnuplot features that are not supported
by all terminal types. In particular it prints a short string
in enhanced text mode, but enhanced text mode is not quite the
same as latex markup so it is not process correctly by the
cairolatex terminal. This can be considered a bug in the "test"
command, but it should not affect normal plotting.
Ethan
> when I use gnuplot 4 ("gnuplot 4.6 patchlevel 6", i.e., the version
> packaged in Debian testing) I get the expected results, when I use
> gnuplot 5 ("gnuplot 5.0 patchlevel 0" that I downloaded and installed
> today by a simple "./configure ; make ' make install") things are
> different... a "test.tex" and a "test-inc.pdf" are produced as well
> but when I try to process "test.tex" things are not OK
>
> |$ pdflatex -interaction nonstopmode test.tex
> |This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live
> |2015/dev/Debian) (preloaded format=pdflatex)
> | restricted \write18 enabled.
> |entering extended mode
> |(./test.tex
> |LaTeX2e <2014/05/01>
> |Babel <3.9l> and hyphenation patterns for 5 languages loaded.
> |(/usr/share/texlive/texmf-dist/tex/latex/base/minimal.cls
> |Document Class: minimal 2001/05/25 Standard LaTeX minimal class
> |) (/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo)
> |(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
> |(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
> |(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
> |(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
> |(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
> |(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
> |(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
> |(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
> |(/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty
> |(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg))
> |(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
> |(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
> |(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
> |(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
> |Using configuration file gnuplot.cfg
> |(/usr/local/share/texmf/tex/latex/gnuplot/gnuplot.cfg
> |(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
> |(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def)))
> |(./test.aux)
> |(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
> |[Loading MPS to PDF converter (version 2006.09.02).]
> |) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
> |(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty))
> |(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
> |(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
> |(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))
> |(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
> |(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
> |(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
> |(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
> |*geometry* detected driver: pdftex
> |<test-inc.pdf, id=1, 361.35pt x 216.81pt> <use test-inc.pdf>
> |! Missing $ inserted.
> |<inserted text>
> | $
> |l.216 \gplfronttext
> |
> |! Extra }, or forgotten $.
> |<argument> \strut {}Enhanced text: {x@_{0}^{n+1}}
> |
> |l.216 \gplfronttext
> |
> |! Extra }, or forgotten $.
> |\@imakepicbox ...t@ #1\unitlength {\mb@l #4\mb@r }
> | \mb@b \kern \z@ }
> |l.216 \gplfronttext
> |
> |! Missing $ inserted.
> |<inserted text>
> | $
> |l.216 \gplfronttext
> |
> |! Missing } inserted.
> |<inserted text>
> | }
> |l.216 \gplfronttext
> |
> |! Missing } inserted.
> |<inserted text>
> | }
> |l.216 \gplfronttext
> |
> |! Misplaced alignment tab character &.
> |<argument> \strut {}&
> | {Enhanced text: }{/:Bold Bold}{/:Italic Italic}
> |l.216 \gplfronttext
> |
> |[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}
> |[<./test-inc.pdf>]
> |(./test.aux) )
> |(see the transcript file for additional
> |information){/usr/share/texmf/fonts/enc
> |/dvips/cm-super/cm-super-t1.enc}</usr/share/texlive/texmf-dist/fonts/type1/publ
> |ic/amsfonts/cm/cmmi8.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsf
> |onts/cm/cmr8.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1095.pfb>
> |Output written on test.pdf (1 page, 43845 bytes). --
> |$
>
> I can see the resulting file "test.pdf" that looks correct except for
> a non trivial aspect, i.e., all the different line types are the same
> (the same problem is of course present also in the "test-inc.pdf"
> file, directly produced by gnuplot)
>
> Summarizing, using "cairolatex pdf mono dashed" there are two
> problems, both introduced by 5.0 and not present in 4.6
>
> 1. in the PDF file, using the options "mono dashed" all the lines are
> of the same, undashed type
>
> 2. in the TeX file there is a minor error, that doesn't prevent the
> compilation of the source but it's still an error
>
> I add that these misbehaviors are not an artifact of the "test"
> command but has been observed first during _normal_ operations
>
> Thank you,
> g
>
> ps: I had almost forgot to check... also the "pdfcairo mono dashed"
> terminal is affected by the same regression, i.e., all the lines are
> not dashed
[toc] | [prev] | [next] | [standalone]
| From | giacomo boffi <pecore@pascolo.net> |
|---|---|
| Date | 2015-03-22 09:33 +0100 |
| Subject | sensible defaults? (was: [cairolatex] 4.6 -> 5.0 regression) |
| Message-ID | <87384x5t3m.fsf_-_@pascolo.net> |
| In reply to | #2838 |
Ethan A Merritt <EAMerritt@gmail.com> writes: > giacomo boffi wrote: > >> I have the following test file >> >> |set terminal cairolatex pdf standalone mono dashed >> |set output 'test.tex' >> |test >> |set output > > Version 5.0 differs from earlier versions in several ways. > This is why it got a new major version number (4->5) rather > than just a bump from 4.6 to 4.8. > > The keyword "dashed" is no longer needed, and indeed is ignored. > Instead you can set dashed lines at any time. Please read the > Release Notes and the section on significant changes in the > user manual. Done, thank you. If one wants monochrome plots (I may be left alone in the world, but I'd prefer monochrome plots) one would like sensible defaults but "All lines have the property dashtype solid unless you specify otherwise." ======= Having said that I've found "colors_mono.gp", |# Provide a consistent set of four distinguishable |# black line types. |# NB: This does not work with "set term post mono" |# |unset for [i=1:8] linetype i |set linetype 4 dt 1 lw 2 lc rgb "black" |set linetype 3 dt 3 lw 1.5 lc rgb "black" |set linetype 2 dt 2 lw 1.5 lc rgb "black" |set linetype 1 dt solid lw 1 lc rgb "black" |set linetype cycle 4 |# |set palette gray is it possible to auto-load an analogous file when I specify a mono option in a "set terminal" command? Or, in any other possible way, is it possible to have sensible defaults for monochrome plots, especially when working interactively? The "dashed" option was indeed very convenient. RIP.
[toc] | [prev] | [next] | [standalone]
| From | giacomo boffi <pecore@pascolo.net> |
|---|---|
| Date | 2015-03-22 10:30 +0100 |
| Subject | Re: sensible defaults? |
| Message-ID | <87twxd4bwr.fsf@pascolo.net> |
| In reply to | #2839 |
giacomo boffi <pecore@pascolo.net> writes:
> Or, in any other possible way, is it possible to have sensible
> defaults for monochrome plots, especially when working
> interactively?
At page 166 of the fine manual I finally found what I need!
| The set termoption command allows you to change the behaviour of the
| current terminal without requiring a new set terminal command. Only
| one option can be changed per command, and only a small number of
| options can be changed this way. Currently the only options accepted
| are
|
| set termoption {no}enhanced
| set termoption font "<fontname>{,<fontsize>}"
| set termoption fontscale <scale>
| set termoption {solid|dashed}
| set termoption {linewidth <lw>}{lw <lw>}
Let's try it
|$ gnuplot
|
| G N U P L O T
| Version 5.0 patchlevel 0 last modified 2015-01-01
|
| Copyright (C) 1986-1993, 1998, 2004, 2007-2015
| Thomas Williams, Colin Kelley and many others
|
| gnuplot home: http://www.gnuplot.info
| faq, bugs, etc: type "help FAQ"
| immediate help: type "help" (plot window: hit 'h')
|
|Terminal type set to 'qt'
|gnuplot> set term pdfcairo mono
|Terminal type set to 'pdfcairo'
|Options are ' transparent enhanced fontscale 0.5 monochrome size 5.00in, 3.00in '
|gnuplot> set termoption dashed
no message of sort! it must be OK...
|gnuplot> set out 'pippo.pdf'
|gnuplot> plot sin(x), cos(x)
|gnuplot> set out
|gnuplot> ! evince pippo.pdf &
|gnuplot>
but wait... both lines are solid lines...
is this a bug? what else can I try?
[toc] | [prev] | [next] | [standalone]
| From | Ethan A Merritt <EAMerritt@gmail.com> |
|---|---|
| Date | 2015-03-22 11:20 -0700 |
| Subject | Re: sensible defaults? (was: [cairolatex] 4.6 -> 5.0 regression) |
| Message-ID | <men14b$nro$1@dont-email.me> |
| In reply to | #2839 |
giacomo boffi wrote:
> Ethan A Merritt <EAMerritt@gmail.com> writes:
>
>> giacomo boffi wrote:
>>
>>> I have the following test file
>>>
>>> |set terminal cairolatex pdf standalone mono dashed
>>> |set output 'test.tex'
>>> |test
>>> |set output
>>
>> Version 5.0 differs from earlier versions in several ways.
>> This is why it got a new major version number (4->5) rather
>> than just a bump from 4.6 to 4.8.
>>
>> The keyword "dashed" is no longer needed, and indeed is ignored.
>> Instead you can set dashed lines at any time. Please read the
>> Release Notes and the section on significant changes in the
>> user manual.
>
> Done, thank you. If one wants monochrome plots (I may be left alone
> in the world, but I'd prefer monochrome plots) one would like sensible
> defaults but
>
> "All lines have the property dashtype solid unless you specify
> otherwise."
>
> =======
>
> Having said that I've found "colors_mono.gp",
>
> |# Provide a consistent set of four distinguishable
> |# black line types.
> |# NB: This does not work with "set term post mono"
> |#
> |unset for [i=1:8] linetype i
> |set linetype 4 dt 1 lw 2 lc rgb "black"
> |set linetype 3 dt 3 lw 1.5 lc rgb "black"
> |set linetype 2 dt 2 lw 1.5 lc rgb "black"
> |set linetype 1 dt solid lw 1 lc rgb "black"
> |set linetype cycle 4
> |#
> |set palette gray
>
> is it possible to auto-load an analogous file when I specify a mono
> option in a "set terminal" command?
The idea is to move toward options being universal rather than
specific to a particular terminal or terminal setting.
I agree that it would be nice to have a series of mono setting
built in, analogous to "set colors {default|classic|podo}"
It might logically be controlled by "set colors mono" or just
"set mono". But neither of these is present in 5.0
> Or, in any other possible way, is it possible to have sensible
> defaults for monochrome plots, especially when working interactively?
>
> The "dashed" option was indeed very convenient. RIP.
As an alternative to "load 'colors_mono.gp'", I suggest trying
set for [i=1:N] linetype i dashtype i linecolor "black"
Ethan
[toc] | [prev] | [next] | [standalone]
| From | Alex A <alexandreychenko@gmail.com> |
|---|---|
| Date | 2015-03-30 06:07 -0700 |
| Subject | Re: sensible defaults? (was: [cairolatex] 4.6 -> 5.0 regression) |
| Message-ID | <ede64ef1-1893-48ea-9e59-427e02c41ee4@googlegroups.com> |
| In reply to | #2841 |
My question is not directly related to the issue here however it is probably the best place to ask.
I have just compiled gnuplot 5.0 from the source. However there is one important issue: now I don't have cairolatex terminal.
=====
Available terminal types:
canvas HTML Canvas object
cgm Computer Graphics Metafile
context ConTeXt with MetaFun (for PDF documents)
corel EPS format for CorelDRAW
=====
Could you please advice on what can be done with that? Did I compile from sources wrong? Shall I extensively use epslatex instead?
[toc] | [prev] | [next] | [standalone]
| From | Alex A <alexandreychenko@gmail.com> |
|---|---|
| Date | 2015-03-30 06:49 -0700 |
| Subject | Re: sensible defaults? (was: [cairolatex] 4.6 -> 5.0 regression) |
| Message-ID | <92cbb17a-f268-46b5-b911-e712e1c39966@googlegroups.com> |
| In reply to | #2848 |
I realized that there were some warnings during ./configure. I have resolved them by following the lines of this post: https://priyansmurarka.wordpress.com/2013/07/02/gnuplot-on-ubuntu-12-04/
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web