Skip to content

scatter_matrix formatting considered harmful #1285

@jbednar

Description

@jbednar

ALL software version info

Python : 3.11.5 (main, Sep 11 2023, 08:31:25) [Clang 14.0.6 ]
Operating system : macOS-14.0-arm64-arm-64bit
Panel comms : default

holoviews : 1.18.3
bokeh : 3.3.4
colorcet : 3.0.1
dask : 2023.6.0
datashader : 0.16.0
geoviews : 1.11.0
hvplot : 0.9.2
IPython : 8.15.0
jupyterlab : 4.0.11
matplotlib : 3.8.0
notebook : 7.0.6
numba : 0.58.0
numpy : 1.24.3
pandas : 2.1.1
panel : 1.3.1
param : 2.0.1
pillow : 10.0.1
pyarrow : 11.0.0
pyviz_comms : 2.3.0
scipy : 1.11.3
spatialpandas : 0.4.9
xarray : 2023.6.0

Description of expected behavior and the observed behavior

I'd expect scatter_matrix to be formatted reasonably: subplots all lined up, axis labels readable, text not overlapping, and a single Bokeh toolbar for the entire figure. That's not what's happening:

import pandas as pd
import hvplot.pandas
from hvplot import scatter_matrix

url = 'https://raw.githubusercontent.com/shoukewei/data/main/data-pydm/gdp_top_six_economies.csv'
df = pd.read_csv(url)
scatter_matrix(df, alpha=0.5, width=600, height=600, xrotation=0)
image
scatter_matrix(df, alpha=0.5, width=600, height=600, xrotation=90)
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamAnything that requires work outside hvPlot

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions