Skip to content

MuhammedHasan/figure_panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Figure_Panel

Create figure panel for publications from svg files.

Installation

Creating a Python Environment

conda create -n figure_panel python=3.9 -y

Activate Created Environment

conda activate figure_panel

figure_panel installation

pip install git+https://github.com/MuhammedHasan/figure_panel.git

Cairo-SVG and Wand installation

conda install -c conda-forge cairosvg wand -y

Usage

figure_panel -f x.svg,y.svg,z.svg -o fig.pdf --width 1200 --fontsize 24

-f input svg files separated by , indicating figure arrange in the same row --width of figure in pixels and height determined based on the aspect ratio. --fontsize is relative to width so need adjustment accordingly.

-o output format .svg, .png and .pdf is supported.

figure_panel -f "[x.svg,y.svg],[z.svg, k.svg]" -o fig.pdf

[] indicates row in the panel. Figures labeled based on the sequence order in the input.

figure_panel -f "[x.svg, y.svg],[z.svg, [[x.svg, y.svg], [z.svg, k.svg]]]" -o fig.pdf

See examples for further examples and python api.

TODOS

  • [] Add more test-cases
  • [] Margin between figures
  • [] Padding between figures and labels
  • [] pdf input support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages