matplotlib / matplotlib/ipympl

y axis label cut off in log scale

Open
#464 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

As the title says. In Jupyter Lab the y label is cutoff if using log scale and the numbers on the scale get too long (i.e. more than just `10^n`, like `x * 10^n`).

![error](https://user-images.githubusercontent.com/7684542/164721796-1cf71c49-d187-4ce2-a36e-9c52c113d818.png)

```
IPython : 8.2.0
ipykernel : 6.13.0
ipywidgets : 7.7.0
jupyter_client : 7.2.2
jupyter_core : 4.9.2
jupyter_server : 1.16.0
jupyterlab : 3.3.4
nbclient : 0.6.0
nbconvert : 6.5.0
nbformat : 5.3.0
notebook : 6.4.11
qtconsole : not installed
traitlets : 5.1.1
```

Miniconda 4.12.0 (quite clean base env with just Jupyter Lab, other envs and ipykernel are also affected)
Python 3.9.12.final.0
Windows 10 (x64)

```
# Name Version Build Channel
matplotlib-base 3.5.1 py39h581301d_0 conda-forge
matplotlib-inline 0.1.3 pyhd8ed1ab_0 conda-forge
```

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Reproduce the issue in JupyterLab with a log-scaled y-axis and long tick labels, then trace the ipympl rendering and layout path. Done means the y-axis label and expanded tick labels are fully visible without being cut off.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, jupyter-notebook, python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.