Skip to content

lukmuk/inkscape-scientific-figure-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inkscape Scientific Figure Template

A simple Inkscape template for scientific figures 🎨

Contains sets of colors, text, and annotations to have a solid starting point for figure creation.

Download

Screenshot of the template showing different colors, text snippets, and annotations such as cicles, arrows, etc.

Notes and other useful things

Fiji: Images to svg vector graphics
  • Export via Biovoxxel Figure Tools
  • Open the svg image in Inkscape
  • Fiji annotations (e.g., scale bars from em-scalebartools) must be unlocked (Object -> Unlock All) and then ungrouped (Shift+Ctrl+G) for editing
Inkscape batch export to different formats

Figures may be needed in different file formats:

  • An inital manuscript draft in Word may have smaller rasterized images (e.g., 300 dpi png) to reduce file size.
  • A journal may require a specific file format during submission.

It can be tedious to manually export all figures to these formats. One can use the Inkscape command line to help with this issue. It can be used to batch export all svgs in a folder to the desired format!

  • Prepare your Inkscape figure, set the figure area as the 'Page' in Inkscape by selecting the relevant figure area and using Shift+Ctrl+R ('Resize Page to Selection')
  • I recommend putting a copy of each finalized figure in a separate folder, so that one has only the up-to-date svgs in it: Figure-1.svg, Figure-2.svg, ...
  • Start a terminal/Windows command line (type cmd in the address bar in Windows) in this folder and run the desired export command.

Examples: Batch export on Windows to 600 dpi (control via -d 600) PNGs. Run the following command from a folder containing the Inkscape SVGs:

  for %f in (*.svg) do "C:\Program Files\Inkscape\bin\inkscape.com" --export-filename=%~nf.png -d 600 %~nf.svg

Export on Windows to PDF:

for %f in (*.svg) do "C:\Program Files\Inkscape\bin\inkscape.com" --export-filename=%~nf.pdf %~nf.svg

Export on Windows to EPS:

for %f in (*.svg) do "C:\Program Files\Inkscape\bin\inkscape.com" --export-filename=%~nf.eps %~nf.svg
File compression
  • OptiPNG - Lossless PNG file compression. Especially useful if you want to maximize quality of a PNG in an upload mask with a file-size limit (e.g., 500 kB for an abstract submission).
    Batch conversion of all PNGs in a folder on Windows (copy the optipng.exe to the same folder):

      for %f in (*.png) do optipng.exe %f

Paper

About

A simple Inkscape template for scientific figures 🎨

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published