Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf ·...

23
J J Vector Drawing for Electrical Engineers Essential Workflows Joel Jose Research Scholar IIT Bombay 1

Transcript of Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf ·...

Page 1: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

JJ

Vector Drawing for Electrical EngineersEssential Workflows

Joel JoseResearch Scholar

IIT Bombay

1

Page 2: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

The very ambitious content slide

• File formats• Inkscape• MATLAB• Gnuplot• C & Python• Matplotlib• CircuiTikZ• Beamer• moderncv

2

Page 3: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Disclaimers

Page 4: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Disclaimers

• This is not a hands-on session. Not enough time☹• We will only cover workflows, not the A-Z of these tools• Keep your questions (if any) for the end. That way we canintroduce more tools.

• The aim is to motivate you to use LATEX and vectorgraphics more

3

Page 5: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Motivation

Page 6: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

File Formats

source: www.xkcd.com

So are you still using jpeg figures and doc files?PS: If you are not following xkcd and phdcomics already, you should start today!

4

Page 7: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Inkscape

Page 8: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Inkscape

• Native format is SVG (actively developed)• Inkscape handles PDF files very well (can also open.eps,.ai files)

• Useful for modifying PDF files generated by otherprograms - will be demonstrated later

• Great as a stand-alone vector drawing application (almostas good as Adobe Illustrator)

• I use it a lot to extract images out of PDF files

5

Page 9: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Inkscape

• Demo:• Basic shapes, lines, snapping, guides, fill, stroke, arrows• Node tool• Rendering LATEX• Tracing bitmap

PS: Join Inkscape - Draw Freely. Facebook group to see some amazing artwork created using Inkscape.

https://www.facebook.com/groups/inkscape.org/

6

Page 10: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Sample Artwork

POWER ELECTRONICS&

POWER SYSTEMS

THE

TRANSFORMER

ALLEGIENCEPower Electronics

and Power Systems

IIT Bombay

7

Page 11: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

MATLAB

Page 12: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

MATLAB

• Problem? Difficult to get a PDF out of it without clipping,without whitespace around!

• The default colour palette is very boring• Can we get the data out of MATLAB and use some othertool for plotting? Enter GNUPLOT!

• Demo - saving data from MATLAB

8

Page 13: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Gnuplot

Page 14: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Gnuplot

• Cross-platform• Highly customizable• Plot data files (usually .dat) from any source:C, C++, Matlab, Python ...

• Demo - generate data from C program, plot simple files,adjust major attributes – labels, legends, title, logscale

Book: Philipp K. Janert, Gnuplot in Action (2nd ed.)., Manning Publications Co., Greenwich, CT, USA.

9

Page 15: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Matplotlib

Page 16: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Matplotlib

• Plot directly from where you generate data• Lot of options for customization• Very easy to learn – MATLAB like syntax• Save to SVG, PDF or EPS. Edit with Inkscape if needed• Additional packages to make xkcd like look• Demo - Line and scatter plots

http://matplotlib.org/gallery.html

10

Page 17: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

CircuiTikZ

Page 18: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

CircuiTikZ

• LaTeX package for typesetting electrical circuit diagrams.• Provides circuitikz environment• Advantages:

• No need for external figure files• Relative scaling of components is take care of• Text scales with document

https://www.ctan.org/pkg/circuitikz

11

Page 19: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Beamer Themes & Color Theory

Page 20: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Customizing Beamer Themes

• Default Beamer themes are ugly!• Find a custom theme online – this presentation usesmetropolis theme.

• Choose a color palette• Adobe Color CC (erstwhile Adobe Kuler)• Edit beamercolortheme<theme_name>.sty• Demo - MTP Slides

https://github.com/matze/mtheme

12

Page 21: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Wrap Up!

Page 22: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Creativity is intelligencehaving fun

Albert Einstein

13

Page 23: Vector Drawing for Electrical Engineers - Essential Workflowseestudentrg/ppt/Joel_Jose.pdf · Inkscape • NativeformatisSVG(activelydeveloped) • InkscapehandlesPDFfilesverywell(canalsoopen.eps,.aifiles)

Questions?

13