Skip to content

[BUG] labels overlap #2

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

Open
paulgavrikov opened this issue Feb 23, 2021 · 0 comments
Open

[BUG] labels overlap #2

paulgavrikov opened this issue Feb 23, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@paulgavrikov
Copy link
Owner

Describe the bug
Any row or col label will not wrap, but overlap if it is too long.

Minimal Code To Reproduce

from parallelplot import parallel_plot
import matplotlib.pyplot as plt
import numpy as np


def violin(data, fig, axes):
    axes.violinplot(data)


X = np.random.uniform(low=-1, high=1, size=(45, 512, 512))
# _parallel_plot_worker((0, X[0]), violin, figsize=(3, 6))

labels = ["this is a very long label blah blah blah" for _ in enumerate(X)]

parallel_plot(plot_fn=violin, data=X, grid_shape=(3, 15), cleanup=False,
              col_labels=labels, row_labels=labels)
plt.show()

Expected behavior
Labels should wrap.

@paulgavrikov paulgavrikov added the bug Something isn't working label May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant