Skip to content
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

Generating a pdf from a graph truncates the image #2481

Closed
rchiodo opened this issue Jan 6, 2020 · 2 comments
Closed

Generating a pdf from a graph truncates the image #2481

rchiodo opened this issue Jan 6, 2020 · 2 comments
Assignees

Comments

@rchiodo
Copy link
Contributor

rchiodo commented Jan 6, 2020

Create a plot that's rather wide (I used this code below):

#%%
from time import sleep
import numpy as np

from livelossplot import PlotLosses

#%%
liveplot = PlotLosses()

for i in range(20):
    liveplot.update({
        'accuracy': 1 - np.random.rand() / (i + 2.),
        'val_accuracy': 1 - np.random.rand() / (i + 0.5),
        'mse': 1. / (i + 2.),
        'val_mse': 1. / (i + 0.5)
    })
    liveplot.draw()
    sleep(1.)

Open the plot viewer
export to PDF

Expected result:
Full image is in the PDF.

Actual result:
image

@greazer
Copy link
Contributor

greazer commented Feb 15, 2020

Not killer, but I would argue that this significantly affects the usefulness of "export to pdf"

@DonJayamanne DonJayamanne self-assigned this Mar 12, 2020
@rchiodo
Copy link
Contributor Author

rchiodo commented Mar 16, 2020

Validated

@rchiodo rchiodo closed this as completed Mar 16, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Mar 27, 2020
@microsoft microsoft unlocked this conversation Nov 13, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 13, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants