12 Mar
2010
12 Mar
'10
4:50 p.m.
On Fri, 12 Mar 2010, Curiouslearn wrote:
Can someone please tell me why the code below does not (horizontally) center the figure? The caption is in the middle but the figure is not.
Thanks.
\usemodule[pgfplots] \starttext
\placefigure[here][fig:demand]{Demand Curve} {\starttikzpicture \startaxis[line width=1pt, axis x line = bottom, axis y line =left, xmin=0,xmax=60, ymax=120] \addplot[mark=none] coordinates {(0,100) (50,0)}; \stopaxis \stoptikzpicture}
\stoptext
Add a \hbox around \starttikzpicture ... \stoptikzpicture See http://archive.contextgarden.net/message/20090722.010815.d9c051d3.en.html and Hans's reply. Aditya