Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Move plotting and geometry utilities to dedicated classes #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions WHATSNEW.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,34 @@ ProPlot v0.8.0 (2021-##-##)

.. rubric:: Features

* Add ``pad`` keyword to ``legend``, ``colorbar``, and ``panel`` that controls
tight layout padding, analogous to ``space`` (:pr:`###`).
* Fix ``wequal`` and ``hequal`` so they only work between main subplot
rows and columns instead of panels.
* Allow variable tight layout padding between subplot panels using ``wpad`` and
``hpad``, analogous to ``wspace`` and ``hspace`` (:pr:`###`).
* Support XDG directories for proplot configuration files, emit
warnings if multiple paths found (:issue:`###`).
* Add public `~proplot.config.RcConfigurator.user_file` and
`~proplot.config.RcConfigurator.user_folder` methods for displaying
folder locations (:commit:`b11d744a`).
* Add :rcraw:`colorbar.facecolor` and :rcraw:`colorbar.edgecolor` properties
analogous to legend properties for controlling frame (:pr:`264`).
* Allow list-of-list "centered row" ``legend`` specification with e.g.
``[h, [h1, h2, h3]]`` (i.e., mixed list and non-list input) (:pr:`264`).
* Permit partial specification of labels with "centered rows", e.g.
``labels=['label', None]`` can be combined with the above (:pr:`264`).
* Treat singleton lists and tuple ``legend`` input same as scalar
handle input, i.e. never triggers "centered row" specification (:pr:`264`).
* Silently ignore non-artist and non-container input -- e.g., ignore the bins
and values returned by ``hist`` (:pr:`264`).
* Support auto-detection of tuple-grouped legend handle labels when labels
not passed explicitly (:pr:`264`).
* Automatically pull out grouped tuples of artists if they have differing ``label``\ s
(:pr:`264`). This is convenient for passing error indications to ``legend``.
* Support more artist synonyms throughout plotting overrides, e.g. ``ec``
for ``edgecolor``, ``lw`` for ``linewidth``, ``fc`` and ``fillcolor`` for
``facecolor`` (:pr:`264`). This expands matplotlib synonyms.
* Support list-of-strings parametric coordinate and format on-the-fly colorbar ticks
with those string labels (:commit:`02fbda45`).
* Add new :rcraw:`leftlabel.rotation`, :rcraw:`toplabel.rotation`,
Expand Down
5 changes: 2 additions & 3 deletions proplot/axes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"""
import matplotlib.projections as mproj

from . import plot
from .base import Axes # noqa: F401
from .cartesian import CartesianAxes
from .geo import GeoAxes # noqa: F401
from .geo import BasemapAxes, CartopyAxes
from .plot import * # noqa: F401, F403
from .plot import PlotAxes # noqa: F401
from .polar import PolarAxes
from .three import Axes3D # noqa: F401

Expand All @@ -22,11 +21,11 @@
# Prevent importing module names and set order of appearance for objects
__all__ = [
'Axes',
'PlotAxes',
'CartesianAxes',
'PolarAxes',
'GeoAxes',
'CartopyAxes',
'BasemapAxes',
'Axes3D',
]
__all__.extend(plot.__all__) # document wrappers as part of proplot/axes submodule
Loading