Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Olaf Schultz Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Format change converter to 5.0? Date: Sun, 2 Apr 2017 09:48:06 +0200 Lines: 82 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: individual.net qDqmHY2m4CtD/WYAOCtgywsuufe/2EmphM4vC6djZyS9L5vrpa Cancel-Lock: sha1:6tU45p2FH8Uc2+SaBFt9XmLNpxI= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Xref: csiph.com comp.graphics.apps.gnuplot:3607 On 04/02/17 00:16, Ethan A Merritt wrote: > Karl Ratzsch wrote: > >> Am 01.04.2017 um 12:06 schrieb Olaf Schultz: >> >>> But I have also a lot of other files coming from 4.3.... where not >>> only this lines needs to be converted because just two \042 have to >>> be removed in several lines. >>> >>> And if I go and write an awk-script for that... Should have started >>> in the past with just saving empty plit-files to find the diff with >>> old/new version and what to be removed/changed. Maybe I will do >>> this... >>> >>> Just to state: I like gnuplot, use it frequently since approx. 20 >>> years, at home and in the job... but this tiny but nerving format >>> changes. Seem that I have to do it as on the job (there 4.6.1 is the >>> most actual version;-)... install several versions also at home:-( >>> >>> Olaf >> >> Well, it's sometimes a toss-up between adding new features with a >> sensible syntax, and keeping things backwards compatible. And I must >> say that the developers are trying very hard to do both >> >> (Although I say the "set timefmt x" thing was more a bug, an >> undocumented feature should never have made it into the default >> saved plot files, imho.) >> >> Best thing i can recommend is to not build plots online on the >> gnuplot console and then save them to .plt file, but write the >> script by yourself, and always load it from the script file. That >> way you are sure they contain just everything you need, and it's >> much easier to later re-work the plot, be it because of a syntax >> change or because you want something changed in the plot. >> >> A "save" option that omits all default settings would be nice, but >> also probably a nightmare to write and debug. Some commands have >> just too many options. >> Karl > > There is a separate utility script "gpsavediff" that strips out all > the default options from a saved script. However it assumes that the > current version of gnuplot that it runs matches the version that > created the script. So it's useful at the time you save something, > but not so much as a tool to clean up scripts saved a long time ago. > > I.e., the usual use is like this: > > gnuplot> ... plot some stuff ... > gnuplot> save "|gpsavediff > myplot.gp" > > or like this: > > $ gpsavediff < fulldump.gp > cleanup_up.gp > > > You can download a copy of the gpsavediff script here: > > http://gnuplot.sourceforge.net/scripts/files/gpsavediff > > > - Ethan > Thanks, that should solve that. About the other answer... that's live... If I have a look in the .gnu-files... they are long... and I don't carry much about the top... (seem to be not the only one;-) Just modifying the last lines in an $Editor. Especially if I have to create 20 multiplots with 3 windows for and approx 20 curves per page (6 per plot) in total to be displayed. Use it in an editor, output ps>pdf>pdfcrop (our sysads don't provide pdf native...)* Don't know how to get such a good overview and pictures traceable back for the next 30+ years in XLS:-) Olaf *I'am a lucky guy to convince them to install 4.6 WITH readline (not default version).