Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TikZ single arrow shape

168 views
Skip to first unread message

Leo

unread,
Jan 5, 2010, 8:07:00 PM1/5/10
to
Hi there,

Does anyone feel the same way as I do that the meaning of minium
width/height in the single arrow shape is opposite to that of other
shapes? Here's an example:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.arrows}
\begin{document}
\begin{tikzpicture}
\node [single arrow,minimum width=1cm,minimum height=2cm,draw] {};
\end{tikzpicture}
\end{document}

It seems minimum height is controlling the minimum width. How to make
sense of this?

Thanks.
Leo

Paul Gaborit

unread,
Jan 6, 2010, 9:26:52 AM1/6/10
to

� (at) Wed, 06 Jan 2010 01:07:00 +0000,
Leo <sdl...@gmail.com> �crivait (wrote):

> It seems minimum height is controlling the minimum width. How to make
> sense of this?

pgfmanual (v2.00) : p.335.

--
Paul Gaborit - <http://perso.mines-albi.fr/~gaborit/>

Leo

unread,
Jan 6, 2010, 10:26:45 AM1/6/10
to
Paul Gaborit <Paul.G...@invalid.invalid> writes:

> � (at) Wed, 06 Jan 2010 01:07:00 +0000,
> Leo <sdl...@gmail.com> �crivait (wrote):
>
>> It seems minimum height is controlling the minimum width. How to make
>> sense of this?
>
> pgfmanual (v2.00) : p.335.

That's what I get from the manual. But my question is why tikz uses
width for height and height for width? In particular, the shape by
default is drawn with the arrow tip facing horizontally.

Leo

Alain Matthes

unread,
Jan 6, 2010, 10:54:31 AM1/6/10
to
On 2010-01-06 16:26:45 +0100, Leo <sdl...@gmail.com> said:

> Paul Gaborit <Paul.G...@invalid.invalid> writes:
>
>> � (at) Wed, 06 Jan 2010 01:07:00 +0000,
>> Leo <sdl...@gmail.com> �crivait (wrote):
>>
>>> It seems minimum height is controlling the minimum width. How to make
>>> sense of this?
>>
>> pgfmanual (v2.00) : p.335.
>
> That's what I get from the manual. But my question is why tikz uses
> width for height and height for width?

Hi,

It's not a really problem !
1) width is correct because it's use like "line width" exactly is the
head's width.
2) height why not ? the arrow shape have a head !

Best regards

Alain Matthes

Leo

unread,
Jan 6, 2010, 11:42:09 AM1/6/10
to
Alain Matthes <alain....@nofree.fr> writes:

> It's not a really problem !
> 1) width is correct because it's use like "line width" exactly is the
> head's width.
> 2) height why not ? the arrow shape have a head !

Thanks for this. That makes sense.

Leo

0 new messages