Bug 455215 - Show plot results in vector format
Summary: Show plot results in vector format
Status: RESOLVED FIXED
Alias: None
Product: cantor
Classification: Applications
Component: general (show other bugs)
Version: 22.04.2
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Cantor Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-13 14:25 UTC by heqromancer
Modified: 2023-10-22 08:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 23.12
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description heqromancer 2022-06-13 14:25:43 UTC
SUMMARY
When plotting, the result image is added right under the command box that launched it. It would be cool to save the image as something like SVG instead of the way it does right now (currently, the plots will be blurry if you zoom in enough). That way, when using the Print feature we would not only have a high quality representation of the saved Cantor session but also capturing the plots in the 'proper' way. 

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.15.45-1-lts (64-bit)
Graphics Platform: X11
Processors: 2 × Intel® Celeron® N4000 CPU @ 1.10GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 600
Comment 1 Alexander Semke 2022-06-14 07:23:47 UTC
(In reply to heqromancer from comment #0)
> SUMMARY
> When plotting, the result image is added right under the command box that
> launched it. It would be cool to save the image as something like SVG
> instead of the way it does right now (currently, the plots will be blurry if
> you zoom in enough). That way, when using the Print feature we would not
> only have a high quality representation of the saved Cantor session but also
> capturing the plots in the 'proper' way. 
Yes, this is already on my TODO-list and I'll start working on this soon. The plan is to switch to PDF or SVG internally (Maxima, Octave, etc. can also generate PDF) and re-render during zooming. Also, it will be possible to save the plot results as a file in PNG, JPEG, SVG, etc.
Comment 2 Alexander Semke 2023-09-18 06:47:02 UTC
This was implemented now for Maxima, Octave, Sage and Python and it's work in progress for other systems. In the application settings it's possible now to specify the format of the produced plot results (PDF, SVG and PNG) and its size. In the worksheet you can do "Save result" from the context menu of the plot and save the image in its original format. Please give it a try.
Comment 3 heqromancer 2023-10-21 15:16:15 UTC
(In reply to Alexander Semke from comment #2)
> This was implemented now for Maxima, Octave, Sage and Python and it's work
> in progress for other systems. In the application settings it's possible now
> to specify the format of the produced plot results (PDF, SVG and PNG) and
> its size. In the worksheet you can do "Save result" from the context menu of
> the plot and save the image in its original format. Please give it a try.

Worked flawlessly in Octave.
Comment 4 Alexander Semke 2023-10-22 08:58:49 UTC
(In reply to heqromancer from comment #3)
> (In reply to Alexander Semke from comment #2)
> > This was implemented now for Maxima, Octave, Sage and Python and it's work
> > in progress for other systems. In the application settings it's possible now
> > to specify the format of the produced plot results (PDF, SVG and PNG) and
> > its size. In the worksheet you can do "Save result" from the context menu of
> > the plot and save the image in its original format. Please give it a try.
> 
> Worked flawlessly in Octave.
Thanks for the confirmation!