question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Snapshot routines should allow users to specify image width/height

See original GitHub issue

Motivated by https://github.com/plotly/plotly.js/issues/42#issuecomment-162520017

At the moment, the Snapshot.toImage has hard-coded width and height parameters.

Something like:

Plotly.Snapshot.toImage(gd, {format: 'png', width: 1000, height: 800});

Moreover, maybe the on-success handler used by the modebar toImage button could be used as the default on-success handler to Snapshot.toImage

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
timelyportfoliocommented, Apr 7, 2016

Yes, I just started working through this. Here is the very preliminary set of thoughts. By the end of the week, I hope to have a full plan to address this. Is that ok?

0reactions
etpinardcommented, May 16, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Snapshot of a SwiftUI View | Apple Developer Forums
The view always has width of 0 and a height of 0. I forced the view to load by adding self.loadView() as a...
Read more >
Setting Height And Width On Images Is Important Again
To prevent layout shifts and improve performance scores, we need to always set width and height attributes on our images.
Read more >
WordPress Image Sizes Explained (And How to Add Custom ...
The name you give your custom image size; The image width in pixels; The image height in pixels; Should the image be cropped...
Read more >
Resize Your Image Without Losing Quality - YouTube
You've found the perfect image to use on your website or project, but when you download it you ... Image & Screenshot Editing...
Read more >
Always Up-To-Date Guide to Social Media Image Sizes
From Twitter to Facebook to Pinterest, here's a guide to every important social media image size, always kept up-to-date.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found