Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ethan A Merritt Newsgroups: comp.graphics.apps.gnuplot Subject: Re: sensible defaults? (was: [cairolatex] 4.6 -> 5.0 regression) Date: Sun, 22 Mar 2015 11:20:43 -0700 Organization: A noiseless patient Spider Lines: 69 Message-ID: References: <87a8z6favz.fsf@pascolo.net> <87384x5t3m.fsf_-_@pascolo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Sun, 22 Mar 2015 18:19:56 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="7bbfccb08e3cb0f92ebf95516f5f5a81"; logging-data="24440"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PghyiVTZKEAPDFDe5eSo0" User-Agent: KNode/4.12.5 Cancel-Lock: sha1:Y56BpAE44xKY120AWgLQW8XDBLE= Xref: csiph.com comp.graphics.apps.gnuplot:2841 giacomo boffi wrote: > Ethan A Merritt 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