#828 WIP Add grid option to plotting functions.

Open rpgoldman Pseudo commit used to compare (74b332a...95df315)
Missing base report.

Unable to compare commits because the base of the pull request did not upload a coverage report.

Changes found in between 74b332a...95df315 (pseudo...base) which prevent comparing this pull request.

Showing 100 of 172 files from the diff.
Newly tracked file
arviz/wrappers/base.py changed.
Newly tracked file
arviz/data/base.py changed.
Newly tracked file
arviz/rcparams.py changed.
Newly tracked file
arviz/utils.py changed.
Newly tracked file
arviz/stats/stats.py changed.
Other files ignored by Codecov
setup.py has changed.
arviz/__init__.py has changed.
pyproject.toml has changed.
doc/conf.py has changed.
.pylintrc has changed.

@@ -3,10 +3,10 @@
Loading
3 3
from scipy.stats.mstats import rankdata
4 4
5 5
from ..data import convert_to_dataset
6 -
from .plot_utils import xarray_to_ndarray, get_plotting_function
7 6
from ..rcparams import rcParams
8 -
from ..utils import _var_names, _numba_var, get_coords
9 7
from ..stats.stats_utils import stats_variance_2d as svar
8 +
from ..utils import _numba_var, _var_names, get_coords
9 +
from .plot_utils import get_plotting_function, xarray_to_ndarray
10 10
11 11
12 12
def plot_parallel(

@@ -1,13 +1,8 @@
Loading
1 1
"""Autocorrelation plot of data."""
2 2
from ..data import convert_to_dataset
3 -
from .plot_utils import (
4 -
    default_grid,
5 -
    xarray_var_iter,
6 -
    filter_plotters_list,
7 -
    get_plotting_function,
8 -
)
9 3
from ..rcparams import rcParams
10 4
from ..utils import _var_names
5 +
from .plot_utils import default_grid, filter_plotters_list, get_plotting_function, xarray_var_iter
11 6
12 7
13 8
def plot_autocorr(

@@ -2,8 +2,8 @@
Loading
2 2
import matplotlib.pyplot as plt
3 3
import numpy as np
4 4
5 -
from . import backend_kwarg_defaults, backend_show
6 5
from ...plot_utils import _scale_fig_size
6 +
from . import backend_kwarg_defaults, backend_show, create_axes_grid
7 7
8 8
9 9
def plot_parallel(
@@ -31,9 +31,10 @@
Loading
31 31
    }
32 32
33 33
    figsize, _, _, xt_labelsize, _, _ = _scale_fig_size(figsize, textsize, 1, 1)
34 -
34 +
    backend_kwargs.setdefault("figsize", figsize)
35 +
    backend_kwargs["squeeze"] = True
35 36
    if ax is None:
36 -
        _, ax = plt.subplots(figsize=figsize, **backend_kwargs)
37 +
        _, ax = create_axes_grid(1, backend_kwargs=backend_kwargs)
37 38
38 39
    ax.plot(posterior[:, ~diverging_mask], color=colornd, alpha=shadend)
39 40

@@ -2,10 +2,10 @@
Loading
2 2
import matplotlib.pyplot as plt
3 3
import numpy as np
4 4
5 -
from . import backend_kwarg_defaults, backend_show
6 5
from ...distplot import plot_dist
7 6
from ...kdeplot import plot_kde
8 -
from ...plot_utils import make_label, _scale_fig_size, matplotlib_kwarg_dealiaser
7 +
from ...plot_utils import _scale_fig_size, make_label
8 +
from . import backend_kwarg_defaults, backend_show, matplotlib_kwarg_dealiaser
9 9
10 10
11 11
def plot_joint(
@@ -33,6 +33,8 @@
Loading
33 33
34 34
    figsize, ax_labelsize, _, xt_labelsize, linewidth, _ = _scale_fig_size(figsize, textsize)
35 35
36 +
    backend_kwargs.setdefault("figsize", figsize)
37 +
36 38
    if kind == "kde":
37 39
        types = "plot"
38 40
    elif kind == "scatter":
@@ -48,7 +50,7 @@
Loading
48 50
49 51
    if ax is None:
50 52
        # Instantiate figure and grid
51 -
        fig = plt.figure(figsize=figsize, **backend_kwargs)
53 +
        fig = plt.figure(**backend_kwargs)
52 54
        grid = plt.GridSpec(4, 4, hspace=0.1, wspace=0.1, figure=fig)
53 55
54 56
        # Set up main plot

@@ -3,15 +3,15 @@
Loading
3 3
from uuid import uuid4
4 4
5 5
import bokeh.plotting as bkp
6 -
from bokeh.models import ColumnDataSource, CDSView, GroupFilter, Span
7 6
import numpy as np
7 +
from bokeh.models import CDSView, ColumnDataSource, GroupFilter, Span
8 8
9 -
from . import backend_kwarg_defaults
10 -
from .. import show_layout
11 -
from ...kdeplot import plot_kde
9 +
from ....rcparams import rcParams
12 10
from ...distplot import plot_dist
11 +
from ...kdeplot import plot_kde
13 12
from ...plot_utils import _scale_fig_size, calculate_point_estimate
14 -
from ....rcparams import rcParams
13 +
from .. import show_layout
14 +
from . import backend_kwarg_defaults
15 15
16 16
17 17
def plot_pair(

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Unable to process changes.

No base report to compare against.

Files Coverage
arviz 91.69%
Project Totals (101 files) 91.69%
Loading