Coder Social home page Coder Social logo

inkscape-scientific-figure-template's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.