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

GraphPanel widget: make it possible to export a graph panel to various formats (e.g. PDF, PNG, SVG) #1123

Closed
agarny opened this issue Oct 7, 2016 · 5 comments
Assignees
Labels
Milestone

Comments

@agarny
Copy link
Contributor

agarny commented Oct 7, 2016

Right now, we can 'only' copy the contents of a graph panel to the clipboard (using a raster graphics format), which is clearly not optimal. So, we could also offer to export to PDF, SVG and other graphics formats (e.g. PNG) supported by Qt (see here). This can easily be done using QwtPlotRenderer::renderDocument().

@agarny agarny added the Feature label Oct 7, 2016
@agarny agarny added this to the 0.6 milestone Oct 7, 2016
@agarny agarny self-assigned this Oct 7, 2016
@matthiaskoenig
Copy link

I want to export the graphics to some file format (png) with high resolution and size or vector graphics.
This is currently not possible. Important for adding results to presentation or documents.

Use case: I want to include simulation results in the SED-ML specification. Currently I can only use the screenshot for this.
See https://github.com/SED-ML/sed-ml/raw/master/specification/level-1-version-3/sed-ml-L1V3.pdf
Figure A.18

This is also needed to create the simulation results, i.e. plot2D images from a simulated combine archive.
It would be great if there is something like

  • export figure(s)
  • export combine archive with result (which would include the plot figures and the csv results)

Best Matthias

@agarny
Copy link
Contributor Author

agarny commented Sep 21, 2017

It would be great if there is something like

  • export figure(s)
  • export combine archive with result (which would include the plot figures and the csv results)

Your first point should be addressed by this issue. As for your second point, that would require creating a new issue.

@matthiaskoenig
Copy link

Opened a separate issue for this
#1419

agarny added a commit to agarny/opencor that referenced this issue Sep 26, 2017
…panel to various formats (e.g. PDF, PostScript, SVG) (opencor#1123).
@agarny agarny changed the title GraphPanel widget: make it possible to export a graph panel to various formats (e.g. PDF, PostScript, SVG) GraphPanel widget: make it possible to export a graph panel to various formats (e.g. PDF, SVG) Sep 26, 2017
agarny added a commit to agarny/opencor that referenced this issue Sep 26, 2017
@agarny agarny changed the title GraphPanel widget: make it possible to export a graph panel to various formats (e.g. PDF, SVG) GraphPanel widget: make it possible to export a graph panel to various formats (e.g. PDF, PNG, SVG) Sep 26, 2017
agarny added a commit to agarny/opencor that referenced this issue Sep 26, 2017
@agarny agarny closed this as completed in 9e0a5b1 Sep 26, 2017
@matthiaskoenig
Copy link

@agarny thanks for this.
Just for understanding: To use the functionality I have to wait for the next OpenCOR snapshot which will include this?

@agarny
Copy link
Contributor Author

agarny commented Sep 26, 2017

That is correct, although you can try to build OpenCOR yourself (see here and here). FWIW, I am hoping to generate a new snapshot sometime next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants