## pgf-users — A general list for discussions about pgf and TikZ.

You can subscribe to this list here.

 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 Jan Feb Mar Apr May Jun Jul (1) Aug (1) Sep (5) Oct (2) Nov (6) Dec (1) Jan (1) Feb (6) Mar (10) Apr (1) May (4) Jun (6) Jul (4) Aug (1) Sep (9) Oct (30) Nov (13) Dec (37) Jan (22) Feb (44) Mar (41) Apr (38) May (82) Jun (100) Jul (61) Aug (61) Sep (66) Oct (79) Nov (43) Dec (33) Jan (128) Feb (175) Mar (131) Apr (83) May (84) Jun (101) Jul (105) Aug (93) Sep (151) Oct (142) Nov (96) Dec (68) Jan (72) Feb (94) Mar (58) Apr (29) May (48) Jun (67) Jul (86) Aug (46) Sep (81) Oct (90) Nov (84) Dec (112) Jan (69) Feb (108) Mar (91) Apr (61) May (90) Jun (53) Jul (46) Aug (64) Sep (79) Oct (56) Nov (108) Dec (36) Jan (66) Feb (69) Mar (46) Apr (58) May (73) Jun (45) Jul (24) Aug (17) Sep (25) Oct (23) Nov (19) Dec (16) Jan (7) Feb (31) Mar (12) Apr (27) May (17) Jun (20) Jul (11) Aug (31) Sep (12) Oct (6) Nov (7) Dec (8) Jan (23) Feb (22) Mar (18) Apr (1) May (1) Jun (4) Jul Aug (9) Sep (10) Oct (20) Nov (16) Dec (5) Jan (1) Feb (1) Mar (12) Apr (3) May (3) Jun Jul (4) Aug (2) Sep (4) Oct Nov Dec
S M T W T F S

1
(7)
2
(2)
3
(4)
4
(2)
5

6
(1)
7
(4)
8
(8)
9
(5)
10
(2)
11

12

13
(4)
14

15
(3)
16

17

18

19
(2)
20
(6)
21
(3)
22

23
(5)
24
(8)
25
(1)
26
(1)
27
(7)
28
(2)
29

30
(2)

Showing results of 79

1 2 3 4 > >> (Page 1 of 4)
 Re: [Pgf-users] Plotting polynomials From: Matthew Leingang - 2010-09-30 18:11:00 Hi David, It really just is too large. pgfmath stores numbers as lengths in points, and TeX (which is not a math program in the first place) has a limit to the size of length it can hold in its memory. (-20)^4 is 160,000, and 160Kpt is about 185ft. The maximum dimension TeX can hold is just under 2^30pt =16384pt < 19ft. Do you need such a large window on the plot? Because you could decrease the domain enough to avoid the overflow errors. But if you really need this function on this interval, use the gnuplot interface instead. Best, Matthew On Sep 30, 2010, at 1:42 PM, David Arnold wrote: > All, > > I exported this result from Geogebra. > > \documentclass[10pt]{article} > \usepackage{pgf,tikz} > \usetikzlibrary{arrows} > \pagestyle{empty} > \begin{document} > \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75} > \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.25cm,y=7.0E-4cm] > \draw [color=cqcqcq,dash pattern=on 2pt off 2pt, xstep=0.5cm,ystep=0.7cm] (-20,-3000) grid (10,7000); > \draw[->,color=black] (-20,0) -- (10,0); > \foreach \x in {-20,-18,-16,-14,-12,-10,-8,-6,-4,-2,2,4,6,8,10} > \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; > \draw[->,color=black] (0,-3000) -- (0,7000); > \foreach \y in {-2000,-1000,1000,2000,3000,4000,5000,6000} > \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; > \draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$}; > \clip(-20,-3000) rectangle (10,7000); > \draw[smooth,samples=100,domain=-20.0:10.000000000000002] plot(\x,{0-\x^4-10*\x^3+101*\x^2+270*\x-1800}); > \draw[color=black] (-15.08,-2778.19) node {$f$}; > \end{tikzpicture} > \end{document} > > It errors with the message: > > ./junk.tex:17: Dimension too large. > \pgfmath@... > > l.17 ...(\x,{0-\x^4-10*\x^3+101*\x^2+270*\x-1800}) > > Can someone share the standard strategy for plotting polynomials such as this one? > > Thanks. > > David Arnold > College of the Redwoods > Eureka, CA > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > pgf-users mailing list > pgf-users@... > https://lists.sourceforge.net/lists/listinfo/pgf-users > -- Matthew Leingang | leingang@... Clinical Associate Professor of Mathematics | Vice Chair for Undergraduate Affairs Courant Institute of Mathematical Sciences | Department of Mathematics 
 [Pgf-users] Plotting polynomials From: David Arnold - 2010-09-30 17:42:19 All, I exported this result from Geogebra. \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.25cm,y=7.0E-4cm] \draw [color=cqcqcq,dash pattern=on 2pt off 2pt, xstep=0.5cm,ystep=0.7cm] (-20,-3000) grid (10,7000); \draw[->,color=black] (-20,0) -- (10,0); \foreach \x in {-20,-18,-16,-14,-12,-10,-8,-6,-4,-2,2,4,6,8,10} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; \draw[->,color=black] (0,-3000) -- (0,7000); \foreach \y in {-2000,-1000,1000,2000,3000,4000,5000,6000} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; \draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$}; \clip(-20,-3000) rectangle (10,7000); \draw[smooth,samples=100,domain=-20.0:10.000000000000002] plot(\x,{0-\x^4-10*\x^3+101*\x^2+270*\x-1800}); \draw[color=black] (-15.08,-2778.19) node {$f$}; \end{tikzpicture} \end{document} It errors with the message: ./junk.tex:17: Dimension too large. \pgfmath@... l.17 ...(\x,{0-\x^4-10*\x^3+101*\x^2+270*\x-1800}) Can someone share the standard strategy for plotting polynomials such as this one? Thanks. David Arnold College of the Redwoods Eureka, CA 
 Re: [Pgf-users] Several questions about customizing a plot (with files) From: Christian Feuersaenger - 2010-09-28 09:14:28 Attachments: 00_PGF_MainDocument.tex     myTable_01_c.dat Hello Manuel, I worked on your questions and wrote suggestions into your main document; see attachment for details. I think I produced suggestions for all of your questions, with the exception of >> 5. I would like to have the x-axis limit to be taken from tha maximum x-value (column name 'Trial') of the table file 'myTable_01_a.dat' - now I just hard coded it. Is this possible? The answer here is: yes, that is possible: place \begin{pgfplotsinterruptdatabb} \end{pgfplotsinterruptdatabb} around the plots which shall not modify the data bounding box (i.e. the limits). However, it seems that the lower x limit (xmin=1) must be noted as "xmin=0.999", probably due to internal round-off (strange, I'll look into it). Up to the problem with xmin=0.999. I hope this is what you had in mind. Best regards Christian > Message: 8 > Subject: [Pgf-users] Several questions about customizing a plot (with > files) > To:pgf-users@... > Message-ID:<4CA19F05.7070304@...> > Content-Type: text/plain; charset="iso-8859-1" > > Hello all together, > I have some questions about my diagram. Maybe you can help me out - as > you can see, I really tried to make a structured and clean file. I tried > to solve on my own the problems for several hours. > > The file 'Wishes.pdf' shows the problems. Since it is to big for this > list, I put it online: > > http://dl.dropbox.com/u/1833443/Wishes.pdf > > 1. I would like to have the x-axis label below the axis and centered. > > 2. I woudl like the x-axis ticks to start with 1 (it starts with one, > but the one is not shown) > > 3. I indicate two special data points with a circular marker (mark=o) - > but I don't know how to change the line width. > > 4. I would like to add a annotation to the special data points - the > source for the string/code should be a column in the table file. I just > saw a example (point meta = explicit symbolic) in the documentation > where the code is in the latex file. > > Example from docu: > > %------------------------------------- > % Preamble: \pgfplotsset{width=7cm,compat=1.3} > \begin{tikzpicture} > \begin{axis}[nodes near coords,enlargelimits=0.2] > \addplot+[only marks, > point meta=explicit symbolic] > coordinates { > (0.5,0.2) [(1)] > (0.2,0.1) [(2)] > (0.7,0.6) [(3)] > (0.35,0.4) [(4)] > (0.65,0.1) [(5)] > }; > \end{axis} > \end{tikzpicture} > %------------------------------------- > > 5. I would like to have the x-axis limit to be taken from tha maximum > x-value (column name 'Trial') of the table file 'myTable_01_a.dat' - now > I just hard coded it. Is this possible? > > Thanks a lot! > Manuel > > 
 [Pgf-users] Several questions about customizing a plot (with files) From: Manuel Kuehner - 2010-09-28 07:55:29 Attachments: myTable_01_a.dat     myTable_01_b.dat     myTable_01_c.dat     myTable_01_d.dat     00_PGF_MainDocument.tex Hello all together, I have some questions about my diagram. Maybe you can help me out - as you can see, I really tried to make a structured and clean file. I tried to solve on my own the problems for several hours. The file 'Wishes.pdf' shows the problems. Since it is to big for this list, I put it online: http://dl.dropbox.com/u/1833443/Wishes.pdf 1. I would like to have the x-axis label below the axis and centered. 2. I woudl like the x-axis ticks to start with 1 (it starts with one, but the one is not shown) 3. I indicate two special data points with a circular marker (mark=o) - but I don't know how to change the line width. 4. I would like to add a annotation to the special data points - the source for the string/code should be a column in the table file. I just saw a example (point meta = explicit symbolic) in the documentation where the code is in the latex file. Example from docu: %------------------------------------- % Preamble: \pgfplotsset{width=7cm,compat=1.3} \begin{tikzpicture} \begin{axis}[nodes near coords,enlargelimits=0.2] \addplot+[only marks, point meta=explicit symbolic] coordinates { (0.5,0.2) [(1)] (0.2,0.1) [(2)] (0.7,0.6) [(3)] (0.35,0.4) [(4)] (0.65,0.1) [(5)] }; \end{axis} \end{tikzpicture} %------------------------------------- 5. I would like to have the x-axis limit to be taken from tha maximum x-value (column name 'Trial') of the table file 'myTable_01_a.dat' - now I just hard coded it. Is this possible? Thanks a lot! Manuel http://www.bipede.de 
 [Pgf-users] Loading tikz-qtree side effects tikz node placement? From: Georg Sauthoff - 2010-09-27 15:55:21 Hi, it seems that just loading the tikz-qtree packages influences the standard tikz \node placement. Consider this example without tikz-qtree loading: \documentclass{article} \usepackage{tikz} %\usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \node {R} [grow=right] child child ; \end{tikzpicture} \end{document I get as expected mini tree rotated counterclockwise by 90 degrees: / R \ Uncommenting the commented usepackage line loads the tikz-qtree package: \usepackage{tikz-qtree} And now the tree looks quite different: orientation is wrong and edges are placed with an offset. Perhaps I am wrong, but I guess that an additional tikz library package should not influence the placement/drawing of tikz-\node-style-trees? Btw, I am mixing tikz-qtree and tikz-\node trees in one document because I need some trees that have a high depth and each level should occupy the same amount of vertical space (if drawn from left to right) and not induce auto-growing at the higher levels. tikz-qtree does auto-growing of the vertical spaces (which is often useful, but not in this case). Using tikz-\node is slightly more verbose, but the vertical space is fixed at every level by default. Thus my question: How can I work around this tikz-qtree issues? I looked at tikz-qtree.tex from the tikz-qtree package and found that uncommenting \tikzoption{grow} fixes the orientation issue. But the edge sources are still drawn with an offset. For what tikz command should I look that may influence the edge placement in such a way? Urls: http://tug.ctan.org/tex-archive/graphics/pgf/contrib/tikz-qtree/ http://groups.google.com/group/de.comp.text.tex/browse_thread/thread/a25c526a4209202c/ (basically a German translation of this post to de.comp.text.tex - no replies so far ... ) Best regards Georg Sauthoff 
 Re: [Pgf-users] Tikz and nlaauth.cls From: Federico Poloni - 2010-09-27 14:51:45 On 27/09/10 16:21, JL Diaz wrote: > Nlaauth class loads dvips driver, which is not compatible with pdflatex. > latex+dvips should work. > > If you need pdflatex, remove the option [dvips] in line 44 of nlaauth.cls This method works -- thanks a lot, and sorry for disturbing the list with a simple question. --federico 
 Re: [Pgf-users] Tikz and nlaauth.cls From: JL Diaz - 2010-09-27 14:21:55 Attachments: Message as HTML Nlaauth class loads dvips driver, which is not compatible with pdflatex. latex+dvips should work. If you need pdflatex, remove the option [dvips] in line 44 of nlaauth.cls Saludos, --JL Diaz On Mon, Sep 27, 2010 at 3:42 PM, Federico Poloni wrote: > Hello everyone, > I can't seem to get TikZ working with the class nlaauth, which is > needed for a specific journal [1]. The file compiles correctly, with > both latex and pdflatex, but the figures do not show up. > > 
 Re: [Pgf-users] Tikz and nlaauth.cls From: André Valentin - 2010-09-27 14:18:43 Hello, Your example works for me, when using TEX + DVI instead of pdflatex... A Valentin Le 27 sept. 2010 à 15:42, Federico Poloni a écrit : > > Hello everyone, > I can't seem to get TikZ working with the class nlaauth, which is > needed for a specific journal [1]. The file compiles correctly, with > both latex and pdflatex, but the figures do not show up. > > I have read through the .cls file (you can download it at [1]), but I > have found no hints to why this shouldn't work -- no fancy options or > drivers called. > > I have set up a minimal example for the issue, which is not so minimal > since there are a lot of required fields in the beginning of the > document, by copying-and-pasting the example file published on [1]. You > can find the example at the end of this e-mail. > > Do you have any hint to why there seems to be this incompatibility? > > Thanks in advance, > --federico poloni > > [1] > http://onlinelibrary.wiley.com/journal/10.1002/%28ISSN%291099-1506/homepage/la_tex_class_file.htm > > [...] > 
 [Pgf-users] Tikz and nlaauth.cls From: Federico Poloni - 2010-09-27 13:43:03 Hello everyone, I can't seem to get TikZ working with the class nlaauth, which is needed for a specific journal [1]. The file compiles correctly, with both latex and pdflatex, but the figures do not show up. I have read through the .cls file (you can download it at [1]), but I have found no hints to why this shouldn't work -- no fancy options or drivers called. I have set up a minimal example for the issue, which is not so minimal since there are a lot of required fields in the beginning of the document, by copying-and-pasting the example file published on [1]. You can find the example at the end of this e-mail. Do you have any hint to why there seems to be this incompatibility? Thanks in advance, --federico poloni [1] http://onlinelibrary.wiley.com/journal/10.1002/%28ISSN%291099-1506/homepage/la_tex_class_file.htm -- % minimal example % nladoc.tex V1.1, 18 September 2002 \documentclass{nlaauth} \usepackage{tikz} %\usepackage[dvips,colorlinks,bookmarksopen,bookmarksnumbered,citecolor=red,urlcolor=red]{hyperref} \begin{document} \NLA{1}{6}{00}{28}{00} \runningheads{A.\ N.\ Other} {A demonstration of the Numer. Linear Algebra Appl.\ class file} \title{A demonstration of the \LaTeXe\ class file for \itshape{Numerical Linear Algebra with Applications}\footnotemark[2]} \author{A.~N.~Other\corrauth} \address{Journals Production Department, John Wiley \& Sons, Ltd, The Atrium, Southern Gate, Chichester,\\ West Sussex, PO19~8SQ, U.K.} \corraddr{John Wiley \& Sons, Ltd, The Atrium, Southern Gate, Chichester, West Sussex, PO19~8SQ, U.K.} \footnotetext[2]{Please ensure that you use the most up to date class file, available from the NLA Home Page at\\ \texttt{http://www.interscience.wiley.com/jpages/1070-5325/} %\href{http://www.interscience.wiley.com/jpages/1070-5325/}{\texttt{http://www.interscience.wiley.com/jpages/1070-5325/}} } \cgsn{Publishing Arts Research Council}{98--1846389} \received{17 January 2000} \revised{18 September 2002} \noaccepted{} \begin{abstract} This paper describes the use of the \LaTeXe\ \textsf{nlaauth.cls} class file for setting papers for \emph{Numerical Linear Algebra with Applications}. \end{abstract} \keywords{\emph{Numer. Linear Algebra Appl.}; \LaTeXe; class file} \section{INTRODUCTION} \begin{tikzpicture} \draw (-1.5,0) -- (1.5,0); \draw (0,-1.5) -- (0,1.5); \draw (0,0) circle (1cm); \draw (0,0) rectangle (0.5,0.5); \draw (-0.5,-0.5) rectangle (-1,-1); \end{tikzpicture} \end{document} 
 Re: [Pgf-users] subfig and vertical aligning From: Hans Meine - 2010-09-27 11:18:08 Hi again, Am Freitag 24 September 2010, 11:56:41 schrieb Hans Meine: > there is a "baseline" option (IIRC) which you can use to specify the > baseline (at which LaTeX will align the TeX boxes) of your TikZ pictures. > (I don't think the caption alignment will make problems?!) I tried it now, it works well, but I was wrong with the latter: the caption alignment *does* seem to be the problem the OP wants to be solved. And baseline= will not help there.. use one of the other suggestions. BTW: Drawing everything in one tikzpicture, including the subcaptions, would be another workaround. Have a nice day, Hans 
 Re: [Pgf-users] Default values in styles and how to override them From: Mark Wibrow - 2010-09-27 10:30:32 Hi, The every :shape: node'' keys are applied after the keys specified in the options for a specific node, so the default' 2cm inner sep would always override the 1cm. I don't think there is an easy way around this (without hacking). Or at least I don't see one. Regards Mark On 26/09/2010 20:38, Marcin Borkowski wrote: > Hi all, > > and welcome, since this is my first post here. I have been a user of > tikz for a few years, and now I wanted to do some a bit more advanced > stuff: define shapes. However, I ran into some problems (probably > caused by my misunderstanding of how pgfkeys work). > > Let's say that I want to have a default inner sep of 2cm for some shape. > For simplicity, assume it's the rectangle shape. So I say something > like: > > %%%%%%%%%%% minimal example > \documentclass{article} > > \usepackage{tikz} > \tikzset{every rectangle node/.style={inner sep=2cm}} > > \begin{document} > > \begin{tikzpicture} > \node[rectangle,draw] at (0,0) {node}; > \end{tikzpicture} > > \end{document} > %%%%%%%%%%% end of minimal example > > But now I cannot change the inner sep in any instance of the rectangle > shape: I can't say > > \node[rectangle,draw,inner sep=1cm] at (0,0) {node}; > > (well, I can, but it has no effect). > > Any ideas? > > Regards > 
 [Pgf-users] Default values in styles and how to override them From: Marcin Borkowski - 2010-09-26 19:38:30 Hi all, and welcome, since this is my first post here. I have been a user of tikz for a few years, and now I wanted to do some a bit more advanced stuff: define shapes. However, I ran into some problems (probably caused by my misunderstanding of how pgfkeys work). Let's say that I want to have a default inner sep of 2cm for some shape. For simplicity, assume it's the rectangle shape. So I say something like: %%%%%%%%%%% minimal example \documentclass{article} \usepackage{tikz} \tikzset{every rectangle node/.style={inner sep=2cm}} \begin{document} \begin{tikzpicture} \node[rectangle,draw] at (0,0) {node}; \end{tikzpicture} \end{document} %%%%%%%%%%% end of minimal example But now I cannot change the inner sep in any instance of the rectangle shape: I can't say \node[rectangle,draw,inner sep=1cm] at (0,0) {node}; (well, I can, but it has no effect). Any ideas? Regards -- Marcin Borkowski (http://mbork.pl) 
 [Pgf-users] relative control points From: Michael Shulman - 2010-09-25 16:26:50 Hello, The PGF manual says: > If you use a relative coordinate as a control point of a Bézier > curve, the following rule applies: First, a relative first control > point is taken relative to the beginning of the curve. Second, a > relative second control point is taken relative to the end of the > curve. Third, a relative end point of a curve is taken relative to > the start of the curve. However, as far as I can tell this is not exactly what actually happens; rather relative first control points and relative end points are taken relative to the "current point" after evaluation of the start of the curve. This does the same thing if the start of the curve is an absolute coordinate, but if it is itself a relative coordinate of the form +(x,y) which does not update the current point, then the results are different from what the above passage suggests. Compare \draw (0,0) -- +(1,1) .. controls +(30:1) and +(150:1) .. +(2,0); and \draw (0,0) -- ++(1,1) .. controls +(30:1) and +(150:1) .. +(2,0); It seems to me that this behavior is probably what one wants for the end point of the curve, but that it would be more useful if a relative first control point were actually taken relative to the start of the curve. Mike 
 Re: [Pgf-users] pgf and emacs? From: Sivaram Neelakantan - 2010-09-24 17:44:29 On Fri, Sep 24 2010,Sebastian Menge wrote: > Hi > > Sorry if this is off-topic, but perhaps someone knows a solution. > > How can I make emacs aware of pgf? I mean, the command to compile "C-c > C-c", usually knows, whether I have to recompile the document due to > changed references, sections etc. > > But it does not take changes due to pgf into account (when using > remember picture and overlays etc). > > Sebastian. > Probably appropriate in Auctex mailing list? [snipped 6 lines] sivaram -- 
 Re: [Pgf-users] FW: Help with spy package From: Sebastián PENA SALDARRIAGA - 2010-09-24 15:26:13 Hi Mark, What would be helpful is to see the logs (to check the tikz version actually used). If you are using Miktex 2.8 and older and you installed TikZ in your local texmf directory, Miktex will look first in its application data directory where new packages are installed and the CVS version will not be taken into account. Also don't forget to refresh the file name DB ! Sebastian > i installed new version of Tikz cvs and i got this error > > > Package pgfkeys Error: I do not know the key '/tikz/path picture' and I am > go ing to ignore it. Perhaps you misspelled it. > > > i tried older versions and the error is still the same > > Package pgfkeys Error: I do not know the key '/tikz/path picture' and I am > go ing to ignore it. Perhaps you misspelled it. > > > i will post my code and i am wondering if someone can help me with it > > > > \begin{tikzpicture}[spy using outlines={rectangle, red, magnification=5, > size=1.5cm, connect spies}] > \begin{scope}[spy using outlines={magnification=16, size=8cm, connect > spies, > rounded corners}] > \begin{axis}[font = \normalsize,ymax= 45,ymin=0,xmax=200,xmin=0,legend > pos=north > east, yticklabel style={/pgf/number format/.cd,fixed,fixed > zerofill,precision=0,}] > \addplot+[mark=*, mark size=0.6pt] coordinates { > (0,0) > (10,10) > (20,10) > (30,100) > (40,10) > (50,10) > (60,15) > (70,15) > (80,15) > (9015) > (100,20) > (110,20) > (120,20) > (130,20) > (140,20) > (150,20) > (160,20) > (170,30) > (180,30) > (190,31) > (200,31) > }; > \addplot+[mark=*, mark size=0.6pt] coordinates { > (0,0) > (10,0) > (20,10) > (30,12) > (40,12) > (50,13) > (60,18) > (70,24) > (80,23) > (90,40) > (100,40) > (110,40) > (120,34) > (130,45) > (140,45) > (150,45) > (160,40) > (170,45) > (180,50) > (190,50) > (200,34) > }; > \end{axis} > \spy [blue] on (10,10) in node[right] at (6.5,1); > \end{scope} > \end{tikzpicture} > > 
 Re: [Pgf-users] subfig and vertical aligning From: Matthew Leingang - 2010-09-24 13:21:58 On Sep 24, 2010, at 2:50 AM, Sebastian Menge wrote: > Am Fri, 24 Sep 2010 10:24:56 +1000 > schrieb Paul Thompson : > >> In the attached test.tex it does this: >> %make bounding box a specified height: >> \path (current bounding box.north) -- +(0,-5.5cm); >> >> I think that's what you are trying to achieve(?). > > Yeah, that works for me. It's kind of a clean hack :-) > >> It would be nicer to make the hard-coded 5.5cm use the maximum height >> of the 3 figures, and I'm sure this could be done using the .aux file >> on a 2nd latex pass. Does anyone know how to do that? > > That would be even nicer, but extends my (La)TeX-capabilities. What about something like this? \tikzstyle{every picture}+=[remember picture] \begin{figure} \subfigure{ \begin{tikzpicture} % stuff for figure A \path (current bounding box.north) -- (current bounding box.north |- b-south ) -- (current bounding box.north |- c-south ); \node (a-south) at (current bounding box.south) {}; \end{tikzpicture} } \subfigure{ \begin{tikzpicture} % stuff for figure B \path (current bounding box.north) -- (current bounding box.north |- c-south ) -- (current bounding box.north |- a-south ); \node (b-south) at (current bounding box.south) {}; \end{tikzpicture} } \subfigure{ \begin{tikzpicture} % stuff for figure C \path (current bounding box.north) -- (current bounding box.north |- a-south ) -- (current bounding box.north |- b-south ); \node (c-south) at (current bounding box.south) {}; \end{tikzpicture} } \end{figure} The idea being to draw an invisible vertical path from the top of each figure to the level of the bottom of each of the other two. It will require a second pass but you don't have to roll your own. I didn't test the code but I think the idea can work. Best, Matthew Leingang -- Matthew Leingang | leingang@... Clinical Associate Professor of Mathematics | Vice Chair for Undergraduate Affairs Courant Institute of Mathematical Sciences | Department of Mathematics 
 Re: [Pgf-users] subfig and vertical aligning From: Hans Meine - 2010-09-24 09:56:55 Hi Sebastian, there is a "baseline" option (IIRC) which you can use to specify the baseline (at which LaTeX will align the TeX boxes) of your TikZ pictures. (I don't think the caption alignment will make problems?!) HTH, Hans 
 [Pgf-users] pgf and emacs? From: Sebastian Menge - 2010-09-24 08:56:07 Hi Sorry if this is off-topic, but perhaps someone knows a solution. How can I make emacs aware of pgf? I mean, the command to compile "C-c C-c", usually knows, whether I have to recompile the document due to changed references, sections etc. But it does not take changes due to pgf into account (when using remember picture and overlays etc). Sebastian. 
 Re: [Pgf-users] subfig and vertical aligning From: Sebastian Menge - 2010-09-24 06:50:19 Am Fri, 24 Sep 2010 10:24:56 +1000 schrieb Paul Thompson : > In the attached test.tex it does this: > %make bounding box a specified height: > \path (current bounding box.north) -- +(0,-5.5cm); > > I think that's what you are trying to achieve(?). Yeah, that works for me. It's kind of a clean hack :-) > It would be nicer to make the hard-coded 5.5cm use the maximum height > of the 3 figures, and I'm sure this could be done using the .aux file > on a 2nd latex pass. Does anyone know how to do that? That would be even nicer, but extends my (La)TeX-capabilities. Thanks, Sebastian. 
 Re: [Pgf-users] subfig and vertical aligning From: Wilfred van Rooijen - 2010-09-24 03:59:01 Come to think of it, could be possible to put the three figures into a table? If one makes a 3x2 table, the top row can contain the figures and the second row the labels. The only problem is then that it becomes impossible to reference "figure X.a" using a \ref{}.... But I don't know if you can put a TikZ picture into a table cell.... Wilfred --- On Fri, 24/9/10, Paul Thompson wrote: > From: Paul Thompson > Subject: Re: [Pgf-users] subfig and vertical aligning > To: pgf-users@... > Date: Friday, 24 September, 2010, 9:24 AM > Hi, > > There may be something in the subfig manual, but the > following way works > anyway: > > Manually make the pictures the same height by having an > extra \path occupying > the extra space.  By making this start from the > current bounding box.north, > extending southwards, this makes the tops of the pictures > align. > > In the attached test.tex it does this: > %make bounding box a specified height: > \path (current bounding box.north) -- +(0,-5.5cm); > > I think that's what you are trying to achieve(?). > > It would be nicer to make the hard-coded 5.5cm use the > maximum height of the 3 > figures, and I'm sure this could be done using the .aux > file on a 2nd latex > pass.  Does anyone know how to do that? > > Hope it helps, > Paul Thompson. > > > > > On Fri, 24 Sep 2010 09:42:44 am Wilfred van Rooijen wrote: > > Hi, > > > > There may be a "proper" way to do this, but I don't > know. A "quick & dirty" > > solution could be to put the subcaptions into the > TikZ-pictures using > > absolute coordinates. Maybe by using 2 layers: one > layer to contain a white > > rectangle of an appropriate size, with centered below > it a node containing > > the caption text. Then in a second layer put the tree > into the figure. If > > done properly, the three figures will have the same > size and should be easy > > to put into your document at wish. > > > > Cheers, > > Wilfred > > > > --- On Thu, 23/9/10, Sebastian Menge > wrote: > > > From: Sebastian Menge > > > Subject: [Pgf-users] subfig and vertical > aligning > > > To: pgf-users@... > > > Date: Thursday, 23 September, 2010, 11:15 PM > > > Hi > > > > > > I want to use package subfig to place three tikz > pictures > > > side by side. > > > > > > How can I top-align the pictures, and > bottom-align the > > > captions of the > > > subfigure? > > > > > > See attached example. > > > > > > Thanks, Sebastian. > > > > > > -----Inline Attachment Follows----- > > > > > > > ------------------------------------------------------------------------- > > >----- Nokia and AT&T present the 2010 Calling > All > > > Innovators-North America contest > > > Create new apps & games for the Nokia N8 for > consumers > > > in  U.S. and Canada > > > $10 million total in prizes -$4M cash, 500 > devices, nearly > > > $6M in marketing > > > Develop with Nokia Qt SDK, Web Runtime, or Java > and Publish > > > to Ovi Store > > > http://p.sf.net/sfu/nokia-dev2dev > > > -----Inline Attachment Follows----- > > > > > > _______________________________________________ > > > pgf-users mailing list > > > pgf-users@... > > > https://lists.sourceforge.net/lists/listinfo/pgf-users > > > > > --------------------------------------------------------------------------- > >--- Nokia and AT&T present the 2010 Calling All > Innovators-North America > > contest Create new apps & games for the Nokia N8 > for consumers in U.S. and > > Canada$10 million total in prizes - $4M cash, 500 > devices, nearly$6M in > > marketing Develop with Nokia Qt SDK, Web Runtime, or > Java and Publish to > > Ovi Store http://p.sf.net/sfu/nokia-dev2dev > > _______________________________________________ > > pgf-users mailing list > > pgf-users@... > > https://lists.sourceforge.net/lists/listinfo/pgf-users > > > > -- > Paul Thompson > Research Engineer > The Australian Centre for Field Robotics > The University of Sydney > > ph: 02 90369356 > p.thompson@... > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All > Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers > in  U.S. and Canada > $10 million total in prizes -$4M cash, 500 devices, nearly > 6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish > to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > -----Inline Attachment Follows----- > > _______________________________________________ > pgf-users mailing list > pgf-users@... > https://lists.sourceforge.net/lists/listinfo/pgf-users >   Re: [Pgf-users] subfig and vertical aligning From: Paul Thompson - 2010-09-24 00:43:55 Attachments: test.tex Hi, There may be something in the subfig manual, but the following way works anyway: Manually make the pictures the same height by having an extra \path occupying the extra space. By making this start from the current bounding box.north, extending southwards, this makes the tops of the pictures align. In the attached test.tex it does this: %make bounding box a specified height: \path (current bounding box.north) -- +(0,-5.5cm); I think that's what you are trying to achieve(?). It would be nicer to make the hard-coded 5.5cm use the maximum height of the 3 figures, and I'm sure this could be done using the .aux file on a 2nd latex pass. Does anyone know how to do that? Hope it helps, Paul Thompson. On Fri, 24 Sep 2010 09:42:44 am Wilfred van Rooijen wrote: > Hi, > > There may be a "proper" way to do this, but I don't know. A "quick & dirty" > solution could be to put the subcaptions into the TikZ-pictures using > absolute coordinates. Maybe by using 2 layers: one layer to contain a white > rectangle of an appropriate size, with centered below it a node containing > the caption text. Then in a second layer put the tree into the figure. If > done properly, the three figures will have the same size and should be easy > to put into your document at wish. > > Cheers, > Wilfred > > --- On Thu, 23/9/10, Sebastian Menge wrote: > > From: Sebastian Menge > > Subject: [Pgf-users] subfig and vertical aligning > > To: pgf-users@... > > Date: Thursday, 23 September, 2010, 11:15 PM > > Hi > > > > I want to use package subfig to place three tikz pictures > > side by side. > > > > How can I top-align the pictures, and bottom-align the > > captions of the > > subfigure? > > > > See attached example. > > > > Thanks, Sebastian. > > > > -----Inline Attachment Follows----- > > > > ------------------------------------------------------------------------- > >----- Nokia and AT&T present the 2010 Calling All > > Innovators-North America contest > > Create new apps & games for the Nokia N8 for consumers > > in U.S. and Canada > >10 million total in prizes - $4M cash, 500 devices, nearly > >$6M in marketing > > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish > > to Ovi Store > > http://p.sf.net/sfu/nokia-dev2dev > > -----Inline Attachment Follows----- > > > > _______________________________________________ > > pgf-users mailing list > > pgf-users@... > > https://lists.sourceforge.net/lists/listinfo/pgf-users > > --------------------------------------------------------------------------- >--- Nokia and AT&T present the 2010 Calling All Innovators-North America > contest Create new apps & games for the Nokia N8 for consumers in U.S. and > Canada $10 million total in prizes -$4M cash, 500 devices, nearly 6M in > marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to > Ovi Store http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > pgf-users mailing list > pgf-users@... > https://lists.sourceforge.net/lists/listinfo/pgf-users -- Paul Thompson Research Engineer The Australian Centre for Field Robotics The University of Sydney ph: 02 90369356 p.thompson@...   Re: [Pgf-users] subfig and vertical aligning From: Wilfred van Rooijen - 2010-09-23 23:42:52 Hi, There may be a "proper" way to do this, but I don't know. A "quick & dirty" solution could be to put the subcaptions into the TikZ-pictures using absolute coordinates. Maybe by using 2 layers: one layer to contain a white rectangle of an appropriate size, with centered below it a node containing the caption text. Then in a second layer put the tree into the figure. If done properly, the three figures will have the same size and should be easy to put into your document at wish. Cheers, Wilfred --- On Thu, 23/9/10, Sebastian Menge wrote: > From: Sebastian Menge > Subject: [Pgf-users] subfig and vertical aligning > To: pgf-users@... > Date: Thursday, 23 September, 2010, 11:15 PM > Hi > > I want to use package subfig to place three tikz pictures > side by side. > > How can I top-align the pictures, and bottom-align the > captions of the > subfigure? > > See attached example. > > Thanks, Sebastian. > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All > Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers > in U.S. and Canada >10 million total in prizes - $4M cash, 500 devices, nearly >$6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish > to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > -----Inline Attachment Follows----- > > _______________________________________________ > pgf-users mailing list > pgf-users@... > https://lists.sourceforge.net/lists/listinfo/pgf-users > 
 Re: [Pgf-users] FW: Help with spy package From: Mark - 2010-09-23 21:05:20 Michael Hallgren free.fr> writes: > > Le lundi 20 septembre 2010 à 14:16 -0700, Mark2010 a écrit : > > Hi > > > > i installed the cvs version but now i am getting a new error > > > > > > Package pgfkeys Error: I do not know the key '/tikz/path picture' and I am > > go ing to ignore it. Perhaps you misspelled it. > > > > > > can you help me with this please. > > Hi, send source file. I compiled earlier version w/o prob. > > mh > > > > > > > > > > > > > Goebel, Juergen wrote: > > > > > > Mark2010 wrote: > > > > > >> I don't know which version of tikz i have. Can you tell me > > >> how to download > > >> the cvs version? and will it affect the rest of my tex? Is > > >> the CVS version > > >> better than the normal one. > > > > > > Thanks to Kjell Magne Fauske you may find the current cvs-build here: > > > > > > http://www.texample.net/tikz/builds/ > > > > > > If it's better? It's newer, with all pros and cons. And it > > > shall not affect anything out of your pgf/TikZ-tree. > > > > > > Juergen > > > > > > -------------------------------------------------------------------------- ---- > > > Start uncovering the many advantages of virtual appliances > > > and start using them to simplify application deployment and > > > accelerate your shift to cloud computing. > > > http://p.sf.net/sfu/novell-sfdev2dev > > > _______________________________________________ > > > pgf-users mailing list > > > pgf-users lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/pgf-users > > > > > > > > > i installed new version of Tikz cvs and i got this error Package pgfkeys Error: I do not know the key '/tikz/path picture' and I am go ing to ignore it. Perhaps you misspelled it. i tried older versions and the error is still the same Package pgfkeys Error: I do not know the key '/tikz/path picture' and I am go ing to ignore it. Perhaps you misspelled it. i will post my code and i am wondering if someone can help me with it \begin{tikzpicture}[spy using outlines={rectangle, red, magnification=5, size=1.5cm, connect spies}] \begin{scope}[spy using outlines={magnification=16, size=8cm, connect spies, rounded corners}] \begin{axis}[font = \normalsize,ymax= 45,ymin=0,xmax=200,xmin=0,legend pos=north east, yticklabel style={/pgf/number format/.cd,fixed,fixed zerofill,precision=0,}] \addplot+[mark=*, mark size=0.6pt] coordinates { (0,0) (10,10) (20,10) (30,100) (40,10) (50,10) (60,15) (70,15) (80,15) (9015) (100,20) (110,20) (120,20) (130,20) (140,20) (150,20) (160,20) (170,30) (180,30) (190,31) (200,31) }; \addplot+[mark=*, mark size=0.6pt] coordinates { (0,0) (10,0) (20,10) (30,12) (40,12) (50,13) (60,18) (70,24) (80,23) (90,40) (100,40) (110,40) (120,34) (130,45) (140,45) (150,45) (160,40) (170,45) (180,50) (190,50) (200,34) }; \end{axis} \spy [blue] on (10,10) in node[right] at (6.5,1); \end{scope} \end{tikzpicture} 
 Re: [Pgf-users] edge from parent path to know about the number of children. From: - 2010-09-23 18:37:38 michael@... (Michaël Cadilhac) writes: > Hi everyone, > > I was wondering if the following modification is harmful to the way > trees are treated in TikZ. It basically adds a way for edge from > parent path to know about the total number of children of > \tikzparentnode. Without this change, the recursive calling through the > children would destroy the value of \tikznumberofchildren. I use this > information to determine a nicer place for the path to start. > > Thank you. > > --- /usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex 2010-06-26 10:18:28.000000000 -0400 > +++ ./tikz.code.tex 2010-09-23 12:09:57.678387224 -0400 > @@ -3159,6 +3159,7 @@ > \edef\tikz@...@node@...{[name=\tikzparentnode-\the\tikznumberofcurrentchild,style=every child node]}% > \def\tikz@...@node@...{[shape=coordinate]{}} > \tikz@...@child@...#2\pgf@...% > + \let\tikznumberofchildren@...=\tikznumberofchildren Make that an \edef, and forget about the late \let's. I had to use \tikznumberofchildren@... in my code to be sure I have the right value -- I realized I had to do that after I understood how the recursion is taking place. I would say that my question is now irrelevant, as I don't modify any TikZ variable. Sorry for the noise. 
 [Pgf-users] edge from parent path` to know about the number of children. From: - 2010-09-23 16:24:08 Attachments: Message as HTML     numberofchildren.patch

Showing results of 79

1 2 3 4 > >> (Page 1 of 4)