Subfigures in LaTeX

In documents we refer to figures by using “label” and “\ref” commands. If a figure is comprised of many subfigures, declare label to each subfigure and then we can refer to the subfigure labels. The main figure is referred using the label defined outside the subfigure environment. In the following […]

Inset figure in MatLab 2

This post explains how to plot data in main-inset figure. In inset figure a portion of main figure data is plotted in close-up. Some people referred to it as figure-within-figure or figure-inside-figure. To plot main-inset figure, follow the steps here: Create a handle to main figure Plot the data of […]

Tikz for Circuits -1 : Passives

Circuitikz provides a set of macros to type­set­ting elec­tronic net­works. It is based on pgf and TikZ packages. Here is the syntax for basic circuits to typeset using circuitikz in LaTeX tikzpicture environment . Ideal sources 1 2 3 4 5 6 7 8 9 \begin{tikzpicture} %——–start graphics code ——– […]

Getting started with TikZ 1

TikZ is a package used for programmatic creation of graphics in LaTex[ more info… ]. Points and paths are the basic elements used to draw pictures in TikZ. Points and Paths Path is drawn between two coordinates in a picture environment by specifying a “path extension operation”. The simplest path […]

Legend Settings in MatLab

This post describes how to handle expression and background color of legend box in MatLab figures. We can print LaTex expressions in legend box, by instructing the legend to interpret the following string as latex expression. Create the handle to legend box and set the interpreter option to latex as […]

Numbering Subplots in MatLab

This post describes how to mark subplots as , , and and give a common title for all subplots. Consider the case where we want to mark subplot(2,2,1) as . The circle around the letter is produced using latex command textcircled{a}. MatLab understands it as a latex command due to […]