-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
578 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
Changelog | ||
============== | ||
|
||
All notable changes to this project will be documented here. | ||
|
||
`Development`_ | ||
-------------- | ||
|
||
.. note:: Changes noted in this subsection are to be released in the next version. | ||
If you're keen to check something out before its released, you can use a | ||
`development install <installation.html#development-installation>`__. | ||
|
||
|
||
`0.1.21`_ | ||
-------------- | ||
|
||
* Parallel coordinate plots | ||
* Updated :func:`~pyrolite.plot.pyroplot.scatter` and | ||
:func:`~pyrolite.plot.tern.ternary` to better deal with colormaps | ||
* Updated alphaMELTS interface | ||
* Docs | ||
* Updated to default to tables with percentages (Wt%, Vol%) | ||
* Updated plot templates y-labels | ||
* Fixed automation grid bug | ||
|
||
`0.1.20`_ | ||
-------------- | ||
|
||
New | ||
~~~~~~~~ | ||
|
||
* Stub for DataFrame.pyrochem accessor (yet to be developed) | ||
* Added :func:`pyrolite.util.skl.vis.plot_mapping` for manifold dimensional reduction | ||
* Added :func:`pyrolite.util.skl.vis.alphas_from_multiclass_prob` for visualising | ||
multi-class classification probabilities in scatter plots | ||
|
||
Updates | ||
~~~~~~~~ | ||
|
||
* Convert reference compositions and normalisation to use a JSON database | ||
* Updated default y-aspect for ternary plots and axes patches | ||
* Updated :mod:`pyrolite.ext.alphamelts.automation`, | ||
:mod:`pyrolite.ext.alphamelts.meltsfile`, :mod:`pyrolite.ext.alphamelts.tables` | ||
* Updated docs to use :class:`pyrolite.ext.alphamelts.automation.MeltsBatch` with a parameter grid | ||
* Added :mod:`pyrolite.plot.biplot` to API docs | ||
|
||
`0.1.19`_ | ||
-------------- | ||
|
||
`0.1.18`_ | ||
-------------- | ||
|
||
`0.1.17`_ | ||
-------------- | ||
|
||
`0.1.16`_ | ||
-------------- | ||
|
||
`0.1.15`_ | ||
-------------- | ||
|
||
`0.1.14`_ | ||
-------------- | ||
|
||
`0.1.13`_ | ||
-------------- | ||
|
||
`0.1.12`_ | ||
-------------- | ||
|
||
`0.1.11`_ | ||
-------------- | ||
|
||
`0.1.10`_ | ||
-------------- | ||
|
||
`0.1.9`_ | ||
-------------- | ||
|
||
`0.1.8`_ | ||
-------------- | ||
|
||
`0.1.7`_ | ||
-------------- | ||
|
||
`0.1.6`_ | ||
-------------- | ||
|
||
`0.1.5`_ | ||
-------------- | ||
|
||
`0.1.4`_ | ||
-------------- | ||
|
||
`0.1.2`_ | ||
-------------- | ||
|
||
`0.1.1`_ | ||
-------------- | ||
|
||
`0.1.0`_ | ||
-------------- | ||
|
||
|
||
.. _Development: https://github.com/morganjwilliams/pyrolite/compare/0.1.21...develop | ||
.. _0.1.21: https://github.com/morganjwilliams/pyrolite/compare/0.1.20...0.1.21 | ||
.. _0.1.20: https://github.com/morganjwilliams/pyrolite/compare/0.1.19...0.1.20 | ||
.. _0.1.19: https://github.com/morganjwilliams/pyrolite/compare/0.1.18...0.1.19 | ||
.. _0.1.18: https://github.com/morganjwilliams/pyrolite/compare/0.1.17...0.1.18 | ||
.. _0.1.17: https://github.com/morganjwilliams/pyrolite/compare/0.1.16...0.1.17 | ||
.. _0.1.16: https://github.com/morganjwilliams/pyrolite/compare/0.1.15...0.1.16 | ||
.. _0.1.15: https://github.com/morganjwilliams/pyrolite/compare/0.1.14...0.1.15 | ||
.. _0.1.14: https://github.com/morganjwilliams/pyrolite/compare/0.1.13...0.1.14 | ||
.. _0.1.13: https://github.com/morganjwilliams/pyrolite/compare/0.1.12...0.1.13 | ||
.. _0.1.12: https://github.com/morganjwilliams/pyrolite/compare/0.1.11...0.1.12 | ||
.. _0.1.11: https://github.com/morganjwilliams/pyrolite/compare/0.1.10...0.1.11 | ||
.. _0.1.10: https://github.com/morganjwilliams/pyrolite/compare/0.1.9...0.1.10 | ||
.. _0.1.9: https://github.com/morganjwilliams/pyrolite/compare/0.1.8...0.1.9 | ||
.. _0.1.8: https://github.com/morganjwilliams/pyrolite/compare/0.1.7...0.1.8 | ||
.. _0.1.7: https://github.com/morganjwilliams/pyrolite/compare/0.1.6...0.1.7 | ||
.. _0.1.6: https://github.com/morganjwilliams/pyrolite/compare/0.1.5...0.1.6 | ||
.. _0.1.5: https://github.com/morganjwilliams/pyrolite/compare/0.1.4...0.1.5 | ||
.. _0.1.4: https://github.com/morganjwilliams/pyrolite/compare/0.1.2...0.1.4 | ||
.. _0.1.2: https://github.com/morganjwilliams/pyrolite/compare/0.1.1...0.1.2 | ||
.. _0.1.1: https://github.com/morganjwilliams/pyrolite/compare/0.1.0...0.1.1 | ||
.. _0.1.0: https://github.com/morganjwilliams/pyrolite/compare/0.0.17...0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import numpy as np | ||
import pandas as pd | ||
import matplotlib.pyplot as plt | ||
import matplotlib.axes | ||
import pyrolite.plot | ||
import pyrolite.data.Aitchison | ||
|
||
# %% Data | ||
# let's load up an example dataset from Aitchison | ||
df = pyrolite.data.Aitchison.load_coxite() | ||
comp = [ | ||
i for i in df.columns if i not in ["Depth", "Porosity"] | ||
] # compositional data variables | ||
# %% Default | ||
ax = df.pyroplot.parallel() | ||
# %% save | ||
from pyrolite.util.plot import save_figure | ||
|
||
save_figure(ax.figure, save_at="../../source/_static", name="parallel_default") | ||
# %% Default Rescale | ||
ax = df.pyroplot.parallel(rescale=True) | ||
# %% save | ||
save_figure(ax.figure, save_at="../../source/_static", name="parallel_rescale") | ||
# %% CLR | ||
from pyrolite.util.skl.transform import CLRTransform | ||
|
||
cmap = "inferno" | ||
compdata = df.copy() | ||
compdata[comp] = CLRTransform().transform(compdata[comp]) | ||
ax = compdata.loc[:, comp].pyroplot.parallel(color_by=compdata.Depth.values, cmap=cmap) | ||
|
||
# we can add a meaningful colorbar to indicate one variable also, here Depth | ||
sm = plt.cm.ScalarMappable(cmap=cmap) | ||
sm.set_array(df.Depth) | ||
plt.colorbar(sm) | ||
# %% save | ||
save_figure(ax.figure, save_at="../../source/_static", name="parallel_CLR") | ||
# %% CLR Rescale | ||
ax = compdata.loc[:, comp].pyroplot.parallel( | ||
rescale=True, color_by=compdata.Depth.values, cmap=cmap | ||
) | ||
plt.colorbar(sm) | ||
# %% save | ||
save_figure(ax.figure, save_at="../../source/_static", name="parallel_CLR_rescale") |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Changelog | ||
============= | ||
|
||
.. include:: ../../CHANGELOG.rst | ||
:start-line: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.