Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3605

Re: Format change converter to 5.0?

From Ethan A Merritt <EAMerritt@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Format change converter to 5.0?
Date 2017-04-01 15:16 -0700
Organization A noiseless patient Spider
Message-ID <obp8n3$422$1@dont-email.me> (permalink)
References <ek51vjFffU1@mid.individual.net> <obkhje$nu8$1@solani.org> <ek9cduFphepU1@mid.individual.net> <obp5ch$tnn$1@solani.org>

Show all headers | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Format change converter to 5.0? Olaf Schultz <o.schultz@enhydralutris.de> - 2017-03-30 20:44 +0200
  Re: Format change converter to 5.0? Karl Ratzsch <mail.kfr@gmx.net> - 2017-03-31 05:14 +0200
    Re: Format change converter to 5.0? Olaf Schultz <o.schultz@enhydralutris.de> - 2017-04-01 12:06 +0200
      Re: Format change converter to 5.0? Karl Ratzsch <mail.kfr@gmx.net> - 2017-04-01 23:17 +0200
        Re: Format change converter to 5.0? Ethan A Merritt <EAMerritt@gmail.com> - 2017-04-01 15:16 -0700
          Re: Format change converter to 5.0? Olaf Schultz <o.schultz@enhydralutris.de> - 2017-04-02 09:48 +0200
        Re: Format change converter to 5.0? Ethan A Merritt <EAMerritt@gmail.com> - 2017-04-01 15:32 -0700

csiph-web