Is there a way to convert ngspice waveform viewer graphs to png, for documentations
r
Roel Jordans
09/25/2024, 8:16 AM
ngspice has a
hardcopy
comand, it works similar to plot but saves the output to a .ps file (which can be converted to png).
The main difference is that you supply the output filename as part of the command (e.g.
hardcopy <http://output.ps|output.ps> ...
(with the dots replaced with what you would put in the plot command)
👍 1
d
Diarmuid Collins
09/28/2024, 6:38 AM
This is an good question. @Stefan Schippers: To save plots from xschems waveviewer I always just printscreen and the image saves as .png. This is fine but just wondering is there another way, for example which may let me save the attached image with a white background? Small thing really but just said Id ask.
j
Jnanapurushothama
09/28/2024, 6:40 AM
I was able to do it in ngspice window using hardcopy command and I later converted it to pdf
s
Stefan Schippers
09/28/2024, 5:35 PM
@Diarmuid Collins to save a svg or pdf or png image of the graphs with white background do the following:
• switch xschem to light colorscheme (View->Toggle colorscheme)
• drag a selection rectangle around the graphs you want in the hardcopy to select them
• File -> Image Export -> PNG or SVG or PDF
d
Diarmuid Collins
09/29/2024, 8:34 PM
@Stefan Schippers: Works perfectly! Great to know this feature exists. Thanks
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.