Graphics, Figures & Tablespgfgantt

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pikachu
Posts: 4
Joined: Sun Nov 22, 2009 11:27 pm

pgfgantt

Post by pikachu »

Hi, I am trying to create a Gantt-chart for my research report. My problem is that i cannot move the figure further towards the left margin and the right side extends over the right edge.

Yes I can reduce the size so it will fit, but I still cannot move it further to the left, which I would prefer...

This is what I'm using:

Code: Select all

\documentclass[a4paper]{memoir}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{pgfgantt}

\begin{document}
\begin{flushleft}
\begin{tikzpicture}[x=0.5cm, y=0.8cm]
\begin{ganttchart}
[vgrid,
title={draw=none, fill=RoyalBlue!50!black},
title label font=\sffamily\bfseries\color{white},
title label anchor={below=-1.6ex},
title left shift=.05,
title right shift=-.05,
title height=.8,
bar={draw=none, fill=OliveGreen!75},
bar height=.6,
bar label font=\normalsize\color{black!50},
group right shift=0,
group left shift=0,
group top shift=.3,
group height=.2,
group peaks={0}{0.5}{.2},
incomplete={fill=Maroon},
link={Black}]{30}
\gantttitle{2010}{6}
\gantttitle{2011}{12}
\gantttitle{2012}{12}\\
\ganttbar%
[progress=100, progress label font=\small\color{OliveGreen!75},
progress label anchor={right=4pt},
bar label font=\normalsize\color{OliveGreen}]%
{Preliminary cell observations}{1}{6} \\
%\ganttlink[link mid=.4]{6}{2}{3}{4}
\ganttlink[link mid=.15]{6}{2}{7}{7}
\ganttlink{18}{5}{16}{8}
\ganttset{progress label text={}, link={Black, -to}}
\ganttgroup{Device Fabrication}{3}{18} \\
\ganttbar[progress=80]{Graphene with contacts on PDMS}{3}{12} \\
\ganttlinkedbar[progress=10]{Electrical connection}{13}{18} \\
\ganttgroup{Device characterization}{7}{30} \\
\ganttbar[progress=15]{AFM indentation}{7}{15} \\
\ganttlinkedbar[progress=0]{Readout and analysis}{16}{18} \\
\ganttgroup{Objective 3}{9}{12} \\
\ganttbar[progress=0]{Task A}{9}{12}
\end{ganttchart}
\end{tikzpicture}
\end{flushleft}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply