[pstricks] Rotating a pst-gantt chart?

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Feb 16 23:07:22 CET 2011


Am 16.02.2011 22:52, schrieb stefano franchi:

> I'm trying to rotate 90 degrees a pst-gantt chart to make it fit on the page.
> However, \rotateright has no effect on PstGanttChart environment (and
> it shouldn't, I suppose. \rotateright is supposed to be applied to
> objects).
> 
> Is there a specific PSTrics way of doing this? The usual Latex tricks
> (pdflscape, etc) don't seem to work .

please provide full working examples then we can see _why_ it did not work.

\documentclass[letterpaper,10pt]{memoir}
\usepackage{pst-gantt}
\usepackage{auto-pst-pdf}

\begin{document}

\begin{postscript}
\newpsstyle{Important}{fillstyle=solid,fillcolor=red}
\newpsstyle{NotImportant}{fillstyle=vlines}

\psrotateright{%
\begin{PstGanttChart}[unit=2,TaskOutsideLabelMaxSize=1,ChartShowIntervals]{5}{7}
\PstGanttTask[TaskOutsideLabel={Task 1}]{0}{3}
\PstGanttTask[TaskOutsideLabel={Task 2},TaskUnitType=Day]{15}{3}
\PstGanttTask[TaskStyle=Important,TaskOutsideLabel={Task 3},
    TaskInsideLabel={\Large\textcolor{white}{\textbf{Important}}}]{2}{5}
\PstGanttTask[TaskStyle=NotImportant,TaskOutsideLabel={Task 4}]{4}{2}
\PstGanttTask[TaskOutsideLabel={Task 5}]{5}{2}
\end{PstGanttChart}}
\end{postscript}

\end{document}

Herbert


More information about the PSTricks mailing list