[Kst-plot/kst] eda097: Permit constant-valued generated vectors

Barth Netterfield netterfield at astro.utoronto.ca
Thu Apr 19 15:29:16 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/Kst-plot/kst
  Commit: eda097e16ac36a5694fbcadbb4103c18207b527d
      https://github.com/Kst-plot/kst/commit/eda097e16ac36a5694fbcadbb4103c18207b527d
  Author: D. V. Wiebe <dvw at phas.ubc.ca>
  Date:   2018-04-04 (Wed, 04 Apr 2018)

  Changed paths:
    M src/libkst/generatedvector.cpp

  Log Message:
  -----------
  Permit constant-valued generated vectors


  Commit: 8fd39aa1b624c225f22de5f22da2c37e6a07eea9
      https://github.com/Kst-plot/kst/commit/8fd39aa1b624c225f22de5f22da2c37e6a07eea9
  Author: D. V. Wiebe <dvw at phas.ubc.ca>
  Date:   2018-04-04 (Wed, 04 Apr 2018)

  Changed paths:
    M src/libkst/generatedvector.cpp

  Log Message:
  -----------
  While we're at it, allow monotonically decreasing generated vectors,
too.


  Commit: efd738717e950f40432c466d0dd4e829b9b90dc7
      https://github.com/Kst-plot/kst/commit/efd738717e950f40432c466d0dd4e829b9b90dc7
  Author: D. V. Wiebe <dvw at phas.ubc.ca>
  Date:   2018-04-04 (Wed, 04 Apr 2018)

  Changed paths:
    M src/libkst/generatedvector.cpp
    M src/libkst/vectorfactory.cpp
    M src/libkstapp/vectordialog.cpp
    M src/widgets/dialogdefaults.cpp

  Log Message:
  -----------
  Fix negative-going generated vectors in .kst files and vector dialog.

Negative-going (monotonically decreasing) generated vectors are
implemented by not assuming min==first and max==last.  This involves a
change to the .kst file by adding attributes "first" and "last" to the
<generatedvector> tag.  The "min" and "max" attributes are kept in the
tag for backwards compatibility.

A negative-going generated vector from 1 to 0 will be saved like:

      <generatedvector first="1" last="0" min="0" max="1" [...]

Previously this would have been just:

      <generatedvector min="0" max="1" [...]

This is sort-of backwards compatibile in the sense that an old kst will
simply ignore the first and last attributes and create a increasing vector
from 0 to 1, which is only sort-of right, becasue the created vector will
be backwards, but at least kst isn't going to reject the .kst file.

This commit changes the XML parsing so that:

  - if "first" exists, then the generated vector will use "first" and
    "last" as the start and end points of the vector.  In this case,
    the "min" and "max" attributes are ignored.

  - otherwise, it will use "min" as the start and "max" as the end
    point of the vector, creating a non-negative-going vector, as
    before.


  Commit: 4f6f7300e3de4b11e0500c0bdf96959408e827df
      https://github.com/Kst-plot/kst/commit/4f6f7300e3de4b11e0500c0bdf96959408e827df
  Author: D. V. Wiebe <dvw at phas.ubc.ca>
  Date:   2018-04-05 (Thu, 05 Apr 2018)

  Changed paths:
    M docbook/kst/data-chapter.docbook

  Log Message:
  -----------
  Merge branch 'master' of git.kde.org:kst-plot


  Commit: e6d3e94398eb38adb8b692954500c6c856add5d8
      https://github.com/Kst-plot/kst/commit/e6d3e94398eb38adb8b692954500c6c856add5d8
  Author: D. V. Wiebe <dvw at phas.ubc.ca>
  Date:   2018-04-05 (Thu, 05 Apr 2018)

  Changed paths:
    M pyKst/pykst.py

  Log Message:
  -----------
  Instead of faking the ImportError, just re-raise it with the updated
message.  This seems to make pyKst work in Python3.


  Commit: 3493c74a583a3ee02c5d6d9e07c2e01bf30c380b
      https://github.com/Kst-plot/kst/commit/3493c74a583a3ee02c5d6d9e07c2e01bf30c380b
  Author: Barth Netterfield <netterfield at astro.utoronto.ca>
  Date:   2018-04-11 (Wed, 11 Apr 2018)

  Changed paths:
    M src/libkstmath/histogram.cpp
    M src/plugins/fits/gaussian_unweighted/fitgaussian_unweighted.cpp
    M src/plugins/fits/gaussian_unweighted/fitgaussian_unweighted.h
    M src/plugins/fits/gaussian_unweighted/fitgaussian_unweightedconfig.ui
    M src/plugins/fits/gaussian_weighted/fitgaussian_weighted.cpp
    M src/plugins/fits/gaussian_weighted/fitgaussian_weighted.h
    M src/plugins/fits/gaussian_weighted/fitgaussian_weightedconfig.ui
    M src/plugins/fits/non_linear.h
    M src/plugins/fits/non_linear_weighted.h

  Log Message:
  -----------
  Improvements to gaussian fits.

-gaussian fits now have an optional DC offset.
-weighted fits labels fixed
-weighted fits initial guess improved.
-underlying code for other non-linear fits to have optional DC offsets.


  Commit: a3c9aaf60e6fdc4ceb5e5a753636df8f98eec299
      https://github.com/Kst-plot/kst/commit/a3c9aaf60e6fdc4ceb5e5a753636df8f98eec299
  Author: Barth Netterfield <netterfield at astro.utoronto.ca>
  Date:   2018-04-16 (Mon, 16 Apr 2018)

  Changed paths:
    M src/plugins/filters/flag/filterflag.cpp
    M src/plugins/fits/gaussian_unweighted/fitgaussian_unweighted.cpp
    M src/plugins/fits/gaussian_weighted/fitgaussian_weighted.cpp

  Log Message:
  -----------
  Improvements to saving and loading gaussian fits.

Still not perfect.


  Commit: 8d43c689d063c51ae5da02d145ce2fc1e7847084
      https://github.com/Kst-plot/kst/commit/8d43c689d063c51ae5da02d145ce2fc1e7847084
  Author: Barth Netterfield <netterfield at astro.utoronto.ca>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M src/plugins/fits/gaussian_unweighted/fitgaussian_unweighted.cpp
    M src/plugins/fits/gaussian_unweighted/fitgaussian_unweighted.h
    M src/plugins/fits/gaussian_weighted/fitgaussian_weighted.cpp
    M src/plugins/fits/gaussian_weighted/fitgaussian_weighted.h

  Log Message:
  -----------
  Fix saving gaussian fits with optional fixed offsets


  Commit: 6ae61f4a28d4196abf5e1c0a51cb106051a9b3cf
      https://github.com/Kst-plot/kst/commit/6ae61f4a28d4196abf5e1c0a51cb106051a9b3cf
  Author: Barth Netterfield <netterfield at astro.utoronto.ca>
  Date:   2018-04-19 (Thu, 19 Apr 2018)

  Changed paths:
    M src/plugins/fits/exponential_unweighted/fitexponential_unweighted.cpp

  Log Message:
  -----------
  Improvements to unweighted exponential fit.

-change fit to A exp(b(x-x0)) + C to allow very large values of X.
-use heuristics to get initial values for A.B.C
-Change default label.


Compare: https://github.com/Kst-plot/kst/compare/6afa76aabf71...6ae61f4a28d4


More information about the Kst mailing list